@yotamloe/instrumentation-document-load
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -98,4 +98,7 @@ /* | ||
var parsedCookie = parseCookie(document.cookie); | ||
console.log("Parsed cookie"); | ||
console.log(parsedCookie.traceparent); | ||
var entries = getPerformanceNavigationEntries(); | ||
var traceparent = (metaElement && metaElement.content) || parsedCookie.traceparent || ''; | ||
var traceparent = (metaElement && metaElement.content) || ''; | ||
traceparent = parsedCookie.traceparent || ''; | ||
context.with(propagation.extract(ROOT_CONTEXT, { traceparent: traceparent }), function () { | ||
@@ -102,0 +105,0 @@ var rootSpan = _this._startSpan(AttributeNames.DOCUMENT_LOAD, PTN.FETCH_START, entries); |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.0.1"; | ||
export declare const VERSION = "0.0.2"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -17,3 +17,3 @@ /* | ||
// this is autogenerated file, see scripts/version-update.js | ||
export var VERSION = '0.0.1'; | ||
export var VERSION = '0.0.2'; | ||
//# sourceMappingURL=version.js.map |
@@ -78,4 +78,7 @@ "use strict"; | ||
const parsedCookie = parseCookie(document.cookie); | ||
console.log("Parsed cookie"); | ||
console.log(parsedCookie.traceparent); | ||
const entries = utils_1.getPerformanceNavigationEntries(); | ||
const traceparent = (metaElement && metaElement.content) || parsedCookie.traceparent || ''; | ||
let traceparent = (metaElement && metaElement.content) || ''; | ||
traceparent = parsedCookie.traceparent || ''; | ||
api_1.context.with(api_1.propagation.extract(api_1.ROOT_CONTEXT, { traceparent }), () => { | ||
@@ -82,0 +85,0 @@ const rootSpan = this._startSpan(AttributeNames_1.AttributeNames.DOCUMENT_LOAD, sdk_trace_web_1.PerformanceTimingNames.FETCH_START, entries); |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.0.1"; | ||
export declare const VERSION = "0.0.2"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.0.1'; | ||
exports.VERSION = '0.0.2'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@yotamloe/instrumentation-document-load", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Fork of OpenTelemetry document-load automatic instrumentation package.", | ||
@@ -5,0 +5,0 @@ "main": "build/src/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74190
864