Skip to content

Clarification on "multiple async requests simultaneously" deficiency in TracingInterceptor #37

@william-tran

Description

@william-tran

When using TracingInterceptor:

when doing multiple async requests simultaneously, parent spans created before invoking the client are not properly inferred.

Does this effect auto-instrumentation projects like java-specialagent and the new opentelemetry-java-instrumentation? Specialagent appends the TracingInterceptor to the return value whenever OkHttpClient.interceptors() and OkHttpClient.networkInterceptors() are called. The OTel project instruments at the OkHttpClient(OkHttpClient.Builder) constructor by adding its own TracingInterceptor to the Builder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions