feat(otel): mark span processor based OpenTelemetry setup methods as obsolete - #5586
Open
jamescrosswell wants to merge 7 commits into
Open
jamescrosswell wants to merge 7 commits into
jamescrosswell wants to merge 7 commits into
Conversation
…lete AddSentry and UseOpenTelemetry will be removed in 7.0.0 in favour of AddSentryOtlpExporter/UseOtlp from Sentry.OpenTelemetry.Exporter. Samples still using them are migrated to OTLP. Closes #4932 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
jamescrosswell
commented
Sep 17, 2026
Co-authored-by: James Crosswell <jamescrosswell@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5586 +/- ##
==========================================
+ Coverage 74.76% 74.84% +0.08%
==========================================
Files 515 515
Lines 18963 18963
Branches 3694 3694
==========================================
+ Hits 14177 14193 +16
+ Misses 3908 3892 -16
Partials 878 878 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ric-oliv
reviewed
Sep 18, 2026
Co-authored-by: Ricardo Colombo Oliveira <github@ricoliv.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
Marks the span-processor based ("POTEL") OpenTelemetry setup methods in
Sentry.OpenTelemetryas[Obsolete], ahead of removing them in 7.0.0:TracerProviderBuilder.AddSentry(...)→ useAddSentryOtlpExporter(dsn)SentryOptions.UseOpenTelemetry(...)(both overloads) → useUseOtlp()The replacements live in the
Sentry.OpenTelemetry.Exporterpackage, added in #4899. Obsolete warnings name that package so users know where to find the new methods.The GraphQL.Server and AspNetCore.Blazor.Server samples still used the old methods, so they now use OTLP. The OpenTelemetry sample READMEs had outdated snippets too, and those are fixed.
Closes #4932
🤖 Generated with Claude Code