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

Change OpenCensus shim default sampling to defer to OpenTelemetry #5604

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

aabmass
Copy link
Member

@aabmass aabmass commented Jul 7, 2023

Previously, the default OpenCensus sampler would run before the shim calls the OpenTelemetry API. This causes both the OpenCensus and OpenTelemetry samplers to be evaluated, and they must both pass to be sampled.

This PR changes the default OpenCensus sampler for the shim to be Samplers.alwaysSample(). That way, users can just configure Sampling in OpenTelemetry.

@aabmass aabmass requested a review from a team July 7, 2023 03:18
@aabmass aabmass changed the title Change OpenCensus shim default sampler to defer to OpenTelemetry Change OpenCensus shim default sampling to defer to OpenTelemetry Jul 7, 2023
@jkwatson
Copy link
Contributor

jkwatson commented Jul 7, 2023

Not at all opposed to this change, but do we have specification language about this behavior at the moment?

@aabmass
Copy link
Member Author

aabmass commented Jul 7, 2023

@jkwatson
Copy link
Contributor

jkwatson commented Jul 7, 2023

@jsuereth is this worth putting into the spec for the OC shim?

@jsuereth
Copy link
Contributor

@jkwatson Yes, I think we can call it out in the specification, however I don't think that's necessary to merge this patch.

Specifically, I think the behavior in Java actually deviates from the other shims.

@aabmass
Copy link
Member Author

aabmass commented Jul 25, 2023

How can I move this forward?

@jkwatson
Copy link
Contributor

jkwatson commented Aug 2, 2023

I don't think either of our maintainers have much of any expertise in OC, so I'm going to merge this and let @jsuereth manage any fallout. ;)

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.

3 participants