Skip to content

Commit

Permalink
Fix #88
Browse files Browse the repository at this point in the history
  • Loading branch information
lramos15 committed Jan 11, 2022
1 parent 1551186 commit 4911887
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/node/telemetryReporter.ts
Expand Up @@ -16,6 +16,7 @@ import { BaseTelemetryAppender, BaseTelemetryClient } from "../common/baseTeleme
const appInsightsClientFactory = async (key: string): Promise<BaseTelemetryClient> => {
let appInsightsClient: TelemetryClient | undefined;
try {
process.env["APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL"] = "1";
const appInsights = await import("applicationinsights");
//check if another instance is already initialized
if (appInsights.defaultClient) {
Expand All @@ -30,6 +31,7 @@ const appInsightsClientFactory = async (key: string): Promise<BaseTelemetryClien
.setAutoCollectDependencies(false)
.setAutoDependencyCorrelation(false)
.setAutoCollectConsole(false)
.setAutoCollectHeartbeat(false)
.setUseDiskRetryCaching(true)
.start();
appInsightsClient = appInsights.defaultClient;
Expand Down

0 comments on commit 4911887

Please sign in to comment.