TraceId and SpanId not coming during manual instrumentation #11611
Replies: 4 comments
-
I also noticed that only few time the application is generating the traceid and spanid and few other time traceid and spanid are not added to the logs. When the Opentelemetry java agent jar is adding the traceid and spanid for few requests it only added for few of the logs not the other. I am confused here with when it is adding and when it is not adding the traceid and spanid. |
Beta Was this translation helpful? Give feedback.
-
hi @omsaichetanbe, the OpenTelemetry Java agent doesn't have automatic context propagation for Azure Functions there are two approaches forward here (both are good):
|
Beta Was this translation helpful? Give feedback.
-
Hi @trask , our main goal was not to make any code changes with manual instrumentation or auto instrumentation, we either need to send the traces, logs, metrics using manual instrumentation using java agent jar or just integrate the dependencies in the pom.xml and achieve integration of logs traces with traceId and SpanId. Is it possible to do so? |
Beta Was this translation helpful? Give feedback.
-
@trask , can you please let me know how I can get traceId and SpanId exported from a springboot application. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have been exporting logs and traces to the Grafana but when trying to open tempo and check the logs for a particular traceId, it is not showing any logs after adding correlation.
I have instrumented a Java Azure Function Application with OpenTelemetry Java Agent Manually and my understanding is that the TraceId and SpanId are propagated and added from the agent. When doing Span.current().getSpanContext().getTraceId() I am seeing 00000000000000000000000000000000.
I have tried adding the logback.xml
and the dependency :
io.opentelemetry.instrumentation
opentelemetry-logback-mdc-1.0
2.4.0-alpha
Any help would be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions