Skip to content

feat(otel): Create sentry-opentelemetry-otlp module for combining OpenTelemetry SDK OTLP export with Sentry SDK#5100

Merged
adinauer merged 19 commits intomainfrom
feat/otlp
Feb 27, 2026
Merged

feat(otel): Create sentry-opentelemetry-otlp module for combining OpenTelemetry SDK OTLP export with Sentry SDK#5100
adinauer merged 19 commits intomainfrom
feat/otlp

Conversation

@adinauer
Copy link
Member

@adinauer adinauer commented Feb 13, 2026

📜 Description

  • Adds sentry-opentelemetry-otlp module containing:
    • OpenTelemetryOtlpPropagator to use in OpenTelemetry SDK config
      • reads incoming sentry-trace and baggage headers and attaches them to outgoing requests to enable distributed tracing with other Sentry SDKs
    • OpenTelemetryOtlpEventProcessor to use in Sentry SDK config
      • Links Sentry events to OpenTelemetry spans so Sentry backend can show tracing information

💡 Motivation and Context

Closes #5096 by implementing B from #5096 (comment)

💚 How did you test it?

📝 Checklist

  • I added GH Issue ID & Linear ID
  • 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.
  • I updated the wizard 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

@adinauer adinauer marked this pull request as draft February 13, 2026 14:04
@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2026

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • (otel) Create sentry-opentelemetry-otlp module for combining OpenTelemetry SDK OTLP export with Sentry SDK by adinauer in #5100
  • (screenshot) Add screenshot masking using view hierarchy by romtsn in #5077

Bug Fixes 🐛

  • Safe unregister SystemEventsBroadcastReceiver by kollesnica1337 in #5106

Internal Changes 🔧

Deps

  • Bump github/codeql-action from 4.32.2 to 4.32.4 by dependabot in #5109
  • Bump getsentry/craft from 2.21.2 to 2.21.7 by dependabot in #5110

🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2026

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 324.98 ms 383.70 ms 58.72 ms
Size 1.58 MiB 2.29 MiB 720.88 KiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
e59e22a 329.74 ms 383.31 ms 53.57 ms
fc5ccaf 270.49 ms 363.90 ms 93.41 ms
d15471f 361.89 ms 378.07 ms 16.18 ms
d15471f 322.58 ms 396.08 ms 73.50 ms
abfcc92 304.04 ms 370.33 ms 66.29 ms
91bb874 310.68 ms 359.24 ms 48.56 ms
ab8a72d 316.24 ms 356.38 ms 40.14 ms
d15471f 286.65 ms 314.68 ms 28.03 ms
6727e14 337.22 ms 373.94 ms 36.71 ms
f064536 329.00 ms 395.62 ms 66.62 ms

App size

Revision Plain With Sentry Diff
e59e22a 1.58 MiB 2.20 MiB 635.34 KiB
fc5ccaf 1.58 MiB 2.13 MiB 557.54 KiB
d15471f 1.58 MiB 2.13 MiB 559.54 KiB
d15471f 1.58 MiB 2.13 MiB 559.54 KiB
abfcc92 1.58 MiB 2.13 MiB 557.31 KiB
91bb874 1.58 MiB 2.13 MiB 559.07 KiB
ab8a72d 1.58 MiB 2.12 MiB 551.55 KiB
d15471f 1.58 MiB 2.13 MiB 559.54 KiB
6727e14 1.58 MiB 2.28 MiB 718.64 KiB
f064536 1.58 MiB 2.20 MiB 633.90 KiB

Previous results on branch: feat/otlp

Startup times

Revision Plain With Sentry Diff
8d18a57 354.07 ms 422.65 ms 68.59 ms
9ac2f6b 320.28 ms 367.77 ms 47.49 ms
2df4164 367.39 ms 443.00 ms 75.61 ms
845a6a6 309.55 ms 359.62 ms 50.07 ms
e60f0df 302.47 ms 363.00 ms 60.53 ms
53c2fc4 309.78 ms 365.36 ms 55.58 ms
a614911 308.31 ms 349.10 ms 40.80 ms

App size

Revision Plain With Sentry Diff
8d18a57 1.58 MiB 2.29 MiB 719.81 KiB
9ac2f6b 1.58 MiB 2.29 MiB 719.82 KiB
2df4164 1.58 MiB 2.29 MiB 719.82 KiB
845a6a6 1.58 MiB 2.29 MiB 720.89 KiB
e60f0df 1.58 MiB 2.29 MiB 719.82 KiB
53c2fc4 1.58 MiB 2.29 MiB 719.83 KiB
a614911 1.58 MiB 2.29 MiB 720.88 KiB

@adinauer adinauer marked this pull request as ready for review February 23, 2026 15:33
@adinauer adinauer changed the title Create sentry-opentelemetry-otlp module for comining OpenTelemetry SDK OTLP export with Sentry SDK feat(otel): Create sentry-opentelemetry-otlp module for comining OpenTelemetry SDK OTLP export with Sentry SDK Feb 23, 2026
@adinauer adinauer changed the title feat(otel): Create sentry-opentelemetry-otlp module for comining OpenTelemetry SDK OTLP export with Sentry SDK feat(otel): Create sentry-opentelemetry-otlp module for combining OpenTelemetry SDK OTLP export with Sentry SDK Feb 23, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 23, 2026

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

Generated by 🚫 dangerJS against 19bdc37

dingsdax pushed a commit to getsentry/sentry-docs that referenced this pull request Feb 24, 2026
## Summary
- Adds a new OTLP section to the OpenTelemetry setup index page
explaining the lightweight OTLP integration
- Creates a new `otlp.mdx` setup page with install and configuration
instructions for both plain Java (`sentry-opentelemetry-otlp`) and
Spring Boot (`sentry-opentelemetry-otlp-spring`)
- Uses `___OTLP_TRACES_URL___` and `___PUBLIC_KEY___` placeholders for
auto-populated endpoint/auth values

Companion to getsentry/sentry-java#5100

## Test plan
- [ ] Verify the OTLP section renders on
`/platforms/java/opentelemetry/setup/`
- [ ] Verify the OTLP detail page renders at
`/platforms/java/opentelemetry/setup/otlp/`
- [ ] Verify Spring Boot variant renders at
`/platforms/java/guides/spring-boot/opentelemetry/setup/otlp/`
- [ ] Verify `___OTLP_TRACES_URL___`, `___PUBLIC_KEY___`, and
`___PUBLIC_DSN___` placeholders resolve for logged-in users

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@adinauer adinauer merged commit 6c03ee9 into main Feb 27, 2026
87 of 88 checks passed
@adinauer adinauer deleted the feat/otlp branch February 27, 2026 16:02
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.

Investigate how to best combine sentry-opentelemetry-* with OTLP

3 participants