@bugsnag/browser-performance
Advanced tools
Comparing version 2.7.1 to 2.8.0
@@ -1,2 +0,2 @@ | ||
import { schema, isBoolean, isStringOrRegExpArray } from '@bugsnag/core-performance'; | ||
import { schema, isBoolean, isStringOrRegExpArray, isStringWithLength } from '@bugsnag/core-performance'; | ||
import { defaultNetworkRequestCallback, isNetworkRequestCallback } from '@bugsnag/request-tracker-performance'; | ||
@@ -39,2 +39,6 @@ import { isRoutingProvider } from './routing-provider.js'; | ||
validate: isSendPageAttributes | ||
}, serviceName: { | ||
defaultValue: 'unknown_service', | ||
message: 'should be a string', | ||
validate: isStringWithLength | ||
} }); | ||
@@ -41,0 +45,0 @@ } |
@@ -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.7.1'); | ||
const attributes = new ResourceAttributes(config.releaseStage, config.appVersion, config.serviceName, 'bugsnag.performance.browser', '2.8.0'); | ||
attributes.set('browser.user_agent', navigator.userAgent); | ||
@@ -11,0 +11,0 @@ // chromium only |
@@ -15,2 +15,3 @@ import type { ConfigOption, Configuration, CoreSchema } from '@bugsnag/core-performance'; | ||
sendPageAttributes: ConfigOption<SendPageAttributes>; | ||
serviceName: ConfigOption<string>; | ||
} | ||
@@ -26,4 +27,5 @@ export interface BrowserConfiguration extends Configuration { | ||
sendPageAttributes?: SendPageAttributes; | ||
serviceName?: string; | ||
} | ||
export declare function createSchema(hostname: string, defaultRoutingProvider: RoutingProvider): BrowserSchema; | ||
//# sourceMappingURL=config.d.ts.map |
{ | ||
"name": "@bugsnag/browser-performance", | ||
"version": "2.7.1", | ||
"version": "2.8.0", | ||
"description": "BugSnag performance monitoring for browsers", | ||
@@ -24,6 +24,6 @@ "homepage": "https://www.bugsnag.com/", | ||
"dependencies": { | ||
"@bugsnag/core-performance": "^2.7.1", | ||
"@bugsnag/core-performance": "^2.8.0", | ||
"@bugsnag/cuid": "^3.1.1", | ||
"@bugsnag/delivery-fetch-performance": "^2.7.1", | ||
"@bugsnag/request-tracker-performance": "^2.7.1" | ||
"@bugsnag/delivery-fetch-performance": "^2.8.0", | ||
"@bugsnag/request-tracker-performance": "^2.8.0" | ||
}, | ||
@@ -39,3 +39,3 @@ "devDependencies": { | ||
], | ||
"gitHead": "1358bf6082aa354fd49249c700ca9e486cad3681" | ||
"gitHead": "39754ecb88063ec84edb031202820545950725de" | ||
} |
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
83721
1407