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: correct resource name #588

Merged
merged 1 commit into from
Feb 7, 2020
Merged

Conversation

knusbaum
Copy link
Contributor

@knusbaum knusbaum commented Feb 7, 2020

We didn't actually need to revert #574. That was my mistake. At any rate, this will put the v1 branch back where we want it.

There was a mistake with setting the resource name for this integration.
We previously had used (*gin.Context).HandlerName to set the resource
which was wrong and returns the name of the function (e.g.
main.main.func1).

This change ensures that the resource name is set correctly, as in all
our HTTP integrations to method and path (e.g. "GET /path")

There was a mistake with setting the resource name for this integration.
We previously had used `(*gin.Context).HandlerName` to set the resource
which was wrong and returns the name of the function (e.g.
`main.main.func1`).

This change ensures that the resource name is set correctly, as in all
our HTTP integrations to method and path (e.g. "GET /path")
@knusbaum knusbaum added this to the 1.21.1 milestone Feb 7, 2020
@knusbaum knusbaum marked this pull request as ready for review February 7, 2020 15:47
@knusbaum knusbaum modified the milestones: 1.21.1, 1.22.0, 1.21.0 Feb 7, 2020
Copy link
Member

@labbati labbati left a comment

Choose a reason for hiding this comment

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

LGTM!

@knusbaum knusbaum merged commit adb0a3c into v1 Feb 7, 2020
@knusbaum knusbaum deleted the knusbaum/restore-574 branch February 7, 2020 15:56
@gbbr gbbr added this to the 1.22.0 milestone Feb 17, 2020
mingrammer pushed a commit to mingrammer/dd-trace-go that referenced this pull request Dec 22, 2020
There was a mistake with setting the resource name for this integration.
We previously had used `(*gin.Context).HandlerName` to set the resource
which was wrong and returns the name of the function (e.g.
`main.main.func1`).

This change ensures that the resource name is set correctly, as in all
our HTTP integrations to method and path (e.g. "GET /path")
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