How to use the applicationinsights.DistributedTracingModes function in applicationinsights

To help you get started, we’ve selected a few applicationinsights examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NGRP / node-red-contrib-viseo / node-red-contrib-log / node-azure-appinsight.js View on Github external
const setup = (config) => {
    appInsights.setup(config.credentials.key)
        .setAutoDependencyCorrelation(config.autoDependencyCorrelation || false)
        .setAutoCollectRequests(config.autoCollectRequests || false)
        .setAutoCollectPerformance(config.autoCollectPerformance || false)
        .setAutoCollectExceptions(config.autoCollectExceptions || false)
        .setAutoCollectDependencies(config.autoCollectDependencies || false)
        .setAutoCollectConsole(config.autoCollectConsole || false, true)
        .setUseDiskRetryCaching(config.useDiskRetryCaching || false)
        .setSendLiveMetrics(config.sendLiveMetrics || false)
        .setDistributedTracingMode(config.distributedTracingTracingMode || appInsights.DistributedTracingModes.AI)
        .start();
    client = appInsights.defaultClient;
};