You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a known issue with the OpenTelemetry SDK builder pattern. There is no way to know if a sampler has already been set, so the last one always wins. Ideally, there was a sampler already set, it would warn to say it's being overwritten.
Unfortunately, other than documenting the behaviour, there isn't much we can do about it here as an Otel SDK decision.
## Which problem is this PR solving?
Updates the readme with details on the OpenTelemetry SDKs builder
pattern and how it can lead to options set by the distro to be
overridden.
- Closes#350
## Short description of the changes
Update README with OTel SDK builder pattern
Versions
Steps to reproduce
-> The sampler is no longer used (ShouldSample is no longer called)
Additional context
Does not happen when just adding a ConsoleExporter instead of honeycomb
Fixed by added the Sampler AFTER adding Honeycomb.
The text was updated successfully, but these errors were encountered: