Skip to content

feat(otel): Add OpenTelemetry compatibility BOM#5629

Draft
adinauer wants to merge 2 commits into
mainfrom
feat/opentelemetry-bom
Draft

feat(otel): Add OpenTelemetry compatibility BOM#5629
adinauer wants to merge 2 commits into
mainfrom
feat/opentelemetry-bom

Conversation

@adinauer

Copy link
Copy Markdown
Member

📜 Description

Adds a dedicated io.sentry:sentry-opentelemetry-bom module. The new BOM imports Sentry's tested OpenTelemetry stable and alpha BOMs and constrains the published Sentry OpenTelemetry artifacts to the SDK version.

The general io.sentry:sentry-bom now excludes *-bom modules so regular Sentry consumers do not implicitly opt in to OpenTelemetry version management.

💡 Motivation and Context

Spring Boot and OpenTelemetry can manage different OpenTelemetry versions, which can cause runtime classpath mismatches for Sentry OpenTelemetry integrations. This provides an explicit opt-in BOM for customers who want Sentry's tested OpenTelemetry dependency set to win without changing dependency management for regular Sentry SDK users.

💚 How did you test it?

  • ./gradlew spotlessApply apiDump
  • ./gradlew :sentry-opentelemetry:sentry-opentelemetry-bom:publishToMavenLocal :sentry-opentelemetry:sentry-opentelemetry-bom:spotlessCheck :sentry-bom:generatePomFileForMavenPublication
  • Verified the generated sentry-opentelemetry-bom POM imports the OpenTelemetry stable, alpha, instrumentation, and instrumentation-alpha BOMs
  • Verified the generated sentry-bom POM does not include sentry-opentelemetry-bom

📝 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

Add docs.sentry.io guidance for when to import sentry-opentelemetry-bom and how to order it with Spring Boot dependency management.

adinauer added 2 commits June 25, 2026 10:38
Add an opt-in Sentry OpenTelemetry BOM that imports the tested OpenTelemetry stable and alpha BOMs and constrains Sentry OpenTelemetry modules to the SDK version.

Keep the main Sentry BOM from managing the dedicated OpenTelemetry BOM so regular Sentry consumers are unaffected.
@github-actions

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

Generated by 🚫 dangerJS against 5c5b6b3

@sentry

sentry Bot commented Jun 25, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.45.0 (1) release

⚙️ sentry-android Build Distribution Settings

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.

1 participant