@ms-cloudpack/telemetry 0.10.19 → 0.11.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/index.js +27275 -25
- package/lib/FilteredBatchSpanProcessor.d.ts +12 -0
- package/lib/SpanEnrichingProcessor.d.ts +2 -1
- package/lib/index.d.ts +4 -3
- package/lib/proxies/createImprovedStartActiveSpan.d.ts +2 -2
- package/lib/proxies/createProxiedTracer.d.ts +1 -1
- package/lib/startTelemetry.d.ts +8 -0
- package/lib/types/TelemetryApi.d.ts +13 -0
- package/lib/types/TelemetryClient.d.ts +0 -14
- package/lib/types/TelemetryOptions.d.ts +0 -9
- package/package.json +1 -1
- package/dist/AppInsightsTelemetryClient-D64DKZED.js +0 -14791
- package/dist/NoOpTelemetryClient-DSXX3QKA.js +0 -13
- package/dist/chunk-AWW6HGS7.js +0 -28
- package/dist/chunk-X6DBTXTN.js +0 -12593
- package/lib/AppInsightsTelemetryClient.d.ts +0 -6
- package/lib/BaseTelemetryClient.d.ts +0 -30
- package/lib/CustomContextManager.d.ts +0 -41
- package/lib/NoOpTelemetryClient.d.ts +0 -9
- package/lib/createTelemetryClient.d.ts +0 -4
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { TelemetryOptions } from './types/TelemetryOptions.js';
|
|
2
|
-
import { BaseTelemetryClient } from './BaseTelemetryClient.js';
|
|
3
|
-
export declare class AppInsightsTelemetryClient extends BaseTelemetryClient {
|
|
4
|
-
constructor(options: TelemetryOptions);
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=AppInsightsTelemetryClient.d.ts.map
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { type ContextAPI, type Context } from '@opentelemetry/api';
|
|
2
|
-
import type { TelemetryOptions } from './types/TelemetryOptions.js';
|
|
3
|
-
import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node';
|
|
4
|
-
import type { TelemetryClient } from './types/TelemetryClient.js';
|
|
5
|
-
import { type AsyncTracer } from './proxies/createProxiedTracer.js';
|
|
6
|
-
export declare class BaseTelemetryClient implements TelemetryClient {
|
|
7
|
-
protected readonly _tracerProvider: NodeTracerProvider;
|
|
8
|
-
private _tracer;
|
|
9
|
-
private _contextManager;
|
|
10
|
-
constructor(options: TelemetryOptions);
|
|
11
|
-
/**
|
|
12
|
-
* Flushes all telemetry and shuts down the telemetry client.
|
|
13
|
-
*/
|
|
14
|
-
shutdown(): Promise<void>;
|
|
15
|
-
/**
|
|
16
|
-
* Gets the OpenTelemetry tracer.
|
|
17
|
-
* @returns the OpenTelemetry tracer
|
|
18
|
-
*/
|
|
19
|
-
get tracer(): AsyncTracer;
|
|
20
|
-
/**
|
|
21
|
-
* Gets the OpenTelemetry context.
|
|
22
|
-
*/
|
|
23
|
-
get context(): ContextAPI;
|
|
24
|
-
/**
|
|
25
|
-
* Sets the root context.
|
|
26
|
-
* @param context - the root context for the telemetry client
|
|
27
|
-
*/
|
|
28
|
-
setRootContext(context: Context | undefined): void;
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=BaseTelemetryClient.d.ts.map
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { type ContextManager, type Context } from '@opentelemetry/api';
|
|
2
|
-
/**
|
|
3
|
-
* This is a wrapper around the AsyncHooksContextManager that allows for setting a root context
|
|
4
|
-
* which is being used if no context is available.
|
|
5
|
-
*/
|
|
6
|
-
export declare class CustomContextManager implements ContextManager {
|
|
7
|
-
private _contextManager;
|
|
8
|
-
private _rootContext;
|
|
9
|
-
/**
|
|
10
|
-
* This is used to set the root context. If no root context is set, ROOT_CONTEXT is used.
|
|
11
|
-
* @param context - the root context for the telemetry client
|
|
12
|
-
*/
|
|
13
|
-
setRootContext(context: Context | undefined): void;
|
|
14
|
-
/**
|
|
15
|
-
* @returns the active context
|
|
16
|
-
*/
|
|
17
|
-
active(): Context;
|
|
18
|
-
/**
|
|
19
|
-
* Run the fn callback with object set as the current active context
|
|
20
|
-
* @param context Any object to set as the current active context
|
|
21
|
-
* @param fn A callback to be immediately run within a specific context
|
|
22
|
-
* @param thisArg optional receiver to be used for calling fn
|
|
23
|
-
* @param args optional arguments forwarded to fn
|
|
24
|
-
*/
|
|
25
|
-
with<A extends unknown[], F extends (...args: A) => ReturnType<F>>(context: Context, fn: F, thisArg?: ThisParameterType<F>, ...args: A): ReturnType<F>;
|
|
26
|
-
/**
|
|
27
|
-
* Bind an object as the current context (or a specific one)
|
|
28
|
-
* @param [context] Optionally specify the context which you want to assign
|
|
29
|
-
* @param target Any object to which a context need to be set
|
|
30
|
-
*/
|
|
31
|
-
bind<T>(context: Context, target: T): T;
|
|
32
|
-
/**
|
|
33
|
-
* Enable context management
|
|
34
|
-
*/
|
|
35
|
-
enable(): this;
|
|
36
|
-
/**
|
|
37
|
-
* Disable context management
|
|
38
|
-
*/
|
|
39
|
-
disable(): this;
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=CustomContextManager.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseTelemetryClient } from './BaseTelemetryClient.js';
|
|
2
|
-
/**
|
|
3
|
-
* No-op implementation of {@link TelemetryClient}.
|
|
4
|
-
* This class will be used when Telemetry is disabled.
|
|
5
|
-
*/
|
|
6
|
-
export declare class NoOpTelemetryClient extends BaseTelemetryClient {
|
|
7
|
-
constructor();
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=NoOpTelemetryClient.d.ts.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { TelemetryOptions } from './types/TelemetryOptions.js';
|
|
2
|
-
import type { TelemetryClient } from './types/TelemetryClient.js';
|
|
3
|
-
export declare function createTelemetryClient(options: TelemetryOptions): Promise<TelemetryClient>;
|
|
4
|
-
//# sourceMappingURL=createTelemetryClient.d.ts.map
|