Repository navigation
Conversation
Remove the legacy span processor, propagator, error event processor, and trace data classes for the 9.0 release. Keep the Otel-prefixed integration classes as the supported implementations. Fixes #6013 Co-Authored-By: Claude <noreply@anthropic.com>
📲 Install BuildsAndroid
|
lbloder
reviewed
Oct 12, 2026
lbloder
left a comment
Collaborator
There was a problem hiding this comment.
Looks good!
With these legacy classes removed, there might be an opportunity for further cleanups:
io.sentry.SentrySpanStorageseems to be unused now, so we could delete that class as well.- I Couldn't find any usage of
io.sentry.Instrumenter.OTELanymore (except for tests). So we could potentially remove that. Then onlyInstrumenter.SENTRYstays which means we could get ride of the option and the enum altogether.
This branch has not been deployed
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
Remove the deprecated
SentrySpanProcessor,SentryPropagator,OpenTelemetryLinkErrorEventProcessor, and internalTraceDataclasses fromsentry-opentelemetry-core. Remove their legacy-only tests and update the OpenTelemetry documentation and API dump.💡 Motivation and Context
These classes were deprecated before the Java SDK 9 release.
OtelSentrySpanProcessorandOtelSentryPropagatorare the supported replacements, whileOpenTelemetryLinkErrorEventProcessorandTraceDataare no longer needed.💚 How did you test it?
./gradlew spotlessApply apiDump./gradlew ':sentry-opentelemetry:sentry-opentelemetry-core:check'📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
None.