Repository navigation
fix(core): Record span client report outcomes when discarding transactions
#25006
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
5c0e15f
2c28e98
6a37ec5
f47339e
3e16157
4dace77
5a10843
e30b28a
0031f67
3902f42
529c0c7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -62,6 +62,9 @@ export interface SdkProcessingMetadata { | |
| dynamicSamplingContext?: Partial<DynamicSamplingContext>; | ||
| capturedSpanScope?: Scope; | ||
| capturedSpanIsolationScope?: Scope; | ||
| /** | ||
| * @deprecated This is no longer set or read by the SDK and will be removed in the next major version. | ||
| */ | ||
| spanCountBeforeProcessing?: number; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If this exported this is theoretically breaking, but I guess fine as we should be only using this internally
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good point, I missed this, thanks! While I think removing it would probably be fine, given this is internal metadata, it also doesn't cost us anything to keep it around and mark it as deprecated. We can remove it in v12. |
||
| ipAddress?: string; | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -392,8 +392,6 @@ export class SentrySpan implements Span { | |
| } | ||
|
|
||
| DEBUG_BUILD && debug.log('[Tracing] Discarding standalone span because its trace was not chosen to be sampled.'); | ||
| client.recordDroppedEvent('sample_rate', 'span'); | ||
|
|
||
|
Comment on lines
-395
to
-396
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is now handled via |
||
| return; | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.