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

Set server span name for aborted requests in quarkus resteasy reactive #8891

Merged
merged 3 commits into from
Jul 11, 2023

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Jul 6, 2023

Resolves #8873

@laurit laurit requested a review from a team as a code owner July 6, 2023 17:09
import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext;

public final class OtelRequestContext {
private static final ThreadLocal<OtelRequestContext> contextThreadLocal = new ThreadLocal<>();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to use OTel Context instead of a thread local?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the ThreadLocal uses slightly less code. I don't have a strong preference, if you want I can rewrite to otel context.

laurit and others added 2 commits July 7, 2023 18:55
…ava/io/opentelemetry/javaagent/instrumentation/quarkus/resteasy/reactive/ResteasyReactiveSpanName.java

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
@laurit laurit merged commit 8011cb4 into open-telemetry:main Jul 11, 2023
45 checks passed
@laurit laurit deleted the quarkus-resteasy-native-abort branch July 11, 2023 11:05
@laurit laurit changed the title Set server span name for aborted requests in quarkus resteasy native Set server span name for aborted requests in quarkus resteasy reactive Jul 20, 2023
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.

HTTP error raised out of controller results in bad transaction.name mapping - quarkus rest reactive client
2 participants