diff --git a/README.md b/README.md index 2a92eda8..ebdda8e8 100644 --- a/README.md +++ b/README.md @@ -91,4 +91,4 @@ distribution of [OpenTelemetry JS](https://github.com/open-telemetry/opentelemet It is licensed under the terms of the Apache Software License version 2.0. See [the license file](./LICENSE) for more details. ->ℹ️  SignalFx was acquired by Splunk in October 2019. See [Splunk SignalFx](https://www.splunk.com/en_us/investor-relations/acquisitions/signalfx.html) for more information. +>ℹ️  SignalFx was acquired by Splunk in October 2019. See [Splunk SignalFx](https://www.splunk.com/en_us/about-splunk/acquisitions/signalfx.html) for more information. diff --git a/src/tracing/index.ts b/src/tracing/index.ts index 178d62dd..3d100e7c 100644 --- a/src/tracing/index.ts +++ b/src/tracing/index.ts @@ -87,8 +87,15 @@ export function startTracing(opts: StartTracingOptions = {}): boolean { tracingContextManagerEnabled = true; } - // tracer provider + // Workaround for https://github.com/open-telemetry/opentelemetry-js/issues/3422 + const envTracesExporter = process.env.OTEL_TRACES_EXPORTER; + if (envTracesExporter !== undefined) { + process.env.OTEL_TRACES_EXPORTER = ''; + } const provider = new NodeTracerProvider(options.tracerConfig); + if (envTracesExporter !== undefined) { + process.env.OTEL_TRACES_EXPORTER = envTracesExporter; + } configureInstrumentations(options);