Closed
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
7.106.0
Framework Version
No response
Link to Sentry event
No response
SDK Setup
Sentry.initSentry({
// ...
new Sentry.Integrations.RequestData({})
})
Steps to Reproduce
- Start transaction
- Rename transaction
Sentry.getActiveSpan()?.updateName("a");
- Set
Sentry.getCurrentScope().setSDKProcessingMetadata({ request: ctx.request });
from koa request Sentry.captureException(new Error())
Expected Result
I expect error events created in the transaction to inherit the transaction name from the span/transaction (not sure what the difference is with recent deprecations). Instead, the RequestData
integration overwrites the transaction name from the currently active transaction.
I see there is a check in
that tries!event.transasction
, but that property is not set on that event. Instead, there's a tags.transaction
tag.
Actual Result
See above.
The workaround of setting:
new Sentry.Integrations.RequestData({
// @ts-expect-error
transactionNamingScheme: false,
}),
seems to work (I assume transaction linking is done in the backend?)
Metadata
Metadata
Assignees
Type
Projects
Status
No status