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/gin-gonic/gin: support globalconfig.ServiceName() #776

Merged
merged 2 commits into from
Dec 10, 2020

Conversation

marcind
Copy link
Contributor

@marcind marcind commented Nov 17, 2020

This change adds support for globalconfig.ServiceName() to the gin
trace middleware. Because this middleware does not follow the same pattern
as other http frameworks and requires a service parameter to be passed in
we use the empty string value as an indicator that the default service
name should be used.

Fixes #767

This change adds support for `globalconfig.ServiceName()` to the gin
trace middleware. Because this middleware does not follow the same pattern
as other http frameworks and requires a service parameter to be passed in
we use the empty string value as an indicator that the default service
name should be used.

Fixes DataDog#767
@knusbaum knusbaum added this to the 1.28.0 milestone Nov 23, 2020
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.

This fix looks great to me. Thank you @marcind

contrib/gin-gonic/gin/gintrace_test.go Show resolved Hide resolved
@knusbaum
Copy link
Contributor

Working on figuring out why CI is not running and/or not showing up.

@knusbaum knusbaum modified the milestone: 1.28.0 Nov 23, 2020
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.

contrib/gin-gonic/gin: support globalconfig.ServiceName()
2 participants