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: store http.route in span tags for ASM backend WAF #1342

Merged
merged 10 commits into from Jun 16, 2022

Conversation

Hellzy
Copy link
Contributor

@Hellzy Hellzy commented Jun 15, 2022

Sumarry

For each ASM supported contrib, retrieve the http route and store in the span tags.
Because each framework may handle path parameters differently, the request path is retrieved outside of StartRequestSpan, which is oblivious to which framework is being used.

Changes

  • contrib/net/http
  • contrib/labstack/echo.v4
  • contrib/gin-gonic
  • contrib/gorilla/mux
  • contrib/go-chi

@Hellzy Hellzy added this to the 1.39.0 milestone Jun 15, 2022
@Hellzy Hellzy force-pushed the francois.mazeau/backend-waf-http-route branch from 7978e2a to f0c5286 Compare June 15, 2022 13:13
@Hellzy Hellzy marked this pull request as ready for review June 16, 2022 14:25
@Hellzy Hellzy requested a review from a team June 16, 2022 14:25
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 mostly good.

One minor thing.

contrib/gin-gonic/gin/option.go Outdated Show resolved Hide resolved
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.

LGTM

@Hellzy Hellzy merged commit f1b2983 into main Jun 16, 2022
@Hellzy Hellzy deleted the francois.mazeau/backend-waf-http-route branch June 16, 2022 15:15
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

2 participants