@bugsnag/browser-performance
Advanced tools
Comparing version 2.5.0 to 2.6.0
@@ -28,3 +28,14 @@ import { getPermittedAttributes } from '../send-page-attributes.js'; | ||
} | ||
const span = this.spanFactory.startSpan('[FullPageLoad]', { startTime: 0, parentContext: null }); | ||
let parentContext = null; | ||
const traceparentMetaTag = document.querySelector('meta[name="traceparent"]'); | ||
if (traceparentMetaTag !== null && traceparentMetaTag.getAttribute('content')) { | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
const traceparent = traceparentMetaTag.getAttribute('content'); | ||
const [, traceId, parentSpanId] = traceparent.split('-'); | ||
parentContext = { | ||
traceId, | ||
id: parentSpanId | ||
}; | ||
} | ||
const span = this.spanFactory.startSpan('[FullPageLoad]', { startTime: 0, parentContext }); | ||
const permittedAttributes = getPermittedAttributes(configuration.sendPageAttributes); | ||
@@ -31,0 +42,0 @@ const url = new URL(this.location.href); |
@@ -8,3 +8,3 @@ import cuid from '@bugsnag/cuid'; | ||
return function resourceAttributesSource(config) { | ||
const attributes = new ResourceAttributes(config.releaseStage, config.appVersion, 'bugsnag.performance.browser', '2.5.0'); | ||
const attributes = new ResourceAttributes(config.releaseStage, config.appVersion, 'bugsnag.performance.browser', '2.6.0'); | ||
attributes.set('browser.user_agent', navigator.userAgent); | ||
@@ -11,0 +11,0 @@ // chromium only |
{ | ||
"name": "@bugsnag/browser-performance", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"description": "BugSnag performance monitoring for browsers", | ||
@@ -24,6 +24,6 @@ "homepage": "https://www.bugsnag.com/", | ||
"dependencies": { | ||
"@bugsnag/core-performance": "^2.5.0", | ||
"@bugsnag/core-performance": "^2.6.0", | ||
"@bugsnag/cuid": "^3.1.1", | ||
"@bugsnag/delivery-fetch-performance": "^2.5.0", | ||
"@bugsnag/request-tracker-performance": "^2.5.0" | ||
"@bugsnag/delivery-fetch-performance": "^2.6.0", | ||
"@bugsnag/request-tracker-performance": "^2.6.0" | ||
}, | ||
@@ -36,3 +36,3 @@ "type": "module", | ||
], | ||
"gitHead": "e4097fdd6ade57d9643b4b1967f096697f8f2bb3" | ||
"gitHead": "3cd099840baa1acfc9df9c6b1a7dc58891e8b650" | ||
} |
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
83535
1401