Skip to content

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

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

Create sentry-opentelemetry-otlp module for comining OpenTelemetry SDK OTLP export with Sentry SDK#5100
adinauer wants to merge 4 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 476d7f1

@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2026

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 302.47 ms 363.00 ms 60.53 ms
Size 1.58 MiB 2.29 MiB 719.82 KiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
a416a65 333.78 ms 410.37 ms 76.59 ms
d15471f 342.08 ms 415.44 ms 73.35 ms
e59e22a 329.74 ms 383.31 ms 53.57 ms
d15471f 315.20 ms 370.22 ms 55.02 ms
d364ace 382.77 ms 443.21 ms 60.44 ms
b3d8889 371.33 ms 426.24 ms 54.92 ms
a416a65 316.52 ms 359.67 ms 43.15 ms
b03edbb 352.20 ms 423.69 ms 71.49 ms
d15471f 304.55 ms 408.43 ms 103.87 ms
319f256 315.96 ms 372.96 ms 57.00 ms

App size

Revision Plain With Sentry Diff
a416a65 1.58 MiB 2.12 MiB 555.26 KiB
d15471f 1.58 MiB 2.13 MiB 559.54 KiB
e59e22a 1.58 MiB 2.20 MiB 635.34 KiB
d15471f 1.58 MiB 2.13 MiB 559.54 KiB
d364ace 1.58 MiB 2.11 MiB 539.75 KiB
b3d8889 1.58 MiB 2.10 MiB 535.07 KiB
a416a65 1.58 MiB 2.12 MiB 555.26 KiB
b03edbb 1.58 MiB 2.13 MiB 557.32 KiB
d15471f 1.58 MiB 2.13 MiB 559.54 KiB
319f256 1.58 MiB 2.19 MiB 619.79 KiB

Previous results on branch: feat/otlp

Startup times

Revision Plain With Sentry Diff
2df4164 367.39 ms 443.00 ms 75.61 ms

App size

Revision Plain With Sentry Diff
2df4164 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