1 | import { AzureMonitorOpenTelemetryOptions as DistroOptions, InstrumentationOptions as DistroInstrumentationOptions } from "@azure/monitor-opentelemetry";
|
2 | import { SeverityNumber } from "@opentelemetry/api-logs";
|
3 | import { InstrumentationConfig } from "@opentelemetry/instrumentation";
|
4 | import { OTLPExporterNodeConfigBase } from "@opentelemetry/otlp-exporter-base";
|
5 | export declare const APPLICATION_INSIGHTS_OPENTELEMETRY_VERSION = "3.5.0";
|
6 | export declare const DEFAULT_ROLE_NAME = "Web";
|
7 | export declare const AZURE_MONITOR_STATSBEAT_FEATURES = "AZURE_MONITOR_STATSBEAT_FEATURES";
|
8 |
|
9 |
|
10 |
|
11 | export interface AzureMonitorOpenTelemetryOptions extends DistroOptions {
|
12 | |
13 |
|
14 |
|
15 |
|
16 | enableAutoCollectExceptions?: boolean;
|
17 |
|
18 | otlpTraceExporterConfig?: OTLPExporterConfig;
|
19 |
|
20 | otlpMetricExporterConfig?: OTLPExporterConfig;
|
21 |
|
22 | otlpLogExporterConfig?: OTLPExporterConfig;
|
23 | |
24 |
|
25 |
|
26 |
|
27 | enableAutoCollectPerformance?: boolean;
|
28 | }
|
29 | export interface InstrumentationOptions extends DistroInstrumentationOptions {
|
30 |
|
31 | console?: InstrumentationConfig & {
|
32 | logSendingLevel?: SeverityNumber;
|
33 | };
|
34 | }
|
35 |
|
36 |
|
37 |
|
38 | export interface OTLPExporterConfig extends OTLPExporterNodeConfigBase {
|
39 |
|
40 | enabled?: boolean;
|
41 | }
|
42 | export interface InstrumentationOptionsType {
|
43 | [key: string]: {
|
44 | enabled: boolean;
|
45 | };
|
46 | }
|