diff --git a/packages/opentelemetry-tracing/src/config.ts b/packages/opentelemetry-tracing/src/config.ts index afc4db73df..4e770eb5fa 100644 --- a/packages/opentelemetry-tracing/src/config.ts +++ b/packages/opentelemetry-tracing/src/config.ts @@ -26,6 +26,7 @@ import { import { ENVIRONMENT } from '@opentelemetry/core/src/utils/environment'; const env = getEnv(); +const FALLBACK_OTEL_TRACES_SAMPLER = TracesSamplerValues.AlwaysOn; /** * Default configuration. For fields with primitive values, any user-provided @@ -42,8 +43,6 @@ export const DEFAULT_CONFIG = { }, }; -const FALLBACK_OTEL_TRACES_SAMPLER = TracesSamplerValues.AlwaysOn; - /** * Based on environment, builds a sampler, complies with specification. * @param env optional, by default uses getEnv(), but allows passing a value to reuse parsed environment