Skip to content

Commit

Permalink
fixed panic because of nil sampler
Browse files Browse the repository at this point in the history
Signed-off-by: Vasiliy Rumyantsev <4119114+xBazilio@users.noreply.github.com>
  • Loading branch information
xBazilio committed Jan 23, 2023
1 parent 39a4f77 commit c391d5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/tracing/jaeger/config_yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ func getSampler(config Config) tracesdk.Sampler {
sampler = jaegerremote.New(config.ServiceName, remoteOptions...)
// Fallback always to default (rate limiting).
case SamplerTypeRateLimiting:
fallthrough
default:
// The same config options are applicable to both remote and rate-limiting samplers.
remoteOptions := getRemoteOptions(config)
Expand Down

0 comments on commit c391d5b

Please sign in to comment.