Skip to content

Commit

Permalink
fix: move initialization of const above first use open-telemetry#2170
Browse files Browse the repository at this point in the history
  • Loading branch information
dyladan committed Apr 30, 2021
1 parent 2afcc7c commit f466d10
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/opentelemetry-tracing/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f466d10

Please sign in to comment.