Skip to content

Commit

Permalink
stackdriver: do not override sampler if not set
Browse files Browse the repository at this point in the history
  • Loading branch information
acoshift committed Jul 12, 2023
1 parent f22e98d commit 7d99585
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/stackdriver/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ func (m Trace) ServeHandler(h http.Handler) http.Handler {
return proto + "://" + r.Host + r.RequestURI
}
}
if m.StartOptions.Sampler == nil {
m.StartOptions.Sampler = trace.AlwaysSample()
}
if m.StartOptions.SpanKind == trace.SpanKindUnspecified {
m.StartOptions.SpanKind = trace.SpanKindServer
}
Expand Down

0 comments on commit 7d99585

Please sign in to comment.