Component evidence

ai/IExceptionConfig.ts

ApplicationInsights-JS · shared/AppInsightsCore/src/interfaces/ai/IExceptionConfig.ts · typescript · MIT
analytics

Defines the configuration structure for including additional script information and custom logs when reporting exception telemetry.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/microsoft/ApplicationInsights-JS | License: MIT | Copyright Microsoft Corporation
// Provided via justclaw.it.com; keep this notice with the code.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

/**
 * Configuration for extra exceptions information sent with the exception telemetry.
 * @example
 * ```js
 * const appInsights = new ApplicationInsights({
      config: {
          connectionString: 'InstrumentationKey=YOUR_INSTRUMENTATION_KEY_GOES_HERE',
          expCfg: {
              inclScripts: true,
              expLog : () => {
                  return {logs: ["log info 1", "log info 2"]};
              },
              maxLogs : 100
          }
      }
  });
  appInsights.trackException({error: new Error()

... (truncated -- full source via MCP)