diff --git a/exporters/etw/include/opentelemetry/exporters/etw/etw_logger.h b/exporters/etw/include/opentelemetry/exporters/etw/etw_logger.h index 00653838bc..b0fc7c73ec 100644 --- a/exporters/etw/include/opentelemetry/exporters/etw/etw_logger.h +++ b/exporters/etw/include/opentelemetry/exporters/etw/etw_logger.h @@ -148,7 +148,7 @@ class Logger : public logs::Logger evt[ETW_FIELD_TIME] = utils::formatUtcTimestampMsAsISO8601(millis); } # endif - const auto &cfg = GetConfiguration(tracerProvider_); + const auto &cfg = GetConfiguration(loggerProvider_); if (cfg.enableSpanId) { evt[ETW_FIELD_SPAN_ID] = ToLowerBase16(span_id);