Skip to content

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

Open
adinauer wants to merge 18 commits intomainfrom
feat/otlp
Open

feat(otel): Create sentry-opentelemetry-otlp module for combining OpenTelemetry SDK OTLP export with Sentry SDK#5100
adinauer wants to merge 18 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 309.55 ms 359.62 ms 50.07 ms
Size 1.58 MiB 2.29 MiB 720.89 KiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
b6cfb57 372.92 ms 507.77 ms 134.85 ms
ce0a49e 532.00 ms 609.96 ms 77.96 ms
e59e22a 374.68 ms 442.14 ms 67.46 ms
fc5ccaf 256.80 ms 322.36 ms 65.56 ms
d15471f 294.13 ms 399.49 ms 105.36 ms
d15471f 303.49 ms 439.08 ms 135.59 ms
abfcc92 337.38 ms 427.39 ms 90.00 ms
ee35ac3 346.83 ms 435.48 ms 88.65 ms
d15471f 322.58 ms 396.08 ms 73.50 ms
f634d01 359.58 ms 433.88 ms 74.30 ms

App size

Revision Plain With Sentry Diff
b6cfb57 1.58 MiB 2.28 MiB 718.80 KiB
ce0a49e 1.58 MiB 2.10 MiB 532.94 KiB
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
ee35ac3 1.58 MiB 2.13 MiB 558.77 KiB
d15471f 1.58 MiB 2.13 MiB 559.54 KiB
f634d01 1.58 MiB 2.10 MiB 533.40 KiB

Previous results on branch: feat/otlp

Startup times

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

App size

Revision Plain With Sentry Diff
e60f0df 1.58 MiB 2.29 MiB 719.82 KiB
2df4164 1.58 MiB 2.29 MiB 719.82 KiB
8d18a57 1.58 MiB 2.29 MiB 719.81 KiB
53c2fc4 1.58 MiB 2.29 MiB 719.83 KiB
a614911 1.58 MiB 2.29 MiB 720.88 KiB
9ac2f6b 1.58 MiB 2.29 MiB 719.82 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 6dd288b

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.

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