Skip to content

Commit

Permalink
fix: update var names
Browse files Browse the repository at this point in the history
  • Loading branch information
mcstover committed Jan 10, 2024
1 parent d9293d0 commit 2af71b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/util/tracer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ const { Resource } = require('@opentelemetry/resources');
const { WinstonInstrumentation } = require('@opentelemetry/instrumentation-winston');
const { SemanticResourceAttributes } = require('@opentelemetry/semantic-conventions');

const Exporter = (process.env.EXPORTER || '').toLowerCase().startsWith('c') ? ConsoleSpanExporter : OTLPTraceExporter;
// Basic export switch to enable console or OTLP
const Exporter = (process.env.OPENTELEMETRY_EXPORTER_TYPE || '').toLowerCase().startsWith('c')
? ConsoleSpanExporter : OTLPTraceExporter;
const { ExpressInstrumentation } = require('@opentelemetry/instrumentation-express');
const { HttpInstrumentation } = require('@opentelemetry/instrumentation-http');

Expand Down

0 comments on commit 2af71b9

Please sign in to comment.