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.
When using
TracingInterceptor:Does this effect auto-instrumentation projects like java-specialagent and the new opentelemetry-java-instrumentation? Specialagent appends the
TracingInterceptorto the return value wheneverOkHttpClient.interceptors()andOkHttpClient.networkInterceptors()are called. The OTel project instruments at theOkHttpClient(OkHttpClient.Builder)constructor by adding its ownTracingInterceptorto theBuilder.