arvo-event-handler 1.1.10 → 1.1.11
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.
|
@@ -4,20 +4,10 @@ import { Tracer } from '@opentelemetry/api';
|
|
|
4
4
|
*
|
|
5
5
|
* This type defines how tracing should be configured and inherited within
|
|
6
6
|
* the execution pipeline.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```typescript
|
|
10
|
-
* const config: ExecutionOpenTelemetryConfiguration = {
|
|
11
|
-
* inheritFrom: 'event',
|
|
12
|
-
* tracer: new OpenTelemetry.Tracer('service-name')
|
|
13
|
-
* };
|
|
14
|
-
* ```
|
|
15
7
|
*/
|
|
16
8
|
export type ExecutionOpenTelemetryConfiguration = {
|
|
17
9
|
/**
|
|
18
10
|
* Specifies the context from which to inherit OpenTelemetry context.
|
|
19
|
-
*
|
|
20
|
-
* @property {('event' | 'execution')} inheritFrom
|
|
21
11
|
* - 'event': Inherits context from the event that triggered the execution
|
|
22
12
|
* - 'execution': Inherits context from the parent execution context
|
|
23
13
|
*/
|
|
@@ -25,9 +15,6 @@ export type ExecutionOpenTelemetryConfiguration = {
|
|
|
25
15
|
/**
|
|
26
16
|
* Optional OpenTelemetry tracer instance to use for creating spans.
|
|
27
17
|
* If not provided, a default tracer may be used depending on the implementation.
|
|
28
|
-
*
|
|
29
|
-
* @property {Tracer} [tracer]
|
|
30
|
-
* @see {@link https://open-telemetry.github.io/opentelemetry-js/classes/_opentelemetry_api.Tracer.html OpenTelemetry Tracer}
|
|
31
18
|
*/
|
|
32
19
|
tracer?: Tracer;
|
|
33
20
|
};
|