Skip to content

Create sentry-opentelemetry-otlp module for comining OpenTelemetry SDK OTLP export with Sentry SDK#5100

Draft
adinauer wants to merge 5 commits intomainfrom
feat/otlp
Draft

Create sentry-opentelemetry-otlp module for comining OpenTelemetry SDK OTLP export with Sentry SDK#5100
adinauer wants to merge 5 commits intomainfrom
feat/otlp

Conversation

@adinauer
Copy link
Member

📜 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

💚 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

None (no version bump detected)

📋 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 ✨

  • (distribution) Add installGroupsOverride parameter by runningcode in #5066
  • (replay) Track custom masking usage via integration by markushi in #5070

Bug Fixes 🐛

  • (android) Merge tombstone and Native SDK event message. by supervacuus in #5095
  • (logs,metrics) Attach user attributes to logs and metrics regardless of sendDefaultPii by romtsn in #5099

Internal Changes 🔧

Deps

  • Update Native SDK to v0.12.7 by github-actions in #5098
  • Bump getsentry/craft from 2.20.1 to 2.21.2 by dependabot in #5083
  • Bump github/codeql-action from 4.32.0 to 4.32.2 by dependabot in #5082
  • Update Native SDK to v0.12.6 by github-actions in #5071

Other

  • Create sentry-opentelemetry-otlp module for comining OpenTelemetry SDK OTLP export with Sentry SDK by adinauer in #5100
  • Session Replay: Add PreviewView to default masked view classes by szijpeter in #5097
  • No longer log a warning if a logging integration cannot initialize Sentry due to missing DSN. by adinauer in #5075
  • Fix thread leak caused by eager creation of SentryExecutorService in SentryOptions by adinauer in #5093

🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2026

Fails
🚫 Please consider adding a changelog entry for the next release.

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

### Features

- Create `sentry-opentelemetry-otlp` module for comining OpenTelemetry SDK OTLP export with Sentry SDK ([#5100](https://github.com/getsentry/sentry-java/pull/5100))

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

Generated by 🚫 dangerJS against 2283547

@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2026

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 309.78 ms 365.36 ms 55.58 ms
Size 1.58 MiB 2.29 MiB 719.83 KiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
9ea89e8 308.06 ms 358.16 ms 50.10 ms
d15471f 310.26 ms 377.04 ms 66.78 ms
d364ace 382.77 ms 443.21 ms 60.44 ms
806307f 357.85 ms 424.64 ms 66.79 ms
17a0955 372.53 ms 446.70 ms 74.17 ms
6edfca2 316.43 ms 398.90 ms 82.46 ms
d15471f 343.13 ms 361.47 ms 18.34 ms
319f256 317.53 ms 370.83 ms 53.29 ms
9fbb112 359.71 ms 421.85 ms 62.14 ms
539ca63 313.51 ms 355.43 ms 41.92 ms

App size

Revision Plain With Sentry Diff
9ea89e8 1.58 MiB 2.28 MiB 716.23 KiB
d15471f 1.58 MiB 2.13 MiB 559.54 KiB
d364ace 1.58 MiB 2.11 MiB 539.75 KiB
806307f 1.58 MiB 2.10 MiB 533.42 KiB
17a0955 1.58 MiB 2.10 MiB 533.20 KiB
6edfca2 1.58 MiB 2.13 MiB 559.07 KiB
d15471f 1.58 MiB 2.13 MiB 559.54 KiB
319f256 1.58 MiB 2.19 MiB 619.79 KiB
9fbb112 1.58 MiB 2.11 MiB 539.18 KiB
539ca63 1.58 MiB 2.12 MiB 551.41 KiB

Previous results on branch: feat/otlp

Startup times

Revision Plain With Sentry Diff
2df4164 367.39 ms 443.00 ms 75.61 ms
e60f0df 302.47 ms 363.00 ms 60.53 ms

App size

Revision Plain With Sentry Diff
2df4164 1.58 MiB 2.29 MiB 719.82 KiB
e60f0df 1.58 MiB 2.29 MiB 719.82 KiB

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