Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

span stacktrace refactor + autoconfig #1499

Merged
merged 12 commits into from
Oct 17, 2024

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 as a code owner October 16, 2024 13:55
@github-actions github-actions bot requested a review from JonasKunz October 16, 2024 15:24
span-stacktrace/README.md Outdated Show resolved Hide resolved
@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