@ms-cloudpack/telemetry 0.6.3 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AppInsightsTelemetryClient-TE5FJJ76.js → AppInsightsTelemetryClient-VHBDVKM4.js} +12927 -22030
- package/dist/{NoOpTelemetryClient-UXSLOLXO.js → NoOpTelemetryClient-M2CYNHPI.js} +2 -2
- package/dist/{chunk-M7NO6I7R.js → chunk-6ZXUGFN2.js} +12 -19
- package/dist/chunk-NCK3Y7B7.js +12430 -0
- package/dist/index.js +4 -4
- package/lib/AppInsightsTelemetryClient.d.ts +6 -0
- package/lib/BaseTelemetryClient.d.ts +23 -0
- package/lib/NoOpTelemetryClient.d.ts +9 -0
- package/lib/PerformanceRecorder.d.ts +2 -3
- package/lib/{AppInsights/SpanEnrichingProcessor.d.ts → SpanEnrichingProcessor.d.ts} +3 -3
- package/lib/{AppInsights/convertLogLevel.d.ts → convertLogLevel.d.ts} +1 -1
- package/lib/{AppInsights/createResourceFromOptions.d.ts → createResourceFromOptions.d.ts} +1 -1
- package/lib/index.d.ts +1 -2
- package/lib/types/MetricEvent.d.ts +2 -2
- package/lib/types/PerformanceTracker.d.ts +2 -2
- package/lib/types/TelemetryClient.d.ts +1 -8
- package/package.json +5 -2
- package/dist/chunk-KAD6FC6G.js +0 -1841
- package/lib/AppInsights/AppInsightsTelemetryClient.d.ts +0 -30
- package/lib/AppInsights/createTraceProvider.d.ts +0 -8
- package/lib/NoOp/NoOpTelemetryClient.d.ts +0 -16
- package/lib/types/SpanAttributes.d.ts +0 -3
- /package/lib/{AppInsights/getComputerName.d.ts → getComputerName.d.ts} +0 -0
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { type Span, type Tracer } from '@opentelemetry/api';
|
|
2
|
-
import { PerformanceRecorder } from '../PerformanceRecorder.js';
|
|
3
|
-
import type { SpanAttributeValue } from '../types/SpanAttributes.js';
|
|
4
|
-
import type { TelemetryClient } from '../types/TelemetryClient.js';
|
|
5
|
-
import type { TelemetryOptions } from '../types/TelemetryOptions.js';
|
|
6
|
-
export declare class AppInsightsTelemetryClient implements TelemetryClient {
|
|
7
|
-
private readonly _performance;
|
|
8
|
-
private readonly _rootSpan;
|
|
9
|
-
private readonly sharedSpanAttributes;
|
|
10
|
-
private readonly _traceProvider;
|
|
11
|
-
constructor(options: TelemetryOptions);
|
|
12
|
-
get performance(): PerformanceRecorder;
|
|
13
|
-
get rootSpan(): Span;
|
|
14
|
-
/**
|
|
15
|
-
* Sets a shared attribute that will be added to all spans.
|
|
16
|
-
* @param key - key of the attribute
|
|
17
|
-
* @param value - value of the attribute
|
|
18
|
-
*/
|
|
19
|
-
setSharedSpanAttribute(key: string, value: SpanAttributeValue): void;
|
|
20
|
-
/**
|
|
21
|
-
* Flushes all telemetry and shuts down the telemetry client.
|
|
22
|
-
*/
|
|
23
|
-
shutdown(): Promise<void>;
|
|
24
|
-
/**
|
|
25
|
-
* Gets the OpenTelemetry tracer.
|
|
26
|
-
* @returns the OpenTelemetry tracer
|
|
27
|
-
*/
|
|
28
|
-
getTracer(): Tracer;
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=AppInsightsTelemetryClient.d.ts.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type AzureMonitorExporterOptions } from '@azure/monitor-opentelemetry-exporter';
|
|
2
|
-
import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node';
|
|
3
|
-
import type { Resource } from '@opentelemetry/resources';
|
|
4
|
-
export declare function createTraceProvider(config: {
|
|
5
|
-
azureMonitorExporterOptions: AzureMonitorExporterOptions;
|
|
6
|
-
resource: Resource;
|
|
7
|
-
}): NodeTracerProvider;
|
|
8
|
-
//# sourceMappingURL=createTraceProvider.d.ts.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type Span } from '@opentelemetry/api';
|
|
2
|
-
import type { TelemetryClient } from '../types/TelemetryClient.js';
|
|
3
|
-
import { PerformanceRecorder } from '../PerformanceRecorder.js';
|
|
4
|
-
/**
|
|
5
|
-
* No-op implementation of {@link TelemetryClient}.
|
|
6
|
-
* This class will be used when Telemetry is disabled.
|
|
7
|
-
*/
|
|
8
|
-
export declare class NoOpTelemetryClient implements TelemetryClient {
|
|
9
|
-
readonly rootSpan: Span;
|
|
10
|
-
readonly performance: PerformanceRecorder;
|
|
11
|
-
constructor();
|
|
12
|
-
setSharedSpanAttribute(): TelemetryClient;
|
|
13
|
-
shutdown(): Promise<void>;
|
|
14
|
-
getTracer(): import("@opentelemetry/api").Tracer;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=NoOpTelemetryClient.d.ts.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export type SpanAttributeValue = string | number | boolean | Array<null | undefined | string> | Array<null | undefined | number> | Array<null | undefined | boolean>;
|
|
2
|
-
export type SpanAttributes = Record<string, SpanAttributeValue>;
|
|
3
|
-
//# sourceMappingURL=SpanAttributes.d.ts.map
|
|
File without changes
|