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 2 - Promote OpenTelemetry Span attributes #3402

Open
wants to merge 3 commits into
base: feat/potel-1-context-forking-and-basics
Choose a base branch
from

Conversation

adinauer
Copy link
Member

@adinauer adinauer commented May 2, 2024

📜 Description

💡 Motivation and Context

Sentry features like "Requests" need certain attributes to work, e.g. span op should be "METHOD URL", response status code should be in span data.

💚 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 May 2, 2024

Fails
🚫 Please consider adding a changelog entry for the next release.
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

- POTEL 2 - Promote OpenTelemetry Span attributes ([#3402](https://github.com/getsentry/sentry-java/pull/3402))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description.

Generated by 🚫 dangerJS against b053d3c

Copy link
Contributor

github-actions bot commented May 2, 2024

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 375.32 ms 400.73 ms 25.41 ms
Size 1.70 MiB 2.28 MiB 596.71 KiB

Baseline results on branch: feat/potel-1-context-forking-and-basics

Startup times

Revision Plain With Sentry Diff
9931715 374.85 ms 431.48 ms 56.62 ms
9a9af11 376.72 ms 442.33 ms 65.61 ms
f5f9136 395.57 ms 504.94 ms 109.36 ms

App size

Revision Plain With Sentry Diff
9931715 1.70 MiB 2.28 MiB 596.01 KiB
9a9af11 1.70 MiB 2.28 MiB 596.17 KiB
f5f9136 1.70 MiB 2.28 MiB 596.01 KiB

Previous results on branch: feat/potel-2-promote-span-attributes

Startup times

Revision Plain With Sentry Diff
9cd6181 376.73 ms 459.41 ms 82.67 ms
9fdb8b8 365.10 ms 449.87 ms 84.77 ms

App size

Revision Plain With Sentry Diff
9cd6181 1.70 MiB 2.28 MiB 596.17 KiB
9fdb8b8 1.70 MiB 2.28 MiB 596.01 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.

Looks good, left suggestions for deduplicating some code

}

@SuppressWarnings("deprecation")
private OtelSpanInfo extractSpanDescription(SpanData otelSpan) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Couldn't we have the overloaded method receiving ReadableSpan call this method with ReadableSpan.toSpanData()?

}

@SuppressWarnings("deprecation")
private OtelSpanInfo descriptionForHttpMethod(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Couldn't we have the overloaded method receiving ReadableSpan call this method with ReadableSpan.toSpanData()?

}

@SuppressWarnings("deprecation")
private OtelSpanInfo descriptionForDbSystem(final @NotNull SpanData otelSpan) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Couldn't we have the overloaded method receiving ReadableSpan call this method with ReadableSpan.toSpanData()?

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.

None yet

2 participants