Skip to content

Commit

Permalink
debug appInsigts
Browse files Browse the repository at this point in the history
  • Loading branch information
khmyznikov committed Nov 2, 2023
1 parent b9de626 commit 5ad2cf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ enum AppInsightsStatus {
var appInsightsStatus: AppInsightsStatus = AppInsightsStatus.DEFAULT;
export function setupAnalytics() {
try {
setup(process.env.APPINSIGHTSCONNECTIONSTRING)
setup()
.setDistributedTracingMode(DistributedTracingModes.AI_AND_W3C)
.setAutoDependencyCorrelation(true)
.setAutoCollectRequests(false)
Expand Down Expand Up @@ -45,6 +45,7 @@ export function trackEvent(
defaultClient == undefined ||
appInsightsStatus == AppInsightsStatus.DISABLED
) {
console.error("App insights couldn't be enabled");
return;
}

Expand Down

0 comments on commit 5ad2cf0

Please sign in to comment.