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: http url in span tags #1350

Merged
merged 16 commits into from
Jul 4, 2022
Merged

Conversation

Hellzy
Copy link
Contributor

@Hellzy Hellzy commented Jun 21, 2022

Closes #1345
With this change http.url now holds the full request URL instead of the path alone.
This also adds config.go since the configuration for httptrace became bigger and a config struct helps with convenience and initialisation.
The url is built according to https://datadoghq.atlassian.net/wiki/spaces/APM/pages/2357395856/Span+attributes#http.url

@Hellzy Hellzy force-pushed the francois.mazeau/backend-waf-http-url branch 8 times, most recently from 3066fb0 to dce5511 Compare June 23, 2022 17:36
@gbbr gbbr changed the title [WIP] contrib: http url in span tags contrib: http url in span tags Jun 24, 2022
@Hellzy Hellzy force-pushed the francois.mazeau/backend-waf-http-url branch 8 times, most recently from 0d63f6f to 6b77c52 Compare June 24, 2022 11:57
@Hellzy Hellzy force-pushed the francois.mazeau/backend-waf-http-url branch from 6b77c52 to 2dff1e9 Compare June 24, 2022 12:00
@Hellzy Hellzy marked this pull request as ready for review June 24, 2022 13:20
@Hellzy Hellzy requested a review from a team June 24, 2022 13:20
@ajgajg1134 ajgajg1134 added this to the 1.39.0 milestone Jun 24, 2022
@Hellzy Hellzy force-pushed the francois.mazeau/backend-waf-http-url branch from 0b3a892 to 2dff1e9 Compare June 24, 2022 15:52
@Hellzy Hellzy force-pushed the francois.mazeau/backend-waf-http-url branch from 92a1a80 to 37a8418 Compare June 24, 2022 16:08
contrib/internal/httptrace/config.go Outdated Show resolved Hide resolved
contrib/internal/httptrace/config.go Outdated Show resolved Hide resolved
contrib/internal/httptrace/config.go Outdated Show resolved Hide resolved
contrib/internal/httptrace/config.go Outdated Show resolved Hide resolved
contrib/internal/httptrace/config.go Outdated Show resolved Hide resolved
contrib/internal/httptrace/config_test.go Outdated Show resolved Hide resolved
contrib/internal/httptrace/config_test.go Outdated Show resolved Hide resolved
contrib/internal/httptrace/config_test.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
@Hellzy Hellzy modified the milestones: 1.39.0, 1.40.0 Jul 1, 2022
@Hellzy Hellzy force-pushed the francois.mazeau/backend-waf-http-url branch from 196d789 to f8e755a Compare July 4, 2022 09:49
contrib/internal/httptrace/config.go Outdated Show resolved Hide resolved
contrib/internal/httptrace/config.go Show resolved Hide resolved
contrib/internal/httptrace/config.go Show resolved Hide resolved
contrib/internal/httptrace/config.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.

Very nice work @Hellzy! Thanks for your patience! 🚀

@Hellzy Hellzy merged commit abd13c6 into main Jul 4, 2022
@Hellzy Hellzy deleted the francois.mazeau/backend-waf-http-url branch July 4, 2022 13:26
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/net/http: tag full URL on the RoundTripper
4 participants