Skip to content

Commit

Permalink
remove adding log processor when there is any config warning (#1377)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyuanliang-ms authored Sep 4, 2024
1 parent 9da0e2d commit 15395d1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/shim/telemetryClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 15395d1

Please sign in to comment.