diff --git a/packages/opentelemetry-sdk-trace-base/src/config.ts b/packages/opentelemetry-sdk-trace-base/src/config.ts index 38c869cfa7..042427d04a 100644 --- a/packages/opentelemetry-sdk-trace-base/src/config.ts +++ b/packages/opentelemetry-sdk-trace-base/src/config.ts @@ -27,6 +27,7 @@ import { const env = getEnv(); const FALLBACK_OTEL_TRACES_SAMPLER = TracesSamplerValues.AlwaysOn; +const DEFAULT_RATIO = 1; /** * Default configuration. For fields with primitive values, any user-provided @@ -79,8 +80,6 @@ export function buildSamplerFromEnv( } } -const DEFAULT_RATIO = 1; - function getSamplerProbabilityFromEnv( env: Required ): number | undefined {