Skip to content

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

Merged
adinauer merged 5 commits into8.x.xfrom
feat/potel-39-record-only-if-performance-disabled
Sep 3, 2024
Merged

POTEL 39 - Use RECORD_ONLY sampling decision if performance is disabled#3659
adinauer merged 5 commits into8.x.xfrom
feat/potel-39-record-only-if-performance-disabled

Conversation

@adinauer
Copy link
Copy Markdown
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

@github-actions
Copy link
Copy Markdown
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

@github-actions
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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