-
-
Notifications
You must be signed in to change notification settings - Fork 467
Collect PerformanceCollectionData only in sampled transactions #4834
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 2 commits
7946816
eaea0dd
f1b1540
e53ad03
bb0e201
3c35ad4
d7c8f8f
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 |
|---|---|---|
|
|
@@ -90,8 +90,8 @@ public SentryTracer( | |
| } | ||
|
|
||
| // We are currently sending the performance data only in profiles, but we are always sending | ||
| // performance measurements. | ||
| if (compositePerformanceCollector != null) { | ||
| // performance measurements (frames data in spans). | ||
| if (compositePerformanceCollector != null && Boolean.TRUE.equals(isSampled())) { | ||
|
stefanosiano marked this conversation as resolved.
Outdated
|
||
| compositePerformanceCollector.start(this); | ||
| } | ||
|
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. Bug: 🔍 Detailed AnalysisWhen a transaction is created with a deferred sampling decision ( 💡 Suggested FixModify the 🤖 Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews.
Contributor
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 the only case why we didn't do it before
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. hmm, yeah I think this is valid actually. Probably we can't simply just do that without a breaking change - but even then I think we'd have to discuss this. I'd imagine if we ever do tail-based sampling (and we probably will),
Contributor
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. got it |
||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.