Skip to content

Commit

Permalink
suppress some logging we don't need/use (#1415)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenegriffin authored Feb 12, 2025
1 parent 35005d7 commit 04e57fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Scripts/Diag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class Diag {
private appInsights = new ApplicationInsights({
config: {
instrumentationKey: aikey(),
disableAjaxTracking: true,
disableFetchTracking: true,
/* ...Other Configuration Options... */
}
});
Expand All @@ -37,7 +39,6 @@ class Diag {
return false;
}
const doLog: boolean = (document.domain !== "localhost" && document.location.protocol !== "file:");
if (envelope.baseType === "RemoteDependencyData") return doLog;
if (envelope.baseType === "PageviewData") return doLog;
if (envelope.baseType === "PageviewPerformanceData") return doLog;

Expand Down

0 comments on commit 04e57fd

Please sign in to comment.