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: refactor http request span tags #1286

Merged
merged 25 commits into from May 31, 2022
Merged

Conversation

Julio-Guerra
Copy link
Contributor

@Julio-Guerra Julio-Guerra commented May 11, 2022

Refactor the start and finish of http request spans into functions
shared across contribs so that the expected set of http request span
tags are properly implemented.

The new standard http.useragent is added in this PR as a first example of span tag addition spread out to every HTTP integration.

Refactor the start and finish of http request spans into functions
shared across contribs so that the expected set of http request span
tags are properly implemented.
@Julio-Guerra Julio-Guerra added this to the 1.39.0 milestone May 11, 2022
@Julio-Guerra Julio-Guerra requested a review from a team May 11, 2022 09:08
contrib/net/http/trace.go Outdated Show resolved Hide resolved
Copy link
Contributor

@katiehockman katiehockman left a comment

Choose a reason for hiding this comment

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

Overall looks like a helpful refactor 👍

contrib/emicklei/go-restful/restful.go Show resolved Hide resolved
contrib/net/http/trace.go Outdated Show resolved Hide resolved
contrib/net/http/trace.go Outdated Show resolved Hide resolved
contrib/net/http/trace.go Outdated Show resolved Hide resolved
contrib/net/http/trace.go Outdated Show resolved Hide resolved
contrib/net/http/trace.go Outdated Show resolved Hide resolved
contrib/net/http/trace.go Outdated Show resolved Hide resolved
ddtrace/ext/tags.go Outdated Show resolved Hide resolved
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.

A few more nits & thoughts.

contrib/emicklei/go-restful/restful.go Show resolved Hide resolved
contrib/gin-gonic/gin/gintrace.go Show resolved Hide resolved
contrib/go-chi/chi.v5/chi.go Outdated Show resolved Hide resolved
contrib/go-chi/chi/chi.go Outdated Show resolved Hide resolved
contrib/internal/httptrace/httptrace.go Outdated Show resolved Hide resolved
contrib/internal/httptrace/httptrace.go Outdated Show resolved Hide resolved
contrib/internal/httptrace/httptrace.go Outdated Show resolved Hide resolved
contrib/internal/httptrace/httptrace.go Show resolved Hide resolved
contrib/internal/httptrace/httptrace.go Outdated Show resolved Hide resolved
contrib/internal/httptrace/httptrace.go Outdated Show resolved Hide resolved
contrib/internal/httptrace/httptrace.go Outdated Show resolved Hide resolved
@Julio-Guerra Julio-Guerra requested a review from gbbr May 30, 2022 14:07
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

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.

None yet

5 participants