From 15395d16890e2a043501822df5c0db0558c13841 Mon Sep 17 00:00:00 2001 From: Zhiyuan Liang <141655842+zhiyuanliang-ms@users.noreply.github.com> Date: Wed, 4 Sep 2024 23:12:36 +0800 Subject: [PATCH] remove adding log processor when there is any config warning (#1377) --- src/shim/telemetryClient.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/shim/telemetryClient.ts b/src/shim/telemetryClient.ts index 08a0f7941..289124cda 100644 --- a/src/shim/telemetryClient.ts +++ b/src/shim/telemetryClient.ts @@ -73,8 +73,6 @@ export class TelemetryClient { // Warn if any config warnings were generated during parsing for (let i = 0; i < this._configWarnings.length; i++) { diag.warn(this._configWarnings[i]); - this._attributeLogProcessor = new AttributeLogProcessor({ ...this.context.tags, ...this.commonProperties }); - (logs.getLoggerProvider() as LoggerProvider).addLogRecordProcessor(this._attributeLogProcessor); } } catch (error) {