autotel 7.8.0 → 7.10.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/README.md +14 -0
- package/dist/analysis.cjs +1 -1
- package/dist/analysis.d.cts +6 -7
- package/dist/analysis.d.ts +6 -7
- package/dist/analysis.js +1 -1
- package/dist/attributes.d.cts +1 -1
- package/dist/attributes.d.ts +1 -1
- package/dist/auto.cjs +1 -1
- package/dist/auto.js +1 -1
- package/dist/business-baggage.d.cts +12 -13
- package/dist/business-baggage.d.ts +12 -13
- package/dist/{canonical-log-line-processor-Bwrt_L4c.d.ts → canonical-log-line-processor-DDGzm-wi.d.ts} +1 -1
- package/dist/{canonical-log-line-processor-C0Z_N4oL.d.cts → canonical-log-line-processor-DLeAQjgb.d.cts} +1 -1
- package/dist/channel-BobQKsZd.js +64 -0
- package/dist/channel-D0eaVqn3.cjs +81 -0
- package/dist/config.d.cts +7 -7
- package/dist/config.d.ts +7 -7
- package/dist/correlation-id.cjs +1 -1
- package/dist/correlation-id.d.cts +9 -10
- package/dist/correlation-id.d.ts +9 -10
- package/dist/correlation-id.js +1 -1
- package/dist/db.d.cts +18 -19
- package/dist/db.d.ts +18 -19
- package/dist/decorators.cjs +1 -1
- package/dist/decorators.d.cts +7 -7
- package/dist/decorators.d.ts +7 -7
- package/dist/decorators.js +1 -1
- package/dist/diagnostics.cjs +10 -70
- package/dist/diagnostics.d.cts +6 -6
- package/dist/diagnostics.d.ts +6 -6
- package/dist/diagnostics.js +1 -61
- package/dist/drain-pipeline.d.cts +4 -5
- package/dist/drain-pipeline.d.ts +4 -5
- package/dist/enrichers.d.cts +7 -8
- package/dist/enrichers.d.ts +7 -8
- package/dist/event.cjs +1 -1
- package/dist/event.d.cts +6 -6
- package/dist/event.d.ts +6 -6
- package/dist/event.js +1 -1
- package/dist/evidence.d.cts +13 -14
- package/dist/evidence.d.ts +13 -14
- package/dist/exception-fingerprint.d.cts +10 -11
- package/dist/exception-fingerprint.d.ts +10 -11
- package/dist/exporters.d.cts +2 -2
- package/dist/exporters.d.ts +2 -2
- package/dist/feature-flags.d.cts +23 -24
- package/dist/feature-flags.d.ts +23 -24
- package/dist/{filtering-span-processor-vkewzbqB.d.ts → filtering-span-processor-BDGe1myy.d.ts} +1 -1
- package/dist/{filtering-span-processor-BpDagWNa.d.cts → filtering-span-processor-BYvLMiNz.d.cts} +1 -1
- package/dist/filtering-span-processor.cjs +3 -3
- package/dist/filtering-span-processor.d.cts +1 -1
- package/dist/filtering-span-processor.d.ts +1 -1
- package/dist/filtering-span-processor.js +3 -3
- package/dist/{functional-SeRUabkE.d.ts → functional-CbcInXMJ.d.ts} +1 -1
- package/dist/{functional-u5Qwjray.cjs → functional-CjZT7Jur.cjs} +19 -21
- package/dist/{functional-CC2BFGAO.js → functional-DHn-xGtR.js} +21 -23
- package/dist/{functional-DPZTpGh6.d.cts → functional-j8Joyrwd.d.cts} +1 -1
- package/dist/functional.cjs +1 -1
- package/dist/functional.d.cts +1 -1
- package/dist/functional.d.ts +1 -1
- package/dist/functional.js +1 -1
- package/dist/http.cjs +1 -1
- package/dist/http.d.cts +6 -7
- package/dist/http.d.ts +6 -7
- package/dist/http.js +1 -1
- package/dist/{index-B9aRLp6c.d.ts → index-DAH41w0W.d.ts} +4 -4
- package/dist/{index-8bFU4kmd.d.cts → index-DVPsz3DK.d.cts} +4 -4
- package/dist/index.cjs +3 -2
- package/dist/index.d.cts +38 -38
- package/dist/index.d.ts +38 -38
- package/dist/index.js +4 -4
- package/dist/{init-COfMwKbc.d.cts → init-BtYaU5n9.d.cts} +18 -4
- package/dist/{init-CnoRlJqS.d.ts → init-DUIFqRRS.d.ts} +18 -4
- package/dist/{init-8SISAGdE.js → init-rVPOUqng.js} +171 -10
- package/dist/{init-21HWbm7_.cjs → init-zb68UvOW.cjs} +180 -6
- package/dist/instrumentation.cjs +1 -1
- package/dist/instrumentation.d.cts +4 -5
- package/dist/instrumentation.d.ts +4 -5
- package/dist/instrumentation.js +1 -1
- package/dist/{logger-S1Fgl0g3.d.cts → logger-C9UT1aZ_.d.cts} +4 -4
- package/dist/{logger-S1Fgl0g3.d.ts → logger-C9UT1aZ_.d.ts} +4 -4
- package/dist/logger.d.cts +1 -1
- package/dist/logger.d.ts +1 -1
- package/dist/messaging-adapters.d.cts +10 -11
- package/dist/messaging-adapters.d.ts +10 -11
- package/dist/messaging-testing.d.cts +19 -20
- package/dist/messaging-testing.d.ts +19 -20
- package/dist/messaging.cjs +2 -2
- package/dist/messaging.d.cts +23 -24
- package/dist/messaging.d.ts +23 -24
- package/dist/messaging.js +2 -2
- package/dist/metric-helpers.d.cts +6 -7
- package/dist/metric-helpers.d.ts +6 -7
- package/dist/metric.d.cts +7 -7
- package/dist/metric.d.ts +7 -7
- package/dist/parse-error.d.cts +3 -4
- package/dist/parse-error.d.ts +3 -4
- package/dist/policy.cjs +0 -0
- package/dist/policy.js +0 -0
- package/dist/processors.d.cts +1 -1
- package/dist/processors.d.ts +1 -1
- package/dist/{sampling-CZi7OM9u.d.ts → sampling-B_8orhSB.d.ts} +1 -1
- package/dist/{sampling-DENUjT_8.d.cts → sampling-Dud4XU2m.d.cts} +1 -1
- package/dist/sampling.cjs +1 -1
- package/dist/sampling.d.cts +1 -1
- package/dist/sampling.d.ts +1 -1
- package/dist/sampling.js +1 -1
- package/dist/security-schema.d.cts +30 -31
- package/dist/security-schema.d.ts +30 -31
- package/dist/semantic-conventions-yG0X2AsN.d.cts +31 -0
- package/dist/semantic-conventions-yG0X2AsN.d.ts +31 -0
- package/dist/semantic-conventions.d.cts +1 -1
- package/dist/semantic-conventions.d.ts +1 -1
- package/dist/semantic-helpers.cjs +1 -1
- package/dist/semantic-helpers.d.cts +10 -11
- package/dist/semantic-helpers.d.ts +10 -11
- package/dist/semantic-helpers.js +1 -1
- package/dist/slo.d.cts +12 -13
- package/dist/slo.d.ts +12 -13
- package/dist/tail-sampling-processor.cjs +1 -1
- package/dist/tail-sampling-processor.d.cts +2 -3
- package/dist/tail-sampling-processor.d.ts +2 -3
- package/dist/tail-sampling-processor.js +1 -1
- package/dist/test-span-collector.d.cts +4 -5
- package/dist/test-span-collector.d.ts +4 -5
- package/dist/testing.d.cts +18 -18
- package/dist/testing.d.ts +18 -18
- package/dist/trace-helpers.d.cts +15 -16
- package/dist/trace-helpers.d.ts +15 -16
- package/dist/tracer-provider.cjs +21 -1
- package/dist/tracer-provider.d.cts +16 -6
- package/dist/tracer-provider.d.ts +16 -6
- package/dist/tracer-provider.js +22 -3
- package/dist/validate.cjs +8 -7
- package/dist/validate.d.cts +12 -12
- package/dist/validate.d.ts +12 -12
- package/dist/validate.js +8 -7
- package/dist/validation-attributes.d.cts +14 -15
- package/dist/validation-attributes.d.ts +14 -15
- package/dist/webhook.cjs +1 -1
- package/dist/webhook.d.cts +11 -12
- package/dist/webhook.d.ts +11 -12
- package/dist/webhook.js +1 -1
- package/dist/workflow-distributed.cjs +1 -1
- package/dist/workflow-distributed.d.cts +26 -27
- package/dist/workflow-distributed.d.ts +26 -27
- package/dist/workflow-distributed.js +1 -1
- package/dist/workflow.cjs +1 -1
- package/dist/workflow.d.cts +11 -12
- package/dist/workflow.d.ts +11 -12
- package/dist/workflow.js +1 -1
- package/dist/yaml-config.cjs +1 -1
- package/dist/yaml-config.d.cts +9 -10
- package/dist/yaml-config.d.ts +9 -10
- package/dist/yaml-config.js +1 -1
- package/package.json +15 -21
- package/dist/semantic-conventions-FhSxv-bK.d.cts +0 -31
- package/dist/semantic-conventions-FhSxv-bK.d.ts +0 -31
|
@@ -23,67 +23,67 @@ import { SafeBaggageSchema } from "./business-baggage.js";
|
|
|
23
23
|
* console.log(`Processing ${workflowName} step ${stepIndex}`);
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
|
-
declare const WorkflowBaggage: SafeBaggageSchema<{
|
|
26
|
+
export declare const WorkflowBaggage: SafeBaggageSchema<{
|
|
27
27
|
/** Unique identifier for the workflow instance */
|
|
28
28
|
readonly workflowId: {
|
|
29
|
-
readonly type:
|
|
29
|
+
readonly type: 'string';
|
|
30
30
|
readonly maxLength: 128;
|
|
31
31
|
readonly required: true;
|
|
32
32
|
};
|
|
33
33
|
/** Name/type of the workflow (e.g., "OrderFulfillment") */
|
|
34
34
|
readonly workflowName: {
|
|
35
|
-
readonly type:
|
|
35
|
+
readonly type: 'string';
|
|
36
36
|
readonly maxLength: 64;
|
|
37
37
|
readonly required: true;
|
|
38
38
|
};
|
|
39
39
|
/** Version of the workflow definition */
|
|
40
40
|
readonly workflowVersion: {
|
|
41
|
-
readonly type:
|
|
41
|
+
readonly type: 'string';
|
|
42
42
|
readonly maxLength: 32;
|
|
43
43
|
};
|
|
44
44
|
/** Current step name */
|
|
45
45
|
readonly stepName: {
|
|
46
|
-
readonly type:
|
|
46
|
+
readonly type: 'string';
|
|
47
47
|
readonly maxLength: 64;
|
|
48
48
|
};
|
|
49
49
|
/** Current step index (0-based) */
|
|
50
50
|
readonly stepIndex: {
|
|
51
|
-
readonly type:
|
|
51
|
+
readonly type: 'number';
|
|
52
52
|
};
|
|
53
53
|
/** Total number of steps (if known) */
|
|
54
54
|
readonly totalSteps: {
|
|
55
|
-
readonly type:
|
|
55
|
+
readonly type: 'number';
|
|
56
56
|
};
|
|
57
57
|
/** Parent workflow ID (for sub-workflows) */
|
|
58
58
|
readonly parentWorkflowId: {
|
|
59
|
-
readonly type:
|
|
59
|
+
readonly type: 'string';
|
|
60
60
|
readonly maxLength: 128;
|
|
61
61
|
};
|
|
62
62
|
/** Correlation ID for external systems */
|
|
63
63
|
readonly correlationId: {
|
|
64
|
-
readonly type:
|
|
64
|
+
readonly type: 'string';
|
|
65
65
|
readonly maxLength: 128;
|
|
66
66
|
};
|
|
67
67
|
/** Workflow priority */
|
|
68
68
|
readonly priority: {
|
|
69
|
-
readonly type:
|
|
70
|
-
readonly values: readonly [
|
|
69
|
+
readonly type: 'enum';
|
|
70
|
+
readonly values: readonly ['low', 'normal', 'high', 'critical'];
|
|
71
71
|
};
|
|
72
72
|
/** Initiating user/system */
|
|
73
73
|
readonly initiatedBy: {
|
|
74
|
-
readonly type:
|
|
74
|
+
readonly type: 'string';
|
|
75
75
|
readonly maxLength: 64;
|
|
76
76
|
};
|
|
77
77
|
/** Workflow start timestamp (ISO) */
|
|
78
78
|
readonly startedAt: {
|
|
79
|
-
readonly type:
|
|
79
|
+
readonly type: 'string';
|
|
80
80
|
readonly maxLength: 30;
|
|
81
81
|
};
|
|
82
82
|
}>;
|
|
83
83
|
/**
|
|
84
84
|
* Type for workflow baggage values
|
|
85
85
|
*/
|
|
86
|
-
type WorkflowBaggageValues = {
|
|
86
|
+
export type WorkflowBaggageValues = {
|
|
87
87
|
workflowId: string;
|
|
88
88
|
workflowName: string;
|
|
89
89
|
workflowVersion?: string;
|
|
@@ -99,7 +99,7 @@ type WorkflowBaggageValues = {
|
|
|
99
99
|
/**
|
|
100
100
|
* Configuration for distributed workflow tracing
|
|
101
101
|
*/
|
|
102
|
-
interface DistributedWorkflowConfig<TResult = unknown> {
|
|
102
|
+
export interface DistributedWorkflowConfig<TResult = unknown> {
|
|
103
103
|
/** Workflow name/type (e.g., "OrderFulfillment", "UserOnboarding") */
|
|
104
104
|
name: string;
|
|
105
105
|
/**
|
|
@@ -143,7 +143,7 @@ interface DistributedWorkflowConfig<TResult = unknown> {
|
|
|
143
143
|
/**
|
|
144
144
|
* Configuration for distributed workflow step
|
|
145
145
|
*/
|
|
146
|
-
interface DistributedStepConfig<TResult = unknown> {
|
|
146
|
+
export interface DistributedStepConfig<TResult = unknown> {
|
|
147
147
|
/** Step name (e.g., "ReserveInventory", "ChargePayment") */
|
|
148
148
|
name: string;
|
|
149
149
|
/**
|
|
@@ -173,7 +173,7 @@ interface DistributedStepConfig<TResult = unknown> {
|
|
|
173
173
|
/**
|
|
174
174
|
* Extended context for distributed workflow root
|
|
175
175
|
*/
|
|
176
|
-
interface DistributedWorkflowContext extends TraceContext {
|
|
176
|
+
export interface DistributedWorkflowContext extends TraceContext {
|
|
177
177
|
/** The workflow ID */
|
|
178
178
|
workflowId: string;
|
|
179
179
|
/** The workflow name */
|
|
@@ -192,7 +192,7 @@ interface DistributedWorkflowContext extends TraceContext {
|
|
|
192
192
|
/**
|
|
193
193
|
* Extended context for distributed workflow step
|
|
194
194
|
*/
|
|
195
|
-
interface DistributedStepContext extends TraceContext {
|
|
195
|
+
export interface DistributedStepContext extends TraceContext {
|
|
196
196
|
/** The workflow ID (from baggage) */
|
|
197
197
|
workflowId: string | null;
|
|
198
198
|
/** The workflow name (from baggage) */
|
|
@@ -240,7 +240,7 @@ interface DistributedStepContext extends TraceContext {
|
|
|
240
240
|
* });
|
|
241
241
|
* ```
|
|
242
242
|
*/
|
|
243
|
-
declare function traceDistributedWorkflow<TResult = unknown>(config: DistributedWorkflowConfig<TResult>): <TArgs extends unknown[], TReturn extends TResult>(fnFactory: (ctx: DistributedWorkflowContext) => (...args: TArgs) => Promise<TReturn>) => ((...args: TArgs) => Promise<TReturn>);
|
|
243
|
+
export declare function traceDistributedWorkflow<TResult = unknown>(config: DistributedWorkflowConfig<TResult>): <TArgs extends unknown[], TReturn extends TResult>(fnFactory: (ctx: DistributedWorkflowContext) => (...args: TArgs) => Promise<TReturn>) => ((...args: TArgs) => Promise<TReturn>);
|
|
244
244
|
/**
|
|
245
245
|
* Create a traced distributed workflow step
|
|
246
246
|
*
|
|
@@ -280,7 +280,7 @@ declare function traceDistributedWorkflow<TResult = unknown>(config: Distributed
|
|
|
280
280
|
* });
|
|
281
281
|
* ```
|
|
282
282
|
*/
|
|
283
|
-
declare function traceDistributedStep<TResult = unknown>(config: DistributedStepConfig<TResult>): <TArgs extends unknown[], TReturn extends TResult>(fnFactory: (ctx: DistributedStepContext) => (...args: TArgs) => Promise<TReturn>) => ((...args: TArgs) => Promise<TReturn>);
|
|
283
|
+
export declare function traceDistributedStep<TResult = unknown>(config: DistributedStepConfig<TResult>): <TArgs extends unknown[], TReturn extends TResult>(fnFactory: (ctx: DistributedStepContext) => (...args: TArgs) => Promise<TReturn>) => ((...args: TArgs) => Promise<TReturn>);
|
|
284
284
|
/**
|
|
285
285
|
* Generate a unique workflow ID
|
|
286
286
|
*
|
|
@@ -292,21 +292,21 @@ declare function traceDistributedStep<TResult = unknown>(config: DistributedStep
|
|
|
292
292
|
* const workflowId = generateWorkflowId('order'); // "order-abc123def456"
|
|
293
293
|
* ```
|
|
294
294
|
*/
|
|
295
|
-
declare function generateWorkflowId(prefix?: string): string;
|
|
295
|
+
export declare function generateWorkflowId(prefix?: string): string;
|
|
296
296
|
/**
|
|
297
297
|
* Check if the current context is part of a distributed workflow
|
|
298
298
|
*
|
|
299
299
|
* @param ctx - The trace context
|
|
300
300
|
* @returns True if workflow baggage is present
|
|
301
301
|
*/
|
|
302
|
-
declare function isInDistributedWorkflow(ctx: TraceContext): boolean;
|
|
302
|
+
export declare function isInDistributedWorkflow(ctx: TraceContext): boolean;
|
|
303
303
|
/**
|
|
304
304
|
* Get workflow progress information
|
|
305
305
|
*
|
|
306
306
|
* @param ctx - The trace context
|
|
307
307
|
* @returns Progress info or null if not in a workflow
|
|
308
308
|
*/
|
|
309
|
-
declare function getWorkflowProgress(ctx: TraceContext): {
|
|
309
|
+
export declare function getWorkflowProgress(ctx: TraceContext): {
|
|
310
310
|
workflowId: string;
|
|
311
311
|
workflowName: string;
|
|
312
312
|
currentStep: string | null;
|
|
@@ -333,13 +333,12 @@ declare function getWorkflowProgress(ctx: TraceContext): {
|
|
|
333
333
|
* await fetch('/api/inventory', { headers });
|
|
334
334
|
* ```
|
|
335
335
|
*/
|
|
336
|
-
declare function createWorkflowHeaders(values: Partial<WorkflowBaggageValues>): Record<string, string>;
|
|
336
|
+
export declare function createWorkflowHeaders(values: Partial<WorkflowBaggageValues>): Record<string, string>;
|
|
337
337
|
/**
|
|
338
338
|
* Parse workflow context from baggage header
|
|
339
339
|
*
|
|
340
340
|
* @param baggageHeader - The baggage header value
|
|
341
341
|
* @returns Parsed workflow values or null
|
|
342
342
|
*/
|
|
343
|
-
declare function parseWorkflowFromBaggage(baggageHeader: string): Partial<WorkflowBaggageValues> | null;
|
|
344
|
-
//#endregion
|
|
345
|
-
export { DistributedStepConfig, DistributedStepContext, DistributedWorkflowConfig, DistributedWorkflowContext, WorkflowBaggage, WorkflowBaggageValues, createWorkflowHeaders, generateWorkflowId, getWorkflowProgress, isInDistributedWorkflow, parseWorkflowFromBaggage, traceDistributedStep, traceDistributedWorkflow };
|
|
343
|
+
export declare function parseWorkflowFromBaggage(baggageHeader: string): Partial<WorkflowBaggageValues> | null;
|
|
344
|
+
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as isFunction, x as toError } from "./values-xBtdXtjA.js";
|
|
2
|
-
import { l as withTracing } from "./functional-
|
|
2
|
+
import { l as withTracing } from "./functional-DHn-xGtR.js";
|
|
3
3
|
import { t as emitCorrelatedEvent } from "./correlated-events-BfpH5uS-.js";
|
|
4
4
|
import { createSafeBaggageSchema } from "./business-baggage.js";
|
|
5
5
|
import { SpanKind, context, propagation } from "@opentelemetry/api";
|
package/dist/workflow.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_rolldown_runtime = require('./rolldown-runtime-C24Yb2bl.cjs');
|
|
3
3
|
const require_values = require('./values-AxGpgYBA.cjs');
|
|
4
|
-
const require_functional = require('./functional-
|
|
4
|
+
const require_functional = require('./functional-CjZT7Jur.cjs');
|
|
5
5
|
const require_trace_helpers = require('./trace-helpers.cjs');
|
|
6
6
|
const require_correlated_events = require('./correlated-events-DE_4A3oD.cjs');
|
|
7
7
|
const require_trace_factory_validation = require('./trace-factory-validation-CHU1WcjK.cjs');
|
package/dist/workflow.d.cts
CHANGED
|
@@ -4,15 +4,15 @@ import { Attributes, SpanContext } from "@opentelemetry/api";
|
|
|
4
4
|
/**
|
|
5
5
|
* Workflow status
|
|
6
6
|
*/
|
|
7
|
-
type WorkflowStatus = 'pending' | 'running' | 'completed' | 'failed' | 'compensating' | 'compensated' | 'compensation_failed';
|
|
7
|
+
export type WorkflowStatus = 'pending' | 'running' | 'completed' | 'failed' | 'compensating' | 'compensated' | 'compensation_failed';
|
|
8
8
|
/**
|
|
9
9
|
* Step status
|
|
10
10
|
*/
|
|
11
|
-
type StepStatus = 'pending' | 'running' | 'completed' | 'failed' | 'skipped' | 'compensated';
|
|
11
|
+
export type StepStatus = 'pending' | 'running' | 'completed' | 'failed' | 'skipped' | 'compensated';
|
|
12
12
|
/**
|
|
13
13
|
* Configuration for workflow tracing
|
|
14
14
|
*/
|
|
15
|
-
interface WorkflowConfig<TArgs extends unknown[] = unknown[]> {
|
|
15
|
+
export interface WorkflowConfig<TArgs extends unknown[] = unknown[]> {
|
|
16
16
|
/** Workflow name (e.g., 'OrderFulfillment', 'UserOnboarding') */
|
|
17
17
|
name: string;
|
|
18
18
|
/**
|
|
@@ -34,7 +34,7 @@ interface WorkflowConfig<TArgs extends unknown[] = unknown[]> {
|
|
|
34
34
|
/**
|
|
35
35
|
* Configuration for workflow step tracing
|
|
36
36
|
*/
|
|
37
|
-
interface StepConfig {
|
|
37
|
+
export interface StepConfig {
|
|
38
38
|
/** Step name */
|
|
39
39
|
name: string;
|
|
40
40
|
/** Optional step description */
|
|
@@ -69,7 +69,7 @@ interface StepConfig {
|
|
|
69
69
|
/**
|
|
70
70
|
* Extended trace context for workflows
|
|
71
71
|
*/
|
|
72
|
-
interface WorkflowContext extends TraceContext {
|
|
72
|
+
export interface WorkflowContext extends TraceContext {
|
|
73
73
|
/** Get the workflow ID */
|
|
74
74
|
getWorkflowId(): string;
|
|
75
75
|
/** Get workflow name */
|
|
@@ -94,7 +94,7 @@ interface WorkflowContext extends TraceContext {
|
|
|
94
94
|
/**
|
|
95
95
|
* Extended trace context for workflow steps
|
|
96
96
|
*/
|
|
97
|
-
interface StepContext extends TraceContext {
|
|
97
|
+
export interface StepContext extends TraceContext {
|
|
98
98
|
/** Get step name */
|
|
99
99
|
getStepName(): string;
|
|
100
100
|
/** Get step index */
|
|
@@ -106,7 +106,7 @@ interface StepContext extends TraceContext {
|
|
|
106
106
|
/** Get workflow context */
|
|
107
107
|
getWorkflowContext(): WorkflowContext | null;
|
|
108
108
|
}
|
|
109
|
-
declare function traceWorkflow<TConfigArgs extends unknown[] = unknown[]>(config: WorkflowConfig<TConfigArgs>): <TArgs extends TConfigArgs, TReturn>(fnFactory: (ctx: WorkflowContext) => (...args: TArgs) => Promise<TReturn>) => ((...args: TArgs) => Promise<TReturn>);
|
|
109
|
+
export declare function traceWorkflow<TConfigArgs extends unknown[] = unknown[]>(config: WorkflowConfig<TConfigArgs>): <TArgs extends TConfigArgs, TReturn>(fnFactory: (ctx: WorkflowContext) => (...args: TArgs) => Promise<TReturn>) => ((...args: TArgs) => Promise<TReturn>);
|
|
110
110
|
/**
|
|
111
111
|
* Create a traced workflow step
|
|
112
112
|
*
|
|
@@ -130,20 +130,19 @@ declare function traceWorkflow<TConfigArgs extends unknown[] = unknown[]>(config
|
|
|
130
130
|
* ```
|
|
131
131
|
*/
|
|
132
132
|
type StepHandler<TArgs extends unknown[], TReturn> = (...args: TArgs) => TReturn | Promise<TReturn>;
|
|
133
|
-
declare function traceStep(config: StepConfig): <TArgs extends unknown[], TReturn>(handler: StepHandler<TArgs, TReturn>) => StepHandler<TArgs, TReturn>;
|
|
133
|
+
export declare function traceStep(config: StepConfig): <TArgs extends unknown[], TReturn>(handler: StepHandler<TArgs, TReturn>) => StepHandler<TArgs, TReturn>;
|
|
134
134
|
/**
|
|
135
135
|
* Get current workflow context (if inside a workflow)
|
|
136
136
|
*
|
|
137
137
|
* Uses AsyncLocalStorage to ensure async-safety when multiple
|
|
138
138
|
* workflows are running concurrently.
|
|
139
139
|
*/
|
|
140
|
-
declare function getCurrentWorkflowContext(): WorkflowContext | null;
|
|
140
|
+
export declare function getCurrentWorkflowContext(): WorkflowContext | null;
|
|
141
141
|
/**
|
|
142
142
|
* Check if currently executing inside a workflow
|
|
143
143
|
*
|
|
144
144
|
* Uses AsyncLocalStorage to ensure async-safety when multiple
|
|
145
145
|
* workflows are running concurrently.
|
|
146
146
|
*/
|
|
147
|
-
declare function isInWorkflow(): boolean;
|
|
148
|
-
//#endregion
|
|
149
|
-
export { StepConfig, StepContext, StepStatus, WorkflowConfig, WorkflowContext, WorkflowStatus, getCurrentWorkflowContext, isInWorkflow, traceStep, traceWorkflow };
|
|
147
|
+
export declare function isInWorkflow(): boolean;
|
|
148
|
+
//#endregion
|
package/dist/workflow.d.ts
CHANGED
|
@@ -4,15 +4,15 @@ import { Attributes, SpanContext } from "@opentelemetry/api";
|
|
|
4
4
|
/**
|
|
5
5
|
* Workflow status
|
|
6
6
|
*/
|
|
7
|
-
type WorkflowStatus = 'pending' | 'running' | 'completed' | 'failed' | 'compensating' | 'compensated' | 'compensation_failed';
|
|
7
|
+
export type WorkflowStatus = 'pending' | 'running' | 'completed' | 'failed' | 'compensating' | 'compensated' | 'compensation_failed';
|
|
8
8
|
/**
|
|
9
9
|
* Step status
|
|
10
10
|
*/
|
|
11
|
-
type StepStatus = 'pending' | 'running' | 'completed' | 'failed' | 'skipped' | 'compensated';
|
|
11
|
+
export type StepStatus = 'pending' | 'running' | 'completed' | 'failed' | 'skipped' | 'compensated';
|
|
12
12
|
/**
|
|
13
13
|
* Configuration for workflow tracing
|
|
14
14
|
*/
|
|
15
|
-
interface WorkflowConfig<TArgs extends unknown[] = unknown[]> {
|
|
15
|
+
export interface WorkflowConfig<TArgs extends unknown[] = unknown[]> {
|
|
16
16
|
/** Workflow name (e.g., 'OrderFulfillment', 'UserOnboarding') */
|
|
17
17
|
name: string;
|
|
18
18
|
/**
|
|
@@ -34,7 +34,7 @@ interface WorkflowConfig<TArgs extends unknown[] = unknown[]> {
|
|
|
34
34
|
/**
|
|
35
35
|
* Configuration for workflow step tracing
|
|
36
36
|
*/
|
|
37
|
-
interface StepConfig {
|
|
37
|
+
export interface StepConfig {
|
|
38
38
|
/** Step name */
|
|
39
39
|
name: string;
|
|
40
40
|
/** Optional step description */
|
|
@@ -69,7 +69,7 @@ interface StepConfig {
|
|
|
69
69
|
/**
|
|
70
70
|
* Extended trace context for workflows
|
|
71
71
|
*/
|
|
72
|
-
interface WorkflowContext extends TraceContext {
|
|
72
|
+
export interface WorkflowContext extends TraceContext {
|
|
73
73
|
/** Get the workflow ID */
|
|
74
74
|
getWorkflowId(): string;
|
|
75
75
|
/** Get workflow name */
|
|
@@ -94,7 +94,7 @@ interface WorkflowContext extends TraceContext {
|
|
|
94
94
|
/**
|
|
95
95
|
* Extended trace context for workflow steps
|
|
96
96
|
*/
|
|
97
|
-
interface StepContext extends TraceContext {
|
|
97
|
+
export interface StepContext extends TraceContext {
|
|
98
98
|
/** Get step name */
|
|
99
99
|
getStepName(): string;
|
|
100
100
|
/** Get step index */
|
|
@@ -106,7 +106,7 @@ interface StepContext extends TraceContext {
|
|
|
106
106
|
/** Get workflow context */
|
|
107
107
|
getWorkflowContext(): WorkflowContext | null;
|
|
108
108
|
}
|
|
109
|
-
declare function traceWorkflow<TConfigArgs extends unknown[] = unknown[]>(config: WorkflowConfig<TConfigArgs>): <TArgs extends TConfigArgs, TReturn>(fnFactory: (ctx: WorkflowContext) => (...args: TArgs) => Promise<TReturn>) => ((...args: TArgs) => Promise<TReturn>);
|
|
109
|
+
export declare function traceWorkflow<TConfigArgs extends unknown[] = unknown[]>(config: WorkflowConfig<TConfigArgs>): <TArgs extends TConfigArgs, TReturn>(fnFactory: (ctx: WorkflowContext) => (...args: TArgs) => Promise<TReturn>) => ((...args: TArgs) => Promise<TReturn>);
|
|
110
110
|
/**
|
|
111
111
|
* Create a traced workflow step
|
|
112
112
|
*
|
|
@@ -130,20 +130,19 @@ declare function traceWorkflow<TConfigArgs extends unknown[] = unknown[]>(config
|
|
|
130
130
|
* ```
|
|
131
131
|
*/
|
|
132
132
|
type StepHandler<TArgs extends unknown[], TReturn> = (...args: TArgs) => TReturn | Promise<TReturn>;
|
|
133
|
-
declare function traceStep(config: StepConfig): <TArgs extends unknown[], TReturn>(handler: StepHandler<TArgs, TReturn>) => StepHandler<TArgs, TReturn>;
|
|
133
|
+
export declare function traceStep(config: StepConfig): <TArgs extends unknown[], TReturn>(handler: StepHandler<TArgs, TReturn>) => StepHandler<TArgs, TReturn>;
|
|
134
134
|
/**
|
|
135
135
|
* Get current workflow context (if inside a workflow)
|
|
136
136
|
*
|
|
137
137
|
* Uses AsyncLocalStorage to ensure async-safety when multiple
|
|
138
138
|
* workflows are running concurrently.
|
|
139
139
|
*/
|
|
140
|
-
declare function getCurrentWorkflowContext(): WorkflowContext | null;
|
|
140
|
+
export declare function getCurrentWorkflowContext(): WorkflowContext | null;
|
|
141
141
|
/**
|
|
142
142
|
* Check if currently executing inside a workflow
|
|
143
143
|
*
|
|
144
144
|
* Uses AsyncLocalStorage to ensure async-safety when multiple
|
|
145
145
|
* workflows are running concurrently.
|
|
146
146
|
*/
|
|
147
|
-
declare function isInWorkflow(): boolean;
|
|
148
|
-
//#endregion
|
|
149
|
-
export { StepConfig, StepContext, StepStatus, WorkflowConfig, WorkflowContext, WorkflowStatus, getCurrentWorkflowContext, isInWorkflow, traceStep, traceWorkflow };
|
|
147
|
+
export declare function isInWorkflow(): boolean;
|
|
148
|
+
//#endregion
|
package/dist/workflow.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as toAttributeValue, g as nonEmptyString, h as isFunction, l as asString, s as asRecord, x as toError } from "./values-xBtdXtjA.js";
|
|
2
|
-
import { l as withTracing } from "./functional-
|
|
2
|
+
import { l as withTracing } from "./functional-DHn-xGtR.js";
|
|
3
3
|
import { getActiveSpan } from "./trace-helpers.js";
|
|
4
4
|
import { t as emitCorrelatedEvent } from "./correlated-events-BfpH5uS-.js";
|
|
5
5
|
import { t as assertTraceFactory } from "./trace-factory-validation-BjVAinz6.js";
|
package/dist/yaml-config.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_init = require('./init-
|
|
2
|
+
const require_init = require('./init-zb68UvOW.cjs');
|
|
3
3
|
|
|
4
4
|
exports.hasYamlConfig = require_init.hasYamlConfig;
|
|
5
5
|
exports.loadYamlConfig = require_init.loadYamlConfig;
|
package/dist/yaml-config.d.cts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { g as SamplingPreset } from "./sampling-
|
|
2
|
-
import { a as AutotelConfig, o as OtlpSignal } from "./init-
|
|
1
|
+
import { g as SamplingPreset } from "./sampling-Dud4XU2m.cjs";
|
|
2
|
+
import { a as AutotelConfig, o as OtlpSignal } from "./init-BtYaU5n9.cjs";
|
|
3
3
|
//#region src/yaml-config.d.ts
|
|
4
4
|
/** A value as a YAML document carries it: scalars, sequences, mappings. */
|
|
5
|
-
type YamlValue = string | number | boolean | null | YamlValue[] | YamlMapping;
|
|
5
|
+
export type YamlValue = string | number | boolean | null | YamlValue[] | YamlMapping;
|
|
6
6
|
/** A YAML mapping - keys the reader has not looked at yet. */
|
|
7
|
-
interface YamlMapping {
|
|
7
|
+
export interface YamlMapping {
|
|
8
8
|
[key: string]: YamlValue;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* YAML config structure
|
|
12
12
|
* Maps to AutotelConfig with user-friendly naming
|
|
13
13
|
*/
|
|
14
|
-
interface YamlConfig {
|
|
14
|
+
export interface YamlConfig {
|
|
15
15
|
service?: {
|
|
16
16
|
name?: string;
|
|
17
17
|
version?: string;
|
|
@@ -59,7 +59,7 @@ interface YamlConfig {
|
|
|
59
59
|
* init({ ...yamlConfig, debug: true });
|
|
60
60
|
* }
|
|
61
61
|
*/
|
|
62
|
-
declare function loadYamlConfig(): Partial<AutotelConfig> | null;
|
|
62
|
+
export declare function loadYamlConfig(): Partial<AutotelConfig> | null;
|
|
63
63
|
/**
|
|
64
64
|
* Load YAML config from a specific file path
|
|
65
65
|
*
|
|
@@ -76,12 +76,11 @@ declare function loadYamlConfig(): Partial<AutotelConfig> | null;
|
|
|
76
76
|
* const config = loadYamlConfigFromFile('./config/otel.yaml');
|
|
77
77
|
* init({ ...config, debug: true });
|
|
78
78
|
*/
|
|
79
|
-
declare function loadYamlConfigFromFile(filePath: string): Partial<AutotelConfig>;
|
|
79
|
+
export declare function loadYamlConfigFromFile(filePath: string): Partial<AutotelConfig>;
|
|
80
80
|
/**
|
|
81
81
|
* Check if a YAML config file exists (without loading it)
|
|
82
82
|
*
|
|
83
83
|
* @returns true if a config file would be found by loadYamlConfig()
|
|
84
84
|
*/
|
|
85
|
-
declare function hasYamlConfig(): boolean;
|
|
86
|
-
//#endregion
|
|
87
|
-
export { YamlConfig, YamlMapping, YamlValue, hasYamlConfig, loadYamlConfig, loadYamlConfigFromFile };
|
|
85
|
+
export declare function hasYamlConfig(): boolean;
|
|
86
|
+
//#endregion
|
package/dist/yaml-config.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { g as SamplingPreset } from "./sampling-
|
|
2
|
-
import { a as AutotelConfig, o as OtlpSignal } from "./init-
|
|
1
|
+
import { g as SamplingPreset } from "./sampling-B_8orhSB.js";
|
|
2
|
+
import { a as AutotelConfig, o as OtlpSignal } from "./init-DUIFqRRS.js";
|
|
3
3
|
//#region src/yaml-config.d.ts
|
|
4
4
|
/** A value as a YAML document carries it: scalars, sequences, mappings. */
|
|
5
|
-
type YamlValue = string | number | boolean | null | YamlValue[] | YamlMapping;
|
|
5
|
+
export type YamlValue = string | number | boolean | null | YamlValue[] | YamlMapping;
|
|
6
6
|
/** A YAML mapping - keys the reader has not looked at yet. */
|
|
7
|
-
interface YamlMapping {
|
|
7
|
+
export interface YamlMapping {
|
|
8
8
|
[key: string]: YamlValue;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* YAML config structure
|
|
12
12
|
* Maps to AutotelConfig with user-friendly naming
|
|
13
13
|
*/
|
|
14
|
-
interface YamlConfig {
|
|
14
|
+
export interface YamlConfig {
|
|
15
15
|
service?: {
|
|
16
16
|
name?: string;
|
|
17
17
|
version?: string;
|
|
@@ -59,7 +59,7 @@ interface YamlConfig {
|
|
|
59
59
|
* init({ ...yamlConfig, debug: true });
|
|
60
60
|
* }
|
|
61
61
|
*/
|
|
62
|
-
declare function loadYamlConfig(): Partial<AutotelConfig> | null;
|
|
62
|
+
export declare function loadYamlConfig(): Partial<AutotelConfig> | null;
|
|
63
63
|
/**
|
|
64
64
|
* Load YAML config from a specific file path
|
|
65
65
|
*
|
|
@@ -76,12 +76,11 @@ declare function loadYamlConfig(): Partial<AutotelConfig> | null;
|
|
|
76
76
|
* const config = loadYamlConfigFromFile('./config/otel.yaml');
|
|
77
77
|
* init({ ...config, debug: true });
|
|
78
78
|
*/
|
|
79
|
-
declare function loadYamlConfigFromFile(filePath: string): Partial<AutotelConfig>;
|
|
79
|
+
export declare function loadYamlConfigFromFile(filePath: string): Partial<AutotelConfig>;
|
|
80
80
|
/**
|
|
81
81
|
* Check if a YAML config file exists (without loading it)
|
|
82
82
|
*
|
|
83
83
|
* @returns true if a config file would be found by loadYamlConfig()
|
|
84
84
|
*/
|
|
85
|
-
declare function hasYamlConfig(): boolean;
|
|
86
|
-
//#endregion
|
|
87
|
-
export { YamlConfig, YamlMapping, YamlValue, hasYamlConfig, loadYamlConfig, loadYamlConfigFromFile };
|
|
85
|
+
export declare function hasYamlConfig(): boolean;
|
|
86
|
+
//#endregion
|
package/dist/yaml-config.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as loadYamlConfig, g as hasYamlConfig, v as loadYamlConfigFromFile } from "./init-
|
|
1
|
+
import { _ as loadYamlConfig, g as hasYamlConfig, v as loadYamlConfigFromFile } from "./init-rVPOUqng.js";
|
|
2
2
|
|
|
3
3
|
export { hasYamlConfig, loadYamlConfig, loadYamlConfigFromFile };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autotel",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.10.0",
|
|
4
4
|
"description": "Write Once, Observe Anywhere",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -574,7 +574,7 @@
|
|
|
574
574
|
"@opentelemetry/sdk-node": "^0.222.0",
|
|
575
575
|
"@opentelemetry/sdk-trace-base": "^2.11.0",
|
|
576
576
|
"@opentelemetry/semantic-conventions": "^1.43.0",
|
|
577
|
-
"import-in-the-middle": "^3.
|
|
577
|
+
"import-in-the-middle": "^3.5.1"
|
|
578
578
|
},
|
|
579
579
|
"peerDependencies": {
|
|
580
580
|
"@opentelemetry/auto-instrumentations-node": "^0.80.0",
|
|
@@ -591,7 +591,7 @@
|
|
|
591
591
|
"@traceloop/node-server-sdk": "^0.27.0",
|
|
592
592
|
"pino": "^10.3.1",
|
|
593
593
|
"pino-pretty": "^13.1.3",
|
|
594
|
-
"yaml": "^2.9.
|
|
594
|
+
"yaml": "^2.9.1"
|
|
595
595
|
},
|
|
596
596
|
"peerDependenciesMeta": {
|
|
597
597
|
"@opentelemetry/auto-instrumentations-node": {
|
|
@@ -654,28 +654,22 @@
|
|
|
654
654
|
"@opentelemetry/resource-detector-container": "^0.8.13",
|
|
655
655
|
"@opentelemetry/resource-detector-gcp": "^0.57.0",
|
|
656
656
|
"@opentelemetry/sdk-trace-node": "^2.11.0",
|
|
657
|
-
"@swc/core": "^1.
|
|
657
|
+
"@swc/core": "^1.16.2",
|
|
658
658
|
"@total-typescript/ts-reset": "^0.6.1",
|
|
659
659
|
"@total-typescript/tsconfig": "^1.0.4",
|
|
660
|
-
"@types/
|
|
661
|
-
"@types/node": "^26.1.2",
|
|
662
|
-
"@typescript-eslint/eslint-plugin": "^8.65.0",
|
|
663
|
-
"@typescript-eslint/parser": "^8.65.0",
|
|
664
|
-
"eslint-config-prettier": "^10.1.8",
|
|
665
|
-
"eslint-plugin-unicorn": "^64.0.0",
|
|
660
|
+
"@types/node": "^26.6.3",
|
|
666
661
|
"pino": "^10.3.1",
|
|
667
|
-
"prettier": "^3.9.
|
|
662
|
+
"prettier": "^3.9.9",
|
|
668
663
|
"rimraf": "^6.1.3",
|
|
669
|
-
"tsdown": "^0.
|
|
670
|
-
"tsx": "^4.23.
|
|
671
|
-
"typescript": "^
|
|
672
|
-
"
|
|
673
|
-
"unplugin-swc": "^1.5.9",
|
|
664
|
+
"tsdown": "^0.23.0",
|
|
665
|
+
"tsx": "^4.23.15",
|
|
666
|
+
"typescript": "^7.0.2",
|
|
667
|
+
"unplugin-swc": "^2.0.0",
|
|
674
668
|
"vite-tsconfig-paths": "^6.1.1",
|
|
675
|
-
"vitest": "^
|
|
676
|
-
"vitest-mock-extended": "^5.1.
|
|
669
|
+
"vitest": "^5.0.2",
|
|
670
|
+
"vitest-mock-extended": "^5.1.1",
|
|
677
671
|
"winston": "^3.19.0",
|
|
678
|
-
"yaml": "^2.9.
|
|
672
|
+
"yaml": "^2.9.1"
|
|
679
673
|
},
|
|
680
674
|
"repository": {
|
|
681
675
|
"type": "git",
|
|
@@ -689,8 +683,8 @@
|
|
|
689
683
|
"build": "tsdown",
|
|
690
684
|
"ci": "npm run build && npm run check-format && npm run check-exports && npm run lint && npm run test",
|
|
691
685
|
"dev": "tsdown --watch",
|
|
692
|
-
"lint": "
|
|
693
|
-
"lint:fix": "
|
|
686
|
+
"lint": "oxlint -c oxlint.json --disable-nested-config src",
|
|
687
|
+
"lint:fix": "pnpm lint --fix",
|
|
694
688
|
"format:check": "prettier --check src/**/*.ts",
|
|
695
689
|
"type-check": "tsc --noEmit",
|
|
696
690
|
"test": "vitest run --config vitest.unit.config.ts",
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
//#region src/attributes/registry.d.ts
|
|
2
|
-
declare const HTTPAttributes: {
|
|
3
|
-
readonly connectionState: "http.connection.state";
|
|
4
|
-
readonly requestMethod: "http.request.method";
|
|
5
|
-
readonly requestMethodOriginal: "http.request.method_original";
|
|
6
|
-
readonly requestResendCount: "http.request.resend_count";
|
|
7
|
-
readonly requestSize: "http.request.size";
|
|
8
|
-
readonly requestBodySize: "http.request.body.size";
|
|
9
|
-
readonly responseSize: "http.response.size";
|
|
10
|
-
readonly responseBodySize: "http.response.body.size";
|
|
11
|
-
readonly responseStatusCode: "http.response.status_code";
|
|
12
|
-
readonly route: "http.route";
|
|
13
|
-
};
|
|
14
|
-
declare const ServiceAttributes: {
|
|
15
|
-
readonly name: "service.name";
|
|
16
|
-
readonly instance: "service.instance.id";
|
|
17
|
-
readonly version: "service.version";
|
|
18
|
-
};
|
|
19
|
-
declare const URLAttributes: {
|
|
20
|
-
readonly scheme: "url.scheme";
|
|
21
|
-
readonly full: "url.full";
|
|
22
|
-
readonly path: "url.path";
|
|
23
|
-
readonly query: "url.query";
|
|
24
|
-
readonly fragment: "url.fragment";
|
|
25
|
-
};
|
|
26
|
-
//#endregion
|
|
27
|
-
//#region src/semantic-conventions.d.ts
|
|
28
|
-
declare function httpRequestHeaderAttribute(name: string): string;
|
|
29
|
-
declare function httpResponseHeaderAttribute(name: string): string;
|
|
30
|
-
//#endregion
|
|
31
|
-
export { URLAttributes as a, ServiceAttributes as i, httpResponseHeaderAttribute as n, HTTPAttributes as r, httpRequestHeaderAttribute as t };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
//#region src/attributes/registry.d.ts
|
|
2
|
-
declare const HTTPAttributes: {
|
|
3
|
-
readonly connectionState: "http.connection.state";
|
|
4
|
-
readonly requestMethod: "http.request.method";
|
|
5
|
-
readonly requestMethodOriginal: "http.request.method_original";
|
|
6
|
-
readonly requestResendCount: "http.request.resend_count";
|
|
7
|
-
readonly requestSize: "http.request.size";
|
|
8
|
-
readonly requestBodySize: "http.request.body.size";
|
|
9
|
-
readonly responseSize: "http.response.size";
|
|
10
|
-
readonly responseBodySize: "http.response.body.size";
|
|
11
|
-
readonly responseStatusCode: "http.response.status_code";
|
|
12
|
-
readonly route: "http.route";
|
|
13
|
-
};
|
|
14
|
-
declare const ServiceAttributes: {
|
|
15
|
-
readonly name: "service.name";
|
|
16
|
-
readonly instance: "service.instance.id";
|
|
17
|
-
readonly version: "service.version";
|
|
18
|
-
};
|
|
19
|
-
declare const URLAttributes: {
|
|
20
|
-
readonly scheme: "url.scheme";
|
|
21
|
-
readonly full: "url.full";
|
|
22
|
-
readonly path: "url.path";
|
|
23
|
-
readonly query: "url.query";
|
|
24
|
-
readonly fragment: "url.fragment";
|
|
25
|
-
};
|
|
26
|
-
//#endregion
|
|
27
|
-
//#region src/semantic-conventions.d.ts
|
|
28
|
-
declare function httpRequestHeaderAttribute(name: string): string;
|
|
29
|
-
declare function httpResponseHeaderAttribute(name: string): string;
|
|
30
|
-
//#endregion
|
|
31
|
-
export { URLAttributes as a, ServiceAttributes as i, httpResponseHeaderAttribute as n, HTTPAttributes as r, httpRequestHeaderAttribute as t };
|