Skip to content

Commit

Permalink
cobraotel: change default to 1% sample ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
jzelinskie committed Apr 3, 2023
1 parent 3f120e7 commit 3593f31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cobraotel/cobraotel.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (b *Builder) RegisterFlags(flags *pflag.FlagSet) {
flags.String(b.prefix("service-name"), b.serviceName, "service name for trace data")
flags.String(b.prefix("trace-propagator"), "w3c", `OpenTelemetry trace propagation format ("b3", "w3c", "ottrace"). Add multiple propagators separated by comma.`)
flags.Bool(b.prefix("insecure"), false, `connect to the OpenTelemetry collector in plaintext`)
flags.Float64(b.prefix("sample-ratio"), 0.2, "ratio of traces that are sampled")
flags.Float64(b.prefix("sample-ratio"), 0.01, "ratio of traces that are sampled")

// Legacy flags! Will eventually be dropped!
flags.String("otel-jaeger-endpoint", "", "OpenTelemetry collector endpoint - the endpoint can also be set by using enviroment variables")
Expand Down

0 comments on commit 3593f31

Please sign in to comment.