Skip to content

Commit

Permalink
fix(otel): fields mistake in tracing options (apache#2492)
Browse files Browse the repository at this point in the history
  • Loading branch information
ev1lQuark authored Nov 9, 2023
1 parent 837bbff commit d5832bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions otel/trace/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,19 @@ func WithRatio(ratio float64) Option {

func WithRatioMode() Option {
return func(opts *Options) {
opts.Otel.TraceConfig.Propagator = "ratio"
opts.Otel.TraceConfig.SampleMode = "ratio"
}
}

func WithAlwaysMode() Option {
return func(opts *Options) {
opts.Otel.TraceConfig.Propagator = "always"
opts.Otel.TraceConfig.SampleMode = "always"
}
}

func WithNeverMode() Option {
return func(opts *Options) {
opts.Otel.TraceConfig.Propagator = "never"
opts.Otel.TraceConfig.SampleMode = "never"
}
}

Expand Down

0 comments on commit d5832bf

Please sign in to comment.