Skip to content
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

POTEL 39 - Use RECORD_ONLY sampling decision if performance is disabled #3659

Merged
merged 5 commits into from
Sep 3, 2024

Conversation

adinauer
Copy link
Member

📜 Description

Also fixes a bug where isTraceSampling was used instead of isTracingEnabled.

💡 Motivation and Context

💚 How did you test it?

📝 Checklist

  • I reviewed the submitted code.
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

Copy link
Contributor

github-actions bot commented Aug 27, 2024

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 7ebd37c

Copy link
Contributor

github-actions bot commented Aug 27, 2024

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 470.98 ms 537.14 ms 66.16 ms
Size 1.70 MiB 2.29 MiB 599.45 KiB

Previous results on branch: feat/potel-39-record-only-if-performance-disabled

Startup times

Revision Plain With Sentry Diff
e74261b 409.25 ms 427.44 ms 18.19 ms

App size

Revision Plain With Sentry Diff
e74261b 1.70 MiB 2.29 MiB 599.45 KiB

// TODO [POTEL] should this return RECORD_ONLY to allow tracing without performance
return SamplingResult.create(SamplingDecision.DROP);
if (!scopes.getOptions().isTracingEnabled()) {
System.out.println("not trace sampling -> RECORD_ONLY " + traceId);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Console print can be removed

Copy link
Collaborator

@lbloder lbloder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@adinauer adinauer merged commit 2b67fff into 8.x.x Sep 3, 2024
21 checks passed
@adinauer adinauer deleted the feat/potel-39-record-only-if-performance-disabled branch September 3, 2024 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants