Missing server request logs from DropWizard application #12588
-
The issue: I don't see any server request logs being delivered to OTel receiver. I am running Dropwizard app with OTel Contrib Java agent. I am running agent with default config, I have otlp log export enabled. I do see logs from application loggers (logback) but no server request logs. As far as I can tell Dropwizard uses Jetty http server. According to docs, Dropwizard uses the logback-access library for processing request logs. Here is my Dropwizard HTTP server config:
Here is my Dropwizard logging config:
Here is the docker image I use to run app:
When I run app locally, I can see request logs being printed to the console. I have enabled detailed debug logs on OTel collector side and see no incoming events containing request logs.
Please advice. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 14 replies
-
can you include examples of the server request logs? are those coming directly from Jetty? can you identify which logging library those are using? |
Beta Was this translation helpful? Give feedback.
this is interesting, it goes through
ch.qos.logback.access.jetty.RequestLogImpl
I looked that up and found https://logback.qos.ch/access.html:
which would explain the issue, since the OpenTelemetry instrumentation applies specifically to logback-classic