Multiple trace contexts are getting generated for single transaction #11011
Replies: 3 comments
-
Moving this over to the instrumentation repository |
Beta Was this translation helpful? Give feedback.
-
hi @srinivas-bode, the first thing I'd try is to use a recent Java agent version (1.5.0 is nearing 3 years old), and also try without if that doesn't help, we'd probably need a repro to help track down where context propagation is being lost |
Beta Was this translation helpful? Give feedback.
-
Hi @trask , Yeah i was using that because when i am instrumenting everything i am getting below error while instrumenting the metro library. <con:stack-trace xmlns:con="http://www.bea.com/wli/sb/context">com.bea.wli.sb.service.handlerchain.HandlerException: Not yet supported! </soapenv:Fault> So i suppressed the instrumentation of the library, i am not getting the issue anymore but as i told earlier the issue i am facing now is with trace propagation. I already raised an issue for this below is the link to that |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I am using opentelemetry java agent v1.5.0 for traces and spans for OSB(Oracle service Bus). Please find my configurations below.
otel.metrics.exporter=none
otel.instrumentation.common.default-enabled=false
otel.instrumentation.methods.include=com.bea.wli.sb.transports.http.HttpOutboundMessageContext[send,getResponse,setRequestMetaData,setRequestProperty,setRequestPayload,getResponsePayload,scheduleResponseWork,buildEffectiveUrl,getHttpUrlConnectionFactory,resolve,getResponse,isReturnPayload,handleResponse];com.bea.wli.sb.transports.http.HttpOutboundMessageContext$PostHttpResponseWork[run]
otel.instrumentation.cxf.enabled=true
otel.instrumentation.apache-httpclient.enabled=true
otel.instrumentation.java-http-client.enabled=true
otel.instrumentation.http-url-connection.enabled=true
otel.instrumentation.jaxrs-client.enabled=true
otel.instrumentation.jaxrs.enabled=true
otel.instrumentation.jaxws.enabled=true
otel.instrumentation.grpc.enabled=true
otel.instrumentation.apache-httpasyncclient.enabled=true
otel.instrumentation.async-http-client.enabled=true
otel.instrumentation.guava.enabled=true
otel.instrumentation.servlet.enabled=true
otel.instrumentation.okhttp.enabled=true
otel.instrumentation.spring-core.enabled=true
otel.instrumentation.spring-webmvc.enabled=true
otel.instrumentation.spring-ws.enabled=true
otel.instrumentation.rmi.enabled=true
otel.instrumentation.jdbc.enabled=true
otel.instrumentation.jms.enabled=true
otel.instrumentation.netty.enabled=true
otel.instrumentation.reactor-netty.enabled=true
otel.instrumentation.google-http-client.enabled=true
otel.instrumentation.restlet.enabled=true
otel.instrumentation.reactor.enabled=true
otel.instrumentation.metro.enabled=true
otel.instrumentation.grizzly.enabled=true
otel.resource.attributes=service.name=osb
otel.traces.exporter=otlp
otel.javaagent.debug=true
otel.exporter.otlp.protocol=http/protobuf
Issue:
In one of the case when i invoke a webservice which makes two calls, one for service A and other for Service B. For this there are two traces getting generated, one for each service call. Is there a way to get both of them under a single traceid or correlate both so i will have the entire flow. Manual instrumentation is not possible as its an enterprise product and i cannot make changes to source code.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions