Skip to content

Conversation

@SylvainJuge
Copy link
Contributor

@SylvainJuge SylvainJuge commented Oct 16, 2024

The SDK version 1.42.0 introduced with (#6367) a new ExtendedSpanProcessor.onEnding(ReadWriteSpan span) that provide a hook to modify the span on end, which the SpanProcessor.onEnd(ReadableSpan readableSpan) does not allow.

This allows to simplify the current implementation of span stacktrace capture by removing all internal classes. This also allows to implement autoconfiguration which is also part of this PR.

When using autoconfiguration, this PR introduces the otel.java.experimental.span-stacktrace.filter configuration option which allows to provide the class name of the filter.

This is a breaking change and users of this module will see a compile-time error due to the change in the StackTraceSpanProcessor constructor arguments.

@SylvainJuge SylvainJuge marked this pull request as ready for review October 16, 2024 13:55
@SylvainJuge SylvainJuge requested a review from a team October 16, 2024 13:55
@github-actions github-actions bot requested a review from JonasKunz October 16, 2024 15:24
@trask trask merged commit ef0caea into open-telemetry:main Oct 17, 2024
14 checks passed
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.

4 participants