@yotamloe/instrumentation-document-load
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -97,4 +97,4 @@ /* | ||
}; | ||
console.log(metaElement); | ||
var parsedCookie = parseCookie(document.cookie); | ||
console.log(parsedCookie.traceparent); | ||
var tag = document.createElement('meta'); | ||
@@ -105,3 +105,3 @@ tag.name = "traceparent"; | ||
var entries = getPerformanceNavigationEntries(); | ||
var traceparent = (metaElement && metaElement.content) || traceParentFromCookie || ''; | ||
var traceparent = traceParentFromCookie || ''; | ||
context.with(propagation.extract(ROOT_CONTEXT, { traceparent: traceparent }), function () { | ||
@@ -108,0 +108,0 @@ var rootSpan = _this._startSpan(AttributeNames.DOCUMENT_LOAD, PTN.FETCH_START, entries); |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.4.0"; | ||
export declare const VERSION = "0.5.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -17,3 +17,3 @@ /* | ||
// this is autogenerated file, see scripts/version-update.js | ||
export var VERSION = '0.4.0'; | ||
export var VERSION = '0.5.0'; | ||
//# sourceMappingURL=version.js.map |
@@ -77,4 +77,4 @@ "use strict"; | ||
}, {}); | ||
console.log(metaElement); | ||
const parsedCookie = parseCookie(document.cookie); | ||
console.log(parsedCookie.traceparent); | ||
let tag = document.createElement('meta'); | ||
@@ -85,3 +85,3 @@ tag.name = "traceparent"; | ||
const entries = utils_1.getPerformanceNavigationEntries(); | ||
const traceparent = (metaElement && metaElement.content) || traceParentFromCookie || ''; | ||
const traceparent = traceParentFromCookie || ''; | ||
api_1.context.with(api_1.propagation.extract(api_1.ROOT_CONTEXT, { traceparent }), () => { | ||
@@ -88,0 +88,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.4.0"; | ||
export declare const VERSION = "0.5.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.4.0'; | ||
exports.VERSION = '0.5.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@yotamloe/instrumentation-document-load", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"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
74484