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

gorilla/mux instrumentation #19

Merged
merged 5 commits into from
May 4, 2020
Merged

Conversation

krnowak
Copy link
Member

@krnowak krnowak commented Apr 22, 2020

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 in plugins/gorilla/mux.

This PR adds a mock tracer needed for instrumentation tests, functions for getting attributes from the HTTP request and an instrumentation code.

@lizthegrey
Copy link
Member

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

@krnowak
Copy link
Member Author

krnowak commented Apr 23, 2020

Updated, it's independent from #15, so it's ready for review.

@MikeGoldsmith MikeGoldsmith mentioned this pull request Apr 24, 2020
Copy link
Contributor

@MrAlias MrAlias left a 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.

internal/trace/http.go Outdated Show resolved Hide resolved
internal/trace/http.go Outdated Show resolved Hide resolved
internal/trace/http.go Outdated Show resolved Hide resolved
internal/trace/http.go Outdated Show resolved Hide resolved
internal/trace/http.go Show resolved Hide resolved
internal/trace/http.go Outdated Show resolved Hide resolved
internal/trace/http.go Outdated Show resolved Hide resolved
plugins/gorilla/mux/mux.go Show resolved Hide resolved
@krnowak
Copy link
Member Author

krnowak commented Apr 28, 2020

Updated.

internal/trace/http_test.go Show resolved Hide resolved
@MrAlias
Copy link
Contributor

MrAlias commented May 1, 2020

@open-telemetry/go-approvers please take a look. This is quite large but it is laying the foundation for #20 and #15 .

Copy link
Member

@Aneurysm9 Aneurysm9 left a 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.

plugins/gorilla/mux/example/README.md Outdated Show resolved Hide resolved
@MrAlias MrAlias merged commit 7a7679d into open-telemetry:master May 4, 2020
@krnowak krnowak deleted the gorilla-mux branch May 4, 2020 18:38
MikeGoldsmith added a commit to MikeGoldsmith/opentelemetry-go-contrib that referenced this pull request May 11, 2020
* 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
@pellared pellared added this to the untracked milestone Nov 8, 2024
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

Successfully merging this pull request may close these issues.

6 participants