-
-
Notifications
You must be signed in to change notification settings - Fork 225
Document Scope's transaction field #246
Comments
I acknowledge the potential for confusion. The preexisting field/feature is still useful in its own merit and not being removed -- no reason to break users. The values transaction name in scope.transaction and the current transaction object/pointer/ref should be kept in sync and error events should report the transaction name that was in the scope when the error occurred. This is an explicit product feature, as we link errors to transactions in Sentry. @marandaneto from your report, sounds like .NET might need a fix. Did you break the public API in Java removing the transaction? |
Does it mean that when a user calls
|
Yes, correct.
It sets the transaction name in the scope and this name is applied, as
The name is mutable. Calling
Then |
Thanks @rhcarvalho |
Another quick question @rhcarvalho In other words:
|
@rhcarvalho thanks!
kinda, |
I'd consider this a corner-case. For consistency, I suggest that setting You are right that the transaction name is important, and Relay will override missing names with |
Thanks for clarifying and this def needs discussion/alignment. |
theres a note about this on the spec now https://develop.sentry.dev/sdk/performance/#scope-changes |
The Scope has a
transaction
field and it exposes a setter.https://develop.sentry.dev/sdk/unified-api/#scope
This is now diverging because of the performance feature.
Should we keep it or not? does it get replaced by the performance feature or not?
on .NET
The
transaction
field still exists and coexists with the performance feature, they are totally separated features, they don't touch each other.While on Java, the
transaction
does not exist anymore, it got replaced by the performance feature, which means, callingsetTransaction
on Java, reads the active transaction in the scope and overwrites its name.We should document & unify this behavior.
@rhcarvalho @bruno-garcia @Tyrrrz @maciejwalkowiak @HazAT @brustolin
The text was updated successfully, but these errors were encountered: