Skip to content

How does one use a custom sampler? #1407

Closed Answered by robertlaurin
davidji99 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @davidji99 are you still stuck on this?

I know we're using the attribute writer successfully to configure custom samplers on various applications in our org.

OpenTelemetry.tracer_provider.sampler = CustomSampler.new(sampling_probability)

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@bala-mane
Comment options

Answer selected by arielvalentin
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #1396 on November 28, 2022 15:18.