From 02574b36546b557d3a028cec7798971be2dba0be Mon Sep 17 00:00:00 2001 From: Jackson Weber Date: Wed, 3 Jan 2024 09:56:18 -0800 Subject: [PATCH] Fix lint. --- .../packages/opentelemetry-sdk-node/src/sdk.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/experimental/packages/opentelemetry-sdk-node/src/sdk.ts b/experimental/packages/opentelemetry-sdk-node/src/sdk.ts index 1fe4dab3fdf..3b02933a37c 100644 --- a/experimental/packages/opentelemetry-sdk-node/src/sdk.ts +++ b/experimental/packages/opentelemetry-sdk-node/src/sdk.ts @@ -101,7 +101,11 @@ export class NodeSDK { public constructor(configuration: Partial = {}) { const env = getEnv(); const envWithoutDefaults = getEnvWithoutDefaults(); - const envExporterWithConfiguration = env.OTEL_TRACES_EXPORTER && (configuration.sampler || configuration.spanLimits || configuration.idGenerator); + const envExporterWithConfiguration = + env.OTEL_TRACES_EXPORTER && + (configuration.sampler || + configuration.spanLimits || + configuration.idGenerator); if (env.OTEL_SDK_DISABLED) { this._disabled = true; @@ -128,7 +132,11 @@ export class NodeSDK { this._autoDetectResources = configuration.autoDetectResources ?? true; // If there are configuration options to read, we need to create a new TracerProvider even if the exporter is configured in the environment - if ((configuration.traceExporter || configuration.spanProcessor) || envExporterWithConfiguration) { + if ( + configuration.traceExporter || + configuration.spanProcessor || + envExporterWithConfiguration + ) { const tracerProviderConfig: NodeTracerConfig = {}; if (configuration.sampler) {