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

Add OpenTelemetry tracing and metrics support #8999

Merged
merged 4 commits into from
Nov 29, 2022

Conversation

tomMoulard
Copy link
Member

@tomMoulard tomMoulard commented May 9, 2022

What does this PR do?

This PR adds support OpenTelemetry traces and metrics.

Motivation

To have more tracing and metrics backends.

Fixes #6374
Fixes #8231

More

  • Added/updated documentation
  • Added/updated tests

Additional Notes

TODO: Handle W3C Trace Context propagation #8231

@michalsteyn
Copy link

Would be great to get this PR merged.

@tomMoulard tomMoulard closed this Nov 8, 2022
@tomMoulard tomMoulard deleted the otlp branch November 8, 2022 15:04
@tomMoulard tomMoulard restored the otlp branch November 8, 2022 15:05
Copy link
Member

@kevinpollet kevinpollet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👽

tomMoulard and others added 3 commits November 29, 2022 11:51
* Support OpenTelemetry tracing
* Support OpenTelemetry metrics
* Handle trace propagation
Copy link
Member

@rtribotte rtribotte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👌

@jayasai470
Copy link

jayasai470 commented Dec 15, 2022

@tomMoulard thanks a lot for the PR, I am trying to deploy this in my k8 cluster where otel collector is running like a daemonset, not sure how to pass in the node ip to the command line args ?

  --tracing.openTelemetry.grpc=true
  --tracing.openTelemetry.address=${HOST_IP}:4317
  --tracing.openTelemetry.insecure=true

@jayasai470
Copy link

also if we are using aws xray as tracing backend, how can we change the trace id to xray specific ID ? for instance in our downstream services we use https://www.npmjs.com/package/@opentelemetry/id-generator-aws-xray

@tomMoulard
Copy link
Member Author

Hello @jayasai470,

Closed PRs are not a place to have discussions. Feel free to open a topic on Traefik's community forum.

@jayasai470
Copy link

Thanks for letting me know, have created one https://community.traefik.io/t/traefik-opentelemetry/16994

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for W3C Trace Context propagation with Jaeger tracing OpenTelemetry Support
10 participants