Changelog
[v2.12.0] (2025-03-26)
This release adds support for React Native 0.77 to @bugsnag/react-native-performance
Added
- (plugin-react-performance) Added new react library with
withInstrumentedComponent
higher order component to instrument component rendering spans #584
Fixed
- (react-native) Fix turbo module check in React Native 0.77 #578
[v2.11.0] (2025-01-23)
Added
- (react-native) Added
BugsnagPerformance.attach
method to support integration with native BugSnag Performance Monitoring SDKs for Android and iOS #573
Changed
- (react-native) Replaced
react-native-file-access
peer dependency with internal native module implementation. This peer dependency is no longer required by the SDK. #561
[v2.10.1] (2024-11-12)
Fixed
- (react-native) Prevent duplicate app start spans from being started #524
Changed
- (browser) Update Span and Trace ID generator code to allow for modified
Array.from
API #518
[v2.10.0] (2024-09-26)
Added
- Allow setting custom span attributes #510
[v2.9.1] (2024-09-11)
Fixed
- (core) Fix URL.hostname error on React Native #504
[v2.9.0] (2024-09-05)
Added
- (react-native) Add new withInstrumentedAppStarts method to workaround automatically instrumented app start span issues #497
Changed
- (core) Discard spans open for more than one hour #494
- (core) use API key subdomain as default endpoint #500
[v2.8.0] (2024-08-20)
Added
- (browser) Add serviceName config option for browser and ensure service.name attribute is always set #477
- Add a fixed sampling probability configuration option #487
- (react-native) Support react-native-file-access v1.x #488
- (react-native) Support React Native 0.64 #489
Changed
- (vue-router) Use vue router to resolve routes #476
- Update error correlation implementation to monkey patch the error notifier #474
- (react-native) Ensure native module is fully backwards compatible #478
- (react-native) Use batch time for filenames in retry queue #486
- (core) Avoid long running timers when ensuring probability freshness #481
Fixed
- (react-native) Set initial background state to foreground if initial app state is 'inactive' #491
[v2.7.1] (2024-07-16)
Changed
- Update type imports to ensure TypeScript backwards compatibility #471
[v2.7.0] (2024-07-03)
Added
- (react-native) Support remote debugging in Chrome #468
Fixed
- (plugin-react-navigation) Fix a crash when navigation ref is created using useRef #469
[v2.6.0] (2024-06-06)
Added
- (browser) Set parent span context for full page load spans based on traceparent meta tag, if present #446
Fixed
- (plugin-react-navigation) Fix an issue where a navigation span could inherit the end time of the last span #457
[v2.5.0] (2024-05-02)
Added
- (react-native) Add trace propagation headers for React Native #437 #444
- Add new
startNetworkSpan
method to BugsnagPerformance
#448
- Change network span naming convention to
[HTTP/VERB]
#448
Fixed
- (core) Fix import of
@bugsnag/cuid
not working in node ESM environment #445
v2.4.1 (2024-04-18)
Fixed
- (core) Delay span batching while initial sampling request is in flight #433
- (core) Refactor span batching to ensure correct sampling values for subsequent spans #435
- (request-tracker) Ensure existing headers are preserved for fetch requests #436
v2.4.0 (2024-03-27)
Added
- (browser) This release adds experimental trace propagation support. When enabled, by setting
propagateTraceContext
to true
in the networkRequestCallback
handler, a traceparent
header will be added to the outgoing network request.
Deprecated
- (react-native) For improved consistency with our error SDK, this release renames the existing navigation plugins and their exported types. The old packages are now marked as deprecated in NPM, but can be used until the next major version of this library. However we recommend renaming any existing references to the new packages straightaway:
- React Navigation:
- Rename package import from
@bugsnag/react-navigation-performance
to @bugsnag/plugin-react-navigation-performance
- Rename plugin type from
ReactNavigationNativePlugin
to BugsnagPluginReactNavigationPerformance
- React Native Navigation:
- Rename package import from
@bugsnag/react-native-navigation-performance
to @bugsnag/plugin-react-native-navigation-performance
- Rename plugin type from
ReactNativeNavigationPlugin
to BugsnagPluginReactNativeNavigationPerformance
Fixed
- (plugin-react-navigation) Fix an issue where refs are not forwarded to the NavigationContainer #431
v2.3.0 (2024-03-20)
This release adds support for instrumenting navigation spans when using the react-native-navigation library
Added
- (react-native-navigation) Added
@bugsnag/react-native-navigation-performance
package #404
Fixed
- (browser) Prevent throwing an error in edge cases when
performance.getEntriesByType()
returns undefined #401
- (react-native) Broaden version range allowed for
@react-native-community/netinfo
peer dependency #413
- (react-navigation) Refactor
CompleteNavigation
as a functional component #418
- (react-native) Update the android namepsace to
com.bugsnag.reactnative.performance
to prevent overlap with the native android package [#426]https://github.com/bugsnag/bugsnag-js-performance/pull/426
v2.2.0 (2024-02-01)
This release adds support for automatic span instrumentation when using React Navigation in React Native apps. See online docs for details.
- (browser) Export noops from browser package when window or document is undefined #390
v2.1.0 (2023-12-12)
Fixed
- (react-router) Allow
/
as a basename #337
- (vue-router) Allow
/
as a basename #337
- (react-native) Generate random bytes natively for ID generation #380
- (react-native) Discard spans when the app is in the background #384
Added
- (angular) Added new integration for angular apps #293
v2.0.0 (2023-11-20)
Added
- (react-native) Added
net.host.connection.type
span attribute #334
- (react-native) Added
net.host.connection.subtype
span attribute #360
- (react-native) Added persistence to retry queue #357
Fixed
- (browser) Fall back to unbuffered performance observer when buffer is not supported #352
- (browser) Listen for pagehide and pageshow events in backgrounding listener #362
- (core) Round timestamps to the nearest integer #364
v1.2.0 (2023-10-12)
This release adds support for running BugSnag Performance in React Native apps. See online docs for details.
Added
- (delivery-fetch) Added
@bugsnag/delivery-fetch-performance
package #281
v1.1.0 (2023-09-18)
Added
- (browser) Added new
VueRouterRoutingProvider
for integration with vue-router #293
- (browser) Added new
ReactRouterRoutingProvider
for integration with react-router v6 #285
Fixed
- (browser) Do not retry delivery for oversized payloads when connection fails #280
- (browser) Fallback to the default route resolver for full page load spans if the configured
routingProvider
does not return a route #300
v1.0.0 (2023-07-27)
Added
- (browser) Added new
networkRequestCallback
config option #262
- (browser) Add
sendPageAttributes
configuration option #266 #270 #271
Fixed
- (browser) Calculate time origin on create as well as visibility change #268
- (browser) Only track network requests over http(s) #275
- (browser) Fall back to default route resolver when custom resolver returns empty string or undefined #276
- (browser) Fix sampling logic when batching for delivery #278
Removed
- Removed
@bugsnag/js-performance
meta package #264
v0.3.0 (2023-07-17)
Fixed
- (core) Use platform clock to set the
Bugsnag-Sent-At
header #265
- (browser) Only add
http.flavor
span attribute when it is a useful value #255
Removed
- (browser) Remove the
networkInstrumentationIgnoreUrls
config option #261
v0.2.0 (2023-07-10)
Added
- (core, browser) Log a warning when providing invalid options to
startSpan
#245
- (core) Added
bugsnag.sampling.p
attribute #258
Fixed
- (core) Correctly report the
Bugsnag-Span-Sampling
header #256 #257
v0.1.1 (2023-06-28)
Added
- (core) Allow spans to be nested and introduce the notion of a context stack & current span context #198 #206 #209 #210
- (core) Add
makeCurrentContext
span option #211
- (core) Add
parentContext
span option #214
- (core) Add
device.id
as a resource attribute #217
- (core) Add
generateAnonymousId
config option #217
- (core) Add
isFirstClass
span option #218
- (core) Log a warning when trying to end a Span multiple times #200
- (core) Add 'Bugsnag-Sent-At' header to trace payloads #220
- (browser) Add PageLoadPhase sub-spans for full page loads #212 #224
- (browser) Add ResourceLoad instrumentation #225
- (browser) Set title and url attributes for page load and route change spans when settling #240
Removed
- (core) Breaking change: The
samplingProbability
configuration option has been removed. A default probability of 1.0 is used until a probability value is received from the server #219