Support logging via OpenTelemetry #10056
Labels
area/logs
area/otel
contributor/wanted
Participation from an external contributor is highly requested
kind/enhancement
a new or improved feature.
priority/P2
need to be fixed in the future
Welcome!
What did you expect to see?
I was very happy when I recently discovered that Traefik Proxy v3 brings support for exporting traces and metrics to the OpenTelemetry collector. Given that one of the other big ticket items for v3 is improved logging, why not also support exporting logs via OTLP to the collector?
In our environments we route all telemetry via collectors where possible. This strategy allows the collector to act as an abstraction over whatever services we then forward the logs, metrics and traces out to. It also gives us one place to manage adding/removing labels, and filtering out noise. Overall, supporting applications and the platform is made simpler.
An example of a Traefik problem I would like to solve using logging to OTLP is how the Traefik and access logs are handled today. I'm in a kubernetes environment, and can only scrape logs output from Traefik currently. Traefik doesn't apply any metadata to the logs it outputs so it isn't easy to separate the two log types during collection or querying. If logs were instead pushed via OTLP with attributes marking the log type, this would be solved.
The text was updated successfully, but these errors were encountered: