We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Reading the @opentelemetry/sdk-trace-base@1.7.0 docs, to customize the sampler option we should use:
@opentelemetry/sdk-trace-base@1.7.0
sampler
const { ParentBasedSampler } = require('@opentelemetry/core')
const { AlwaysOnSampler } = require('@opentelemetry/core')
const { AlwaysOffSampler } = require('@opentelemetry/core')
but all these classes are deprecated
opentelemetry-js/packages/opentelemetry-core/src/trace/sampler/ParentBasedSampler.ts
Line 32 in 40ee382
What should I use? Thks
The text was updated successfully, but these errors were encountered:
This is a case of bad documentation. You should use the samplers in sdk-trace-base.
sdk-trace-base
Sorry, something went wrong.
Thank you for reporting this! Updated the document of the sdk-trace-base at #3319.
Successfully merging a pull request may close this issue.
Reading the
@opentelemetry/sdk-trace-base@1.7.0
docs, to customize thesampler
option we should use:const { ParentBasedSampler } = require('@opentelemetry/core')
const { AlwaysOnSampler } = require('@opentelemetry/core')
const { AlwaysOffSampler } = require('@opentelemetry/core')
but all these classes are deprecated
opentelemetry-js/packages/opentelemetry-core/src/trace/sampler/ParentBasedSampler.ts
Line 32 in 40ee382
What should I use?
Thks
The text was updated successfully, but these errors were encountered: