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

OpenTelemetry #814

Open
wagnerww opened this issue Apr 14, 2023 · 1 comment
Open

OpenTelemetry #814

wagnerww opened this issue Apr 14, 2023 · 1 comment

Comments

@wagnerww
Copy link

Hello!
Would you have any examples of how to implement OpenTelemetry in go-chi?

I even managed to implement it, but it just does the tracing. In my case, I communicate with redis and this metric does not appear, even using redis otel.

@code-n-go
Copy link

You could start here https://github.com/open-telemetry/opentelemetry-go-contrib/blob/main/instrumentation/github.com/labstack/echo/otelecho/echo.go. It's an example of OpenTelemetry middleware stood up utilizing Echo. Adapting something similar should be fairly straight-forward. Other than that, you could be instantiating your spans incorrectly. It's hard to tell w/o some example code you're implementing, unfortunately.

Best of luck!

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

No branches or pull requests

2 participants