@sentry/hub
Advanced tools
Changelog
7.106.1
createReduxEnhancer
on server (#11010)Changelog
7.106.0
tunnelRoute
option (#10958)setTransactionName
global
(#10925)AttachmentType
and use for envelope attachment_type
property (#10946)Work in this release contributed by @jessezhang91 and @bfontaine. Thank you for your contributions!
Changelog
7.105.0
withActiveSpan
is exported everywhere (#10877)You can use the withActiveSpan
method to ensure a certain span is the active span in a given callback. This can be
used to create a span as a child of a specific span with the startSpan
API methods:
const parentSpan = Sentry.startInactiveSpan({ name: 'parent' });
if (parentSpan) {
withActiveSpan(parentSpan, () => {
// This will be a direct child of parentSpan
const childSpan = Sentry.startInactiveSpan({ name: 'child' });
});
}
Changelog
7.104.0
This release adds support for the INP web vital. This is currently only supported for Saas Sentry, and product support
is released with the upcoming 24.3.0
release of self-hosted.
To opt-in to this feature, you can use the enableInp
option in the browserTracingIntegration
:
Sentry.init({
integrations: [
Sentry.browserTracingIntegration({
enableInp: true,
});
]
})
nodeProfilingIntegration
(#10864)errorHandler
for replayCanvas integration (#10796)Changelog
7.103.0
forceTransaction
to startSpan()
APIs (#10819)You can now pass forceTransaction: true
to startSpan()
, startSpanManual()
and startInactiveSpan()
. This allows
you to start a span that you want to be a transaction, if possible. Under the hood, the SDK will connect this span to
the running active span (if there is one), but still send the new span as a transaction to the Sentry backend, if
possible, ensuring it shows up as a transaction throughout the system.
Please note that setting this to true
does not guarantee that this will be sent as a transaction, but that the SDK
will try to do so. You can enable this flag if this span is important to you and you want to ensure that you can see it
in the Sentry UI.
Changelog
7.102.1
window.location
(#10659)@remix-run/router
a dependency (v7) (#10779)Changelog
7.102.0
captureContext
function (#10737)Changelog
7.101.1
In version 7.101.0 the @sentry/hub
package was missing due to a publishing issue. This release contains the package
again.
webpack://
prefix more broadly from source map sources
field (#10641)Changelog
7.100.1
This release contains build fixes for profiling-node.
Changelog
7.100.0
This release includes some deprecations. For more details please look at our migration guide.
The deprecation most likely to affect you is the one of BrowserTracing
. Instead of new BrowserTracing()
, you should
now use browserTracingIntegration()
, which will also handle framework-specific instrumentation out of the box for
you - no need to pass a custom routingInstrumentation
anymore. For @sentry/react
, we expose dedicated integrations
for the different react-router versions:
reactRouterV6BrowserTracingIntegration()
reactRouterV5BrowserTracingIntegration()
reactRouterV4BrowserTracingIntegration()
reactRouterV3BrowserTracingIntegration()
See the migration guide for details.
browserTracingIntegration()
(#10353)BrowserTracing
integration (#10493)browserProfilingIntegration
(#10438)bunServerIntegration()
(#10439)browserTracingIntegration
(#10397)reactRouterV3BrowserTracingIntegration
for react router v3 (#10489)reactRouterV4/V5BrowserTracingIntegration
for react router v4 & v5 (#10488)reactRouterV6BrowserTracingIntegration
for react router v6 & v6.4 (#10491)browserTracingIntegration
(#10442)WinterCGFetch
with winterCGFetchIntegration
(#10436)continueTrace
(#10301)new VueIntegration()
(#10440)browserTracingIntegration()
(#10477)browserTracingIntegration()
(#10450)@sentry/profiling-node
has been ported into the monorepo. Future development for it will happen here!
setHttpStatus
from all packages (#10475)Sentry
namespace (#10452)name
& attributes
to tracesSampler
(#10426)system-ui
to start of font family (#10464)rrweb
to 2.10.0 (#10445)propagationContextFromHeaders
(#10313)startSpan
, startSpanManual
and startInactiveSpan
pick up the scopes at time of creation instead of
termination (#10492)require
call to import Undici (#10388)