-
Notifications
You must be signed in to change notification settings - Fork 573
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
gorilla/mux instrumentation #19
Conversation
cc @paulosman to have a look and see whether the approach is similar to, or wildly dissimilar from https://github.com/honeycombio/beeline-go/tree/master/wrappers/hnygorilla |
Updated, it's independent from #15, so it's ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a partial review. No big things standing out, just wanted to get you the feedback I've gathered to this point. I'll continue the review later.
Updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM other than the bit in the example README.
* master: Runtime metrics plugin (open-telemetry#9) Fix issues raised by golangci-lint (open-telemetry#29) use correct circleci dir (open-telemetry#30) gorilla/mux instrumentation (open-telemetry#19) Update CODEOWNERS and CONTRIBUTING.md to match otel-go (open-telemetry#27) Dogstatsd exporter resource support (for 0.4.3 release) (open-telemetry#25) add datadog metrics exporter (open-telemetry#22) Update codeowners and maintainers (open-telemetry#21) # Conflicts: # go.mod # go.sum # internal/trace/http.go
This needs PR #15 to be merged first! When it's merged, I'll rebase the branch. For now, posting the code for review. The code is inplugins/gorilla/mux
.This PR adds a mock tracer needed for instrumentation tests, functions for getting attributes from the HTTP request and an instrumentation code.