Trace/span id's not logged with an OpenTelemetry instrumented AWS lambda #30910
einarjohnson
started this conversation in
Community
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,

I am builing a lambda with the
quarkus-amazon-lambda
extension alongside thequarkus-opentelemetry
extension using the latest Quarkus version2.16.1.Final
. I have noticed that thetraceId
andspanId
is always logged out empty in the console loggerI have the following in my application.properties
quarkus.application.name=shipment-logger-service
quarkus.opentelemetry.enabled=true
quarkus.opentelemetry.tracer.exporter.otlp.endpoint=http://localhost:4317
quarkus.log.console.format=%d{HH:mm:ss} %X %-5p traceId=%X{traceId}, parentId=%X{parentId}, spanId=%X{spanId}, sampled=%X{sampled} [%c{2.}] (%t) %s%e%n
However, the traces are being exported successfully to my Jaeger instance running on localhost so the issue here is just that the
traceId
andspanId
is missing from the actual console log/json log. I have also tried deploying my lambda into AWS and the same problem persists there. I have been following the official documentation here https://quarkus.io/guides/opentelemetry but I seem to be unable to get this working with the logging framework. Is there any documentation anywhere I can look into to make this work?Beta Was this translation helpful? Give feedback.
All reactions