Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove restriction that sampler description is immutable #4137

Merged
merged 5 commits into from
Jul 22, 2024

Conversation

yurishkuro
Copy link
Member

Fixes #2095

Changes

State that sampler description can change over time. Provide examples.

Copy link
Member

@pellared pellared left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this can be seen as a breaking change for the callers (previously it was allowing caching - now it is not) I personally see it more like a bugfix.

In Go SDK we never had indicated that callers may cache the results and I do not found any code that would rely on that. Go docs for Sampler: https://pkg.go.dev/go.opentelemetry.io/otel/sdk/trace#Sampler

Can you add a changelog entry? 😉

CHANGELOG.md Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Member

@jack-berg jack-berg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see this as a bugfix. The arguments here are convincing.

I think we should assume that there are no implementations caching this since this seems reasonable, but leave this open for a period of time which allows people to come forward and claim otherwise. Say 2-3 weeks.

@yurishkuro yurishkuro merged commit a1d20b9 into open-telemetry:main Jul 22, 2024
6 checks passed
@yurishkuro yurishkuro deleted the fix-2095 branch July 22, 2024 14:53
@carlosalberto carlosalberto mentioned this pull request Aug 5, 2024
carlosalberto pushed a commit to carlosalberto/opentelemetry-specification that referenced this pull request Oct 31, 2024
…try#4137)

Fixes open-telemetry#2095

## Changes

State that sampler description can change over time. Provide examples.

---------

Signed-off-by: Yuri Shkuro <[email protected]>
Co-authored-by: Robert Pająk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove unreasonable restriction on Sampler's description to be immutable
9 participants