feat(otel): Create sentry-opentelemetry-otlp module for combining OpenTelemetry SDK OTLP export with Sentry SDK#5100
Conversation
Contributor
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨
Bug Fixes 🐛
Internal Changes 🔧Deps
🤖 This preview updates automatically when you update the PR. |
Contributor
Performance metrics 🚀
|
| 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
commented
Feb 23, 2026
...entelemetry-otlp/src/main/java/io/sentry/opentelemetry/otlp/OpenTelemetryOtlpPropagator.java
Show resolved
Hide resolved
...lemetry-otlp/src/main/java/io/sentry/opentelemetry/otlp/OpenTelemetryOtlpEventProcessor.java
Show resolved
Hide resolved
sentry-samples/sentry-samples-console-otlp/src/main/java/io/sentry/samples/console/Main.java
Show resolved
Hide resolved
sentry-samples/sentry-samples-spring-boot-4-otlp/src/main/resources/application.properties
Show resolved
Hide resolved
...rces/META-INF/services/io.opentelemetry.sdk.autoconfigure.spi.ConfigurablePropagatorProvider
Outdated
Show resolved
Hide resolved
...t-4-otlp/src/main/java/io/sentry/samples/spring/boot4/otlp/SentryOtlpPropagatorProvider.java
Outdated
Show resolved
Hide resolved
...ing-boot-4-otlp/src/main/java/io/sentry/samples/spring/boot4/otlp/SentryDemoApplication.java
Show resolved
Hide resolved
sentry-opentelemetry-otlp module for comining OpenTelemetry SDK OTLP export with Sentry SDKsentry-opentelemetry-otlp module for comining OpenTelemetry SDK OTLP export with Sentry SDK
sentry-opentelemetry-otlp module for comining OpenTelemetry SDK OTLP export with Sentry SDKsentry-opentelemetry-otlp module for combining OpenTelemetry SDK OTLP export with Sentry SDK
Contributor
|
...entelemetry-otlp/src/main/java/io/sentry/opentelemetry/otlp/OpenTelemetryOtlpPropagator.java
Show resolved
Hide resolved
...s-spring-boot-4-otlp/src/main/java/io/sentry/samples/spring/boot4/otlp/PersonController.java
Show resolved
Hide resolved
...entelemetry-otlp/src/main/java/io/sentry/opentelemetry/otlp/OpenTelemetryOtlpPropagator.java
Outdated
Show resolved
Hide resolved
4 tasks
...entelemetry-otlp/src/main/java/io/sentry/opentelemetry/otlp/OpenTelemetryOtlpPropagator.java
Show resolved
Hide resolved
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>
There was a problem hiding this comment.
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.
...entelemetry-otlp/src/main/java/io/sentry/opentelemetry/otlp/OpenTelemetryOtlpPropagator.java
Show resolved
Hide resolved
alexander-alderman-webb
approved these changes
Feb 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📜 Description
sentry-opentelemetry-otlpmodule containing:OpenTelemetryOtlpPropagatorto use in OpenTelemetry SDK configOpenTelemetryOtlpEventProcessorto use in Sentry SDK config💡 Motivation and Context
Closes #5096 by implementing
Bfrom #5096 (comment)💚 How did you test it?
📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps