Skip to content
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

Support logging via OpenTelemetry #10056

Open
2 tasks done
Confuzed opened this issue Jul 27, 2023 · 3 comments
Open
2 tasks done

Support logging via OpenTelemetry #10056

Confuzed opened this issue Jul 27, 2023 · 3 comments
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

Comments

@Confuzed
Copy link

Welcome!

  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've searched similar issues on the Traefik community forum and didn't find any.

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.

@arukiidou
Copy link
Contributor

arukiidou commented Aug 9, 2023

why not also support exporting logs via OTLP to the collector?

opentelemetry-go does not support logging yet.

@arukiidou
Copy link
Contributor

In this time, opentelemetry-go logs promoted to beta.

@nmengin
Copy link
Contributor

nmengin commented May 27, 2024

Hey @arukiidou.

Thank you for the update.

We are interested in this issue, but we’re focusing on other topics.
For such a reason, if you or another community member would like to build it, let us know, and we will work with you to make sure you have all the information needed.

Let us know here before you start. We prefer to work with our community members at the beginning of the design process to ensure that we are aligned and can move quickly with the review and merge process.

@nmengin nmengin added the contributor/wanted Participation from an external contributor is highly requested label May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

5 participants