-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access Log doesn't print Otel MDC (traceId, etc) #43570
Comments
/cc @brunobat (opentelemetry,tracing), @radcortez (opentelemetry,tracing) |
@brunobat do you have this one on your radar? |
It has never been implemented for access logs. |
Doesn't say much about the urgency but the lack of tracing infos in access log did not make my life easier over there: #42636 (reply in thread) |
We would also like this. |
I'll work on it, can you assign it to me @brunobat? |
Thanks @danielsoro. The task is yours. |
@danielsoro Any update on this? |
Sorry for the delay; I needed to be out for a time, but I'm coming back for now. I already have something but it is still not finished, as we already discussed, the logic here for the access_log should change a bit. We should inject it into the vertex context when the request arrives, so when we've injected the start span/trace/etc, this information will be available in the context and possibly be retrieved into the AccessLog Processor. I'm having an issue building quarkus on my Mac, because the protobuf plugin is trying to execute a .exe, not sure why... but it is really weird.
|
I Had this problem at some point but I can't remember how I fixed it. |
rosetta is required to make it work... that was the issue:
|
Describe the bug
I've installed
quarkus-opentelemetry
extension just as in the guide, however I notice that the Otel MDC key (traceId, etc) is null for access logs. This happens for both standard Vertx and Mutiny variant, even though the standard log can show traceId just fine.Using JAX-RS the access log working correctly.
Expected behavior
The access log should print Otel MDC key for Vertx Web Router endpoint, just like JAX-RS.
Actual behavior
Using the following properties:
Standard Vertx
I have defined the following routes:
Accessing each routes, produce logs:
The logging from the code works fine, but none of the access logs works
Vertx Mutiny Variant
The code is basically the same with standard Vertx, but accessing each endpoints gives me the following result:
Notes that for the
/delayed-message
endpoint both standard log and access log are displaying Otel MDC correctly, seems like delaying the execution is working somehow. However the/pokemon
which is also usingdelay
doesn't print any Otel MDC in the access log.How to Reproduce?
I made a small project to reproduce this issue:
https://github.com/hendratommy/vertx-otel-accesslog-issue
Output of
uname -a
orver
arwin MacBook-Pro.local 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:13:00 PDT 2024; root:xnu-10063.141.2~1/RELEASE_X86_64 x86_64
Output of
java -version
openjdk version "21.0.4" 2024-07-16 LTS OpenJDK Runtime Environment Temurin-21.0.4+7 (build 21.0.4+7-LTS) OpenJDK 64-Bit Server VM Temurin-21.0.4+7 (build 21.0.4+7-LTS, mixed mode)
Quarkus version or git rev
3.15.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)ApacheMaven 3.9.8 (36645f6c9b5079805ea5009217e36f2cffd34256)
Additional information
No response
The text was updated successfully, but these errors were encountered: