Skip to content

Commit

Permalink
note that WithPublicEndpoint takes precedence
Browse files Browse the repository at this point in the history
  • Loading branch information
dmathieu committed Jul 7, 2022
1 parent df26bfc commit 756c3fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions instrumentation/net/http/otelhttp/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ func WithPublicEndpoint() Option {
// configuring the Handler to link the span with an incoming span context. If
// this option is not provided or returns false, then the association is a
// child association instead of a link.
// Note: WithPublicEndpoint takes precedence over WithPublicEndpointFn.
func WithPublicEndpointFn(fn func(*http.Request) bool) Option {
return optionFunc(func(c *config) {
c.PublicEndpointFn = fn
Expand Down

0 comments on commit 756c3fd

Please sign in to comment.