Skip to content

Commit

Permalink
contrib/net/http/trace.go: update the RouteParams documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Julio-Guerra committed Jan 18, 2022
1 parent a993cca commit 7ff222d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contrib/net/http/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ type ServeConfig struct {
// QueryParams specifies any query parameters that be appended to the resulting "http.url" tag.
QueryParams bool
// RouteParams specifies framework-specific route parameters (e.g. for route /user/:id coming
// in as /user/123 we'll have {"id": "123"}). This field is optional and monitored by appsec.
// in as /user/123 we'll have {"id": "123"}). This field is optional and is used for monitoring
// by AppSec. It is only taken into account when AppSec is enabled.
RouteParams map[string]string
// FinishOpts specifies any options to be used when finishing the request span.
FinishOpts []ddtrace.FinishOption
Expand Down

0 comments on commit 7ff222d

Please sign in to comment.