Skip to content

Commit 329cf92

Browse files
dyladanvmarchaud
andauthored
fix: move initialization of const above first use #2170 (#2171)
Co-authored-by: Valentin Marchaud <[email protected]>
1 parent 25c205a commit 329cf92

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/opentelemetry-tracing/src/config.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import {
2626
import { ENVIRONMENT } from '@opentelemetry/core/src/utils/environment';
2727

2828
const env = getEnv();
29+
const FALLBACK_OTEL_TRACES_SAMPLER = TracesSamplerValues.AlwaysOn;
2930

3031
/**
3132
* Default configuration. For fields with primitive values, any user-provided
@@ -42,8 +43,6 @@ export const DEFAULT_CONFIG = {
4243
},
4344
};
4445

45-
const FALLBACK_OTEL_TRACES_SAMPLER = TracesSamplerValues.AlwaysOn;
46-
4746
/**
4847
* Based on environment, builds a sampler, complies with specification.
4948
* @param env optional, by default uses getEnv(), but allows passing a value to reuse parsed environment

0 commit comments

Comments
 (0)