Skip to content

Commit

Permalink
Constant-style naming for OTEL_ENABLED
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Belanger committed Jun 23, 2023
1 parent 2f4b5db commit 8533e57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/dd-trace/src/opentracing/span.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const {
const unfinishedRegistry = createRegistry('unfinished')
const finishedRegistry = createRegistry('finished')

const otelEnabled = !!process.env.DD_TRACE_OTEL_ENABLED
const OTEL_ENABLED = !!process.env.DD_TRACE_OTEL_ENABLED

const integrationCounters = {
span_created: {},
Expand All @@ -39,7 +39,7 @@ function getIntegrationCounter (event, integration) {

const counter = tracerMetrics.count(event, [
`integration_name:${integration.toLowerCase()}`,
`otel_enabled:${otelEnabled}`
`otel_enabled:${OTEL_ENABLED}`
])

integrationCounters[event][integration] = counter
Expand Down

0 comments on commit 8533e57

Please sign in to comment.