Skip to content

Commit

Permalink
tracing: fixed panic because of nil sampler (thanos-io#6066)
Browse files Browse the repository at this point in the history
* fixed panic because of nil sampler

Signed-off-by: Vasiliy Rumyantsev <[email protected]>

* added CHANGELOG entry

Signed-off-by: Vasiliy Rumyantsev <[email protected]>

Signed-off-by: Vasiliy Rumyantsev <[email protected]>
  • Loading branch information
xBazilio authored and Nathaniel Graham committed Apr 17, 2023
1 parent 733d2c8 commit 4f34de7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ We use *breaking :warning:* to mark changes that are not backward compatible (re

- [#5995](https://github.com/thanos-io/thanos/pull/5995) Sidecar: Loads the TLS certificate during startup.
- [#6044](https://github.com/thanos-io/thanos/pull/6044) Receive: mark ouf of window errors as conflict, if out-of-window samples ingestion is activated
- [#6066](https://github.com/thanos-io/thanos/pull/6066) Tracing: fixed panic because of nil sampler

### Changed

Expand Down
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 4f34de7

Please sign in to comment.