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

contrib/gorilla/mux: option for skipping tracing #789

Merged
merged 6 commits into from
Dec 28, 2020

Conversation

stroem
Copy link
Contributor

@stroem stroem commented Dec 16, 2020

This update adds an option called WithSkippingFunc, which can be used for skipping tracing based on request path.

Issue #790

gbbr
gbbr previously requested changes Dec 16, 2020
Copy link
Contributor

@gbbr gbbr left a comment

Choose a reason for hiding this comment

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

Hey! Thanks for contributing to dd-trace-go! Please take a moment to read our short contribution guidelines: https://github.com/DataDog/dd-trace-go/blob/v1/CONTRIBUTING.md

@stroem
Copy link
Contributor Author

stroem commented Dec 16, 2020

Hey! Thanks for contributing to dd-trace-go! Please take a moment to read our short contribution guidelines: https://github.com/DataDog/dd-trace-go/blob/v1/CONTRIBUTING.md

Wow, you were fast. I was about too 👍

@stroem stroem changed the title Added mux skipping option contrib/gorilla/mux: Added mux skipping option Dec 16, 2020
@stroem stroem changed the title contrib/gorilla/mux: Added mux skipping option contrib/gorilla/mux: skipping function for skipping tracing Dec 16, 2020
@stroem stroem changed the title contrib/gorilla/mux: skipping function for skipping tracing contrib/gorilla/mux: option for skipping tracing Dec 16, 2020
@stroem
Copy link
Contributor Author

stroem commented Dec 16, 2020

@gbbr what about now? :)

@gbbr
Copy link
Contributor

gbbr commented Dec 16, 2020

Better! Thanks a lot! Usually it's done the other way around and the PR would come last, so I jumped in to look :) Will review soon...

contrib/gorilla/mux/mux.go Outdated Show resolved Hide resolved
contrib/gorilla/mux/option.go Outdated Show resolved Hide resolved
contrib/gorilla/mux/mux_test.go Outdated Show resolved Hide resolved
contrib/gorilla/mux/mux_test.go Outdated Show resolved Hide resolved
@stroem stroem requested a review from gbbr December 17, 2020 16:48
Copy link
Contributor

@gbbr gbbr left a comment

Choose a reason for hiding this comment

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

LGTM! One last small thing :)

contrib/gorilla/mux/mux.go Outdated Show resolved Hide resolved
@stroem stroem requested a review from gbbr December 18, 2020 15:09
Copy link
Contributor

@knusbaum knusbaum left a comment

Choose a reason for hiding this comment

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

Looks good!

@knusbaum knusbaum dismissed gbbr’s stale review December 22, 2020 23:11

Issues were resolved.

@knusbaum knusbaum added this to the 1.29.0 milestone Dec 22, 2020
@knusbaum
Copy link
Contributor

I want to run unit tests on this before merging.
@stroem if you can upmerge it should run. I'm not sure what happened to cause the lack of unit tests reporting.

This was referenced Mar 15, 2021
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.

3 participants