Skip to content

Commit

Permalink
change the Filter parameter from *http.Request to *gin.Context open-t…
Browse files Browse the repository at this point in the history
  • Loading branch information
rehanpfmr committed Sep 27, 2023
1 parent 3932144 commit 51c0001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instrumentation/github.com/gin-gonic/gin/otelgin/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type config struct {
// be traced. A Filter must return true if the request should be traced.
type Filter func(*gin.Context) bool

// SpanNameFormatter is used to set span name by gin.Context.
// SpanNameFormatter is used to set span name by http.Request.
type SpanNameFormatter func(r *http.Request) string

// Option specifies instrumentation configuration options.
Expand Down

0 comments on commit 51c0001

Please sign in to comment.