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 47 - Honor ignored span origins in SentryTracer.startChild #3704

Merged
merged 12 commits into from
Sep 23, 2024

Conversation

adinauer
Copy link
Member

📜 Description

💡 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 Sep 20, 2024

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

Generated by 🚫 dangerJS against 9cabbf3

Copy link
Contributor

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 416.44 ms 472.20 ms 55.76 ms
Size 1.70 MiB 2.35 MiB 667.17 KiB

Baseline results on branch: feat/restore-gesture-listener-tracing-test

Startup times

Revision Plain With Sentry Diff
13e7183 409.37 ms 487.96 ms 78.59 ms

App size

Revision Plain With Sentry Diff
13e7183 1.70 MiB 2.35 MiB 667.12 KiB

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 👍
Left a remark on positioning of the new check

// spanOptions.getOrigin())) {
// return this;
// }
if (SpanUtils.isIgnored(scopes.getOptions().getIgnoredSpanOrigins(), spanOptions.getOrigin())) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmm, this check could be moved up to the other ones returning a NoOpSpan (e.g. L:447 or L:451)

Base automatically changed from feat/restore-gesture-listener-tracing-test to 8.x.x September 23, 2024 12:36
@adinauer adinauer merged commit 42a340e into 8.x.x Sep 23, 2024
11 of 21 checks passed
@adinauer adinauer deleted the feat/respect-ignored-span-types-in-start-child branch September 23, 2024 12:41
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