autotel 7.9.0 → 7.10.1
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 +16 -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-6QPJDqUW.js → functional-C4gGiBou.js} +14 -9
- package/dist/{functional-SeRUabkE.d.ts → functional-CbcInXMJ.d.ts} +1 -1
- package/dist/{functional-DxHvvWc_.cjs → functional-DptEM9La.cjs} +14 -9
- 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-CnoRlJqS.d.ts → init-Biyby8Br.d.ts} +21 -5
- package/dist/{init-C-qfxo_u.js → init-BvUtwZNx.js} +104 -14
- package/dist/{init-COfMwKbc.d.cts → init-CHanKvOq.d.cts} +21 -5
- package/dist/{init-W_klPrYk.cjs → init-Cx1-ejLn.cjs} +108 -17
- 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
package/dist/{filtering-span-processor-vkewzbqB.d.ts → filtering-span-processor-BDGe1myy.d.ts}
RENAMED
|
@@ -39,7 +39,7 @@ interface FilteringSpanProcessorOptions {
|
|
|
39
39
|
*/
|
|
40
40
|
declare class FilteringSpanProcessor implements SpanProcessor {
|
|
41
41
|
private readonly wrappedProcessor;
|
|
42
|
-
private readonly
|
|
42
|
+
private readonly predicate;
|
|
43
43
|
constructor(wrappedProcessor: SpanProcessor, options: FilteringSpanProcessorOptions);
|
|
44
44
|
/**
|
|
45
45
|
* Pass through onStart - we need spans to start so child spans work
|
package/dist/{filtering-span-processor-BpDagWNa.d.cts → filtering-span-processor-BYvLMiNz.d.cts}
RENAMED
|
@@ -39,7 +39,7 @@ interface FilteringSpanProcessorOptions {
|
|
|
39
39
|
*/
|
|
40
40
|
declare class FilteringSpanProcessor implements SpanProcessor {
|
|
41
41
|
private readonly wrappedProcessor;
|
|
42
|
-
private readonly
|
|
42
|
+
private readonly predicate;
|
|
43
43
|
constructor(wrappedProcessor: SpanProcessor, options: FilteringSpanProcessorOptions);
|
|
44
44
|
/**
|
|
45
45
|
* Pass through onStart - we need spans to start so child spans work
|
|
@@ -16,10 +16,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
16
16
|
*/
|
|
17
17
|
var FilteringSpanProcessor = class {
|
|
18
18
|
wrappedProcessor;
|
|
19
|
-
|
|
19
|
+
predicate;
|
|
20
20
|
constructor(wrappedProcessor, options) {
|
|
21
21
|
this.wrappedProcessor = wrappedProcessor;
|
|
22
|
-
this.
|
|
22
|
+
this.predicate = options.filter;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* Pass through onStart - we need spans to start so child spans work
|
|
@@ -33,7 +33,7 @@ var FilteringSpanProcessor = class {
|
|
|
33
33
|
*/
|
|
34
34
|
onEnd(span) {
|
|
35
35
|
try {
|
|
36
|
-
if (this.
|
|
36
|
+
if (this.predicate(span)) this.wrappedProcessor.onEnd(span);
|
|
37
37
|
} catch {
|
|
38
38
|
this.wrappedProcessor.onEnd(span);
|
|
39
39
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as FilteringSpanProcessorOptions, r as SpanFilterPredicate, t as FilteringSpanProcessor } from "./filtering-span-processor-
|
|
1
|
+
import { n as FilteringSpanProcessorOptions, r as SpanFilterPredicate, t as FilteringSpanProcessor } from "./filtering-span-processor-BYvLMiNz.cjs";
|
|
2
2
|
export { FilteringSpanProcessor, FilteringSpanProcessorOptions, SpanFilterPredicate };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as FilteringSpanProcessorOptions, r as SpanFilterPredicate, t as FilteringSpanProcessor } from "./filtering-span-processor-
|
|
1
|
+
import { n as FilteringSpanProcessorOptions, r as SpanFilterPredicate, t as FilteringSpanProcessor } from "./filtering-span-processor-BDGe1myy.js";
|
|
2
2
|
export { FilteringSpanProcessor, FilteringSpanProcessorOptions, SpanFilterPredicate };
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
*/
|
|
16
16
|
var FilteringSpanProcessor = class {
|
|
17
17
|
wrappedProcessor;
|
|
18
|
-
|
|
18
|
+
predicate;
|
|
19
19
|
constructor(wrappedProcessor, options) {
|
|
20
20
|
this.wrappedProcessor = wrappedProcessor;
|
|
21
|
-
this.
|
|
21
|
+
this.predicate = options.filter;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* Pass through onStart - we need spans to start so child spans work
|
|
@@ -32,7 +32,7 @@ var FilteringSpanProcessor = class {
|
|
|
32
32
|
*/
|
|
33
33
|
onEnd(span) {
|
|
34
34
|
try {
|
|
35
|
-
if (this.
|
|
35
|
+
if (this.predicate(span)) this.wrappedProcessor.onEnd(span);
|
|
36
36
|
} catch {
|
|
37
37
|
this.wrappedProcessor.onEnd(span);
|
|
38
38
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as AUTOTEL_SAMPLING_TAIL_KEEP, E as AUTOTEL_SAMPLING_TAIL_EVALUATED, G as createTraceContext, J as
|
|
1
|
+
import { D as AUTOTEL_SAMPLING_TAIL_KEEP, E as AUTOTEL_SAMPLING_TAIL_EVALUATED, G as createTraceContext, J as getActiveContextWithBaggage, R as debugCaptureRequested, T as AUTOTEL_SAMPLING_RATE, V as isForceKept, X as getEventQueue, Y as getContextStorage, b as getRequestSpanIn, h as runInOperationContext, i as getSdk, k as AlwaysSampler, n as getConfiguredSampler, q as explicitSpanStatus, t as getConfig, x as rememberRequestAttributes } from "./init-BvUtwZNx.js";
|
|
2
2
|
import { l as asString, m as isDevelopment } from "./values-xBtdXtjA.js";
|
|
3
3
|
import { getForceFlushableProvider } from "./tracer-provider.js";
|
|
4
4
|
import { getConfig as getConfig$1 } from "./config.js";
|
|
@@ -373,7 +373,8 @@ function wrapWithTracingSync(fnFactory, options, variableName) {
|
|
|
373
373
|
return promiseFromThenable(unsampled) ?? unsampled;
|
|
374
374
|
}
|
|
375
375
|
const startTime = performance.now();
|
|
376
|
-
const
|
|
376
|
+
const activeSpan = trace.getActiveSpan();
|
|
377
|
+
const flushRootTelemetry = createRootTelemetryFlusher(options, options.startNewRoot || activeSpan === void 0 || activeSpan.spanContext().isRemote === true);
|
|
377
378
|
const spanOptions = {};
|
|
378
379
|
if (options.startNewRoot) spanOptions.root = true;
|
|
379
380
|
if (options.spanKind !== void 0) spanOptions.kind = options.spanKind;
|
|
@@ -400,28 +401,32 @@ function wrapWithTracingSync(fnFactory, options, variableName) {
|
|
|
400
401
|
};
|
|
401
402
|
const onSuccess = (result) => {
|
|
402
403
|
const duration = performance.now() - startTime;
|
|
404
|
+
const explicitStatus = explicitSpanStatus(span);
|
|
405
|
+
const success = explicitStatus !== SpanStatusCode.ERROR;
|
|
406
|
+
const status = success ? "success" : "error";
|
|
403
407
|
callCounter?.add(1, {
|
|
404
408
|
operation: spanName,
|
|
405
|
-
status
|
|
409
|
+
status
|
|
406
410
|
});
|
|
407
411
|
durationHistogram?.record(duration, {
|
|
408
412
|
operation: spanName,
|
|
409
|
-
status
|
|
413
|
+
status
|
|
410
414
|
});
|
|
411
415
|
const resultAttributes = {
|
|
412
416
|
...captureOutputAttrs(result, options.captureOutput),
|
|
413
417
|
...options.attributesFromResult?.(result)
|
|
414
418
|
};
|
|
415
|
-
if (
|
|
419
|
+
if (explicitStatus === void 0) span.setStatus({ code: SpanStatusCode.OK });
|
|
416
420
|
span.setAttributes({
|
|
417
421
|
...argsAttributes,
|
|
418
422
|
...resultAttributes,
|
|
419
423
|
"operation.name": spanName,
|
|
420
424
|
"code.function": spanName,
|
|
421
425
|
"operation.duration": duration,
|
|
422
|
-
"operation.success":
|
|
426
|
+
"operation.success": success,
|
|
427
|
+
...success ? {} : { error: true }
|
|
423
428
|
});
|
|
424
|
-
handleTailSampling(
|
|
429
|
+
handleTailSampling(success, duration);
|
|
425
430
|
span.end();
|
|
426
431
|
return result;
|
|
427
432
|
};
|
|
@@ -605,11 +610,11 @@ const INACTIVE_CTX_METHODS = {
|
|
|
605
610
|
recordError: noop,
|
|
606
611
|
track: noop,
|
|
607
612
|
isRecording: () => false,
|
|
608
|
-
getBaggage: () =>
|
|
613
|
+
getBaggage: () => {},
|
|
609
614
|
setBaggage: (_key, value) => value,
|
|
610
615
|
deleteBaggage: noop,
|
|
611
616
|
getAllBaggage: () => /* @__PURE__ */ new Map(),
|
|
612
|
-
getTypedBaggage: () =>
|
|
617
|
+
getTypedBaggage: () => {},
|
|
613
618
|
setTypedBaggage: noop
|
|
614
619
|
};
|
|
615
620
|
/** A `ctx`-shaped view of whatever context `resolve` finds at access time. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as TraceContext } from "./trace-context-CqCblIQE.js";
|
|
2
|
-
import { m as Sampler$1 } from "./sampling-
|
|
2
|
+
import { m as Sampler$1 } from "./sampling-B_8orhSB.js";
|
|
3
3
|
import { Attributes, Span, SpanKind } from "@opentelemetry/api";
|
|
4
4
|
//#region src/functional-wrapper.d.ts
|
|
5
5
|
type WrappedFunction<TArgs extends unknown[], TReturn> = (...args: TArgs) => TReturn | Promise<TReturn>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('./rolldown-runtime-C24Yb2bl.cjs');
|
|
2
|
-
const require_init = require('./init-
|
|
2
|
+
const require_init = require('./init-Cx1-ejLn.cjs');
|
|
3
3
|
const require_values = require('./values-AxGpgYBA.cjs');
|
|
4
4
|
const require_tracer_provider = require('./tracer-provider.cjs');
|
|
5
5
|
const require_config = require('./config.cjs');
|
|
@@ -376,7 +376,8 @@ function wrapWithTracingSync(fnFactory, options, variableName) {
|
|
|
376
376
|
return promiseFromThenable(unsampled) ?? unsampled;
|
|
377
377
|
}
|
|
378
378
|
const startTime = performance.now();
|
|
379
|
-
const
|
|
379
|
+
const activeSpan = _opentelemetry_api.trace.getActiveSpan();
|
|
380
|
+
const flushRootTelemetry = createRootTelemetryFlusher(options, options.startNewRoot || activeSpan === void 0 || activeSpan.spanContext().isRemote === true);
|
|
380
381
|
const spanOptions = {};
|
|
381
382
|
if (options.startNewRoot) spanOptions.root = true;
|
|
382
383
|
if (options.spanKind !== void 0) spanOptions.kind = options.spanKind;
|
|
@@ -403,28 +404,32 @@ function wrapWithTracingSync(fnFactory, options, variableName) {
|
|
|
403
404
|
};
|
|
404
405
|
const onSuccess = (result) => {
|
|
405
406
|
const duration = performance.now() - startTime;
|
|
407
|
+
const explicitStatus = require_init.explicitSpanStatus(span);
|
|
408
|
+
const success = explicitStatus !== _opentelemetry_api.SpanStatusCode.ERROR;
|
|
409
|
+
const status = success ? "success" : "error";
|
|
406
410
|
callCounter?.add(1, {
|
|
407
411
|
operation: spanName,
|
|
408
|
-
status
|
|
412
|
+
status
|
|
409
413
|
});
|
|
410
414
|
durationHistogram?.record(duration, {
|
|
411
415
|
operation: spanName,
|
|
412
|
-
status
|
|
416
|
+
status
|
|
413
417
|
});
|
|
414
418
|
const resultAttributes = {
|
|
415
419
|
...captureOutputAttrs(result, options.captureOutput),
|
|
416
420
|
...options.attributesFromResult?.(result)
|
|
417
421
|
};
|
|
418
|
-
if (
|
|
422
|
+
if (explicitStatus === void 0) span.setStatus({ code: _opentelemetry_api.SpanStatusCode.OK });
|
|
419
423
|
span.setAttributes({
|
|
420
424
|
...argsAttributes,
|
|
421
425
|
...resultAttributes,
|
|
422
426
|
"operation.name": spanName,
|
|
423
427
|
"code.function": spanName,
|
|
424
428
|
"operation.duration": duration,
|
|
425
|
-
"operation.success":
|
|
429
|
+
"operation.success": success,
|
|
430
|
+
...success ? {} : { error: true }
|
|
426
431
|
});
|
|
427
|
-
handleTailSampling(
|
|
432
|
+
handleTailSampling(success, duration);
|
|
428
433
|
span.end();
|
|
429
434
|
return result;
|
|
430
435
|
};
|
|
@@ -608,11 +613,11 @@ const INACTIVE_CTX_METHODS = {
|
|
|
608
613
|
recordError: noop,
|
|
609
614
|
track: noop,
|
|
610
615
|
isRecording: () => false,
|
|
611
|
-
getBaggage: () =>
|
|
616
|
+
getBaggage: () => {},
|
|
612
617
|
setBaggage: (_key, value) => value,
|
|
613
618
|
deleteBaggage: noop,
|
|
614
619
|
getAllBaggage: () => /* @__PURE__ */ new Map(),
|
|
615
|
-
getTypedBaggage: () =>
|
|
620
|
+
getTypedBaggage: () => {},
|
|
616
621
|
setTypedBaggage: noop
|
|
617
622
|
};
|
|
618
623
|
/** A `ctx`-shaped view of whatever context `resolve` finds at access time. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as TraceContext } from "./trace-context-f7Xq0Q2q.cjs";
|
|
2
|
-
import { m as Sampler$1 } from "./sampling-
|
|
2
|
+
import { m as Sampler$1 } from "./sampling-Dud4XU2m.cjs";
|
|
3
3
|
import { Attributes, Span, SpanKind } from "@opentelemetry/api";
|
|
4
4
|
//#region src/functional-wrapper.d.ts
|
|
5
5
|
type WrappedFunction<TArgs extends unknown[], TReturn> = (...args: TArgs) => TReturn | Promise<TReturn>;
|
package/dist/functional.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_functional = require('./functional-
|
|
2
|
+
const require_functional = require('./functional-DptEM9La.cjs');
|
|
3
3
|
|
|
4
4
|
exports.ctx = require_functional.ctx;
|
|
5
5
|
exports.getActiveTraceContext = require_functional.getActiveTraceContext;
|
package/dist/functional.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as TraceContext } from "./trace-context-f7Xq0Q2q.cjs";
|
|
2
|
-
import { a as getActiveTraceContext, c as span, d as withNewContext, f as withTracing, h as TracingOptions, i as ctx, l as trace, m as SingleInstrumentOptions, n as WithBaggageOptions, o as instrument, p as InstrumentOptions, r as WithNewContextOptions, s as requestCtx, t as SpanOptions, u as withBaggage } from "./functional-
|
|
2
|
+
import { a as getActiveTraceContext, c as span, d as withNewContext, f as withTracing, h as TracingOptions, i as ctx, l as trace, m as SingleInstrumentOptions, n as WithBaggageOptions, o as instrument, p as InstrumentOptions, r as WithNewContextOptions, s as requestCtx, t as SpanOptions, u as withBaggage } from "./functional-j8Joyrwd.cjs";
|
|
3
3
|
export { type InstrumentOptions, type SingleInstrumentOptions, SpanOptions, type TraceContext, type TracingOptions, WithBaggageOptions, WithNewContextOptions, ctx, getActiveTraceContext, instrument, requestCtx, span, trace, withBaggage, withNewContext, withTracing };
|
package/dist/functional.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as TraceContext } from "./trace-context-CqCblIQE.js";
|
|
2
|
-
import { a as getActiveTraceContext, c as span, d as withNewContext, f as withTracing, h as TracingOptions, i as ctx, l as trace, m as SingleInstrumentOptions, n as WithBaggageOptions, o as instrument, p as InstrumentOptions, r as WithNewContextOptions, s as requestCtx, t as SpanOptions, u as withBaggage } from "./functional-
|
|
2
|
+
import { a as getActiveTraceContext, c as span, d as withNewContext, f as withTracing, h as TracingOptions, i as ctx, l as trace, m as SingleInstrumentOptions, n as WithBaggageOptions, o as instrument, p as InstrumentOptions, r as WithNewContextOptions, s as requestCtx, t as SpanOptions, u as withBaggage } from "./functional-CbcInXMJ.js";
|
|
3
3
|
export { type InstrumentOptions, type SingleInstrumentOptions, SpanOptions, type TraceContext, type TracingOptions, WithBaggageOptions, WithNewContextOptions, ctx, getActiveTraceContext, instrument, requestCtx, span, trace, withBaggage, withNewContext, withTracing };
|
package/dist/functional.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as span, c as withNewContext, i as requestCtx, l as withTracing, n as getActiveTraceContext, o as trace, r as instrument, s as withBaggage, t as ctx } from "./functional-
|
|
1
|
+
import { a as span, c as withNewContext, i as requestCtx, l as withTracing, n as getActiveTraceContext, o as trace, r as instrument, s as withBaggage, t as ctx } from "./functional-C4gGiBou.js";
|
|
2
2
|
|
|
3
3
|
export { ctx, getActiveTraceContext, instrument, requestCtx, span, trace, withBaggage, withNewContext, withTracing };
|
package/dist/http.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-Cx1-ejLn.cjs');
|
|
3
3
|
const require_values = require('./values-AxGpgYBA.cjs');
|
|
4
4
|
const require_config = require('./config.cjs');
|
|
5
5
|
let _opentelemetry_api = require("@opentelemetry/api");
|
package/dist/http.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { context } from "@opentelemetry/api";
|
|
2
2
|
//#region src/http.d.ts
|
|
3
|
-
interface HttpInstrumentedOptions {
|
|
3
|
+
export interface HttpInstrumentedOptions {
|
|
4
4
|
/** Service name for HTTP calls (default: 'http-client') */
|
|
5
5
|
serviceName?: string;
|
|
6
6
|
/** Extract URL from method arguments (default: first arg) */
|
|
@@ -54,7 +54,7 @@ interface HttpInstrumentedOptions {
|
|
|
54
54
|
* }
|
|
55
55
|
* ```
|
|
56
56
|
*/
|
|
57
|
-
declare function HttpInstrumented(options?: HttpInstrumentedOptions): <T extends {
|
|
57
|
+
export declare function HttpInstrumented(options?: HttpInstrumentedOptions): <T extends {
|
|
58
58
|
new (...args: any[]): {};
|
|
59
59
|
}>(target: T, _context: ClassDecoratorContext) => {
|
|
60
60
|
new (...args: any[]): {};
|
|
@@ -72,7 +72,7 @@ declare function HttpInstrumented(options?: HttpInstrumentedOptions): <T extends
|
|
|
72
72
|
* )
|
|
73
73
|
* ```
|
|
74
74
|
*/
|
|
75
|
-
declare function traceHttpRequest<T>(spanName: string, fn: () => Promise<T>, attributes?: Record<string, string | number>): Promise<T>;
|
|
75
|
+
export declare function traceHttpRequest<T>(spanName: string, fn: () => Promise<T>, attributes?: Record<string, string | number>): Promise<T>;
|
|
76
76
|
/**
|
|
77
77
|
* Inject trace context into HTTP headers (for distributed tracing)
|
|
78
78
|
*
|
|
@@ -106,7 +106,7 @@ declare function traceHttpRequest<T>(spanName: string, fn: () => Promise<T>, att
|
|
|
106
106
|
* });
|
|
107
107
|
* ```
|
|
108
108
|
*/
|
|
109
|
-
declare function injectTraceContext(headers?: Record<string, string>): Record<string, string>;
|
|
109
|
+
export declare function injectTraceContext(headers?: Record<string, string>): Record<string, string>;
|
|
110
110
|
/**
|
|
111
111
|
* Extract trace context from HTTP headers (for distributed tracing)
|
|
112
112
|
*
|
|
@@ -142,6 +142,5 @@ declare function injectTraceContext(headers?: Record<string, string>): Record<st
|
|
|
142
142
|
* });
|
|
143
143
|
* ```
|
|
144
144
|
*/
|
|
145
|
-
declare function extractTraceContext(headers: Record<string, string | string[] | undefined>): ReturnType<typeof context.active>;
|
|
146
|
-
//#endregion
|
|
147
|
-
export { HttpInstrumented, HttpInstrumentedOptions, extractTraceContext, injectTraceContext, traceHttpRequest };
|
|
145
|
+
export declare function extractTraceContext(headers: Record<string, string | string[] | undefined>): ReturnType<typeof context.active>;
|
|
146
|
+
//#endregion
|
package/dist/http.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { context } from "@opentelemetry/api";
|
|
2
2
|
//#region src/http.d.ts
|
|
3
|
-
interface HttpInstrumentedOptions {
|
|
3
|
+
export interface HttpInstrumentedOptions {
|
|
4
4
|
/** Service name for HTTP calls (default: 'http-client') */
|
|
5
5
|
serviceName?: string;
|
|
6
6
|
/** Extract URL from method arguments (default: first arg) */
|
|
@@ -54,7 +54,7 @@ interface HttpInstrumentedOptions {
|
|
|
54
54
|
* }
|
|
55
55
|
* ```
|
|
56
56
|
*/
|
|
57
|
-
declare function HttpInstrumented(options?: HttpInstrumentedOptions): <T extends {
|
|
57
|
+
export declare function HttpInstrumented(options?: HttpInstrumentedOptions): <T extends {
|
|
58
58
|
new (...args: any[]): {};
|
|
59
59
|
}>(target: T, _context: ClassDecoratorContext) => {
|
|
60
60
|
new (...args: any[]): {};
|
|
@@ -72,7 +72,7 @@ declare function HttpInstrumented(options?: HttpInstrumentedOptions): <T extends
|
|
|
72
72
|
* )
|
|
73
73
|
* ```
|
|
74
74
|
*/
|
|
75
|
-
declare function traceHttpRequest<T>(spanName: string, fn: () => Promise<T>, attributes?: Record<string, string | number>): Promise<T>;
|
|
75
|
+
export declare function traceHttpRequest<T>(spanName: string, fn: () => Promise<T>, attributes?: Record<string, string | number>): Promise<T>;
|
|
76
76
|
/**
|
|
77
77
|
* Inject trace context into HTTP headers (for distributed tracing)
|
|
78
78
|
*
|
|
@@ -106,7 +106,7 @@ declare function traceHttpRequest<T>(spanName: string, fn: () => Promise<T>, att
|
|
|
106
106
|
* });
|
|
107
107
|
* ```
|
|
108
108
|
*/
|
|
109
|
-
declare function injectTraceContext(headers?: Record<string, string>): Record<string, string>;
|
|
109
|
+
export declare function injectTraceContext(headers?: Record<string, string>): Record<string, string>;
|
|
110
110
|
/**
|
|
111
111
|
* Extract trace context from HTTP headers (for distributed tracing)
|
|
112
112
|
*
|
|
@@ -142,6 +142,5 @@ declare function injectTraceContext(headers?: Record<string, string>): Record<st
|
|
|
142
142
|
* });
|
|
143
143
|
* ```
|
|
144
144
|
*/
|
|
145
|
-
declare function extractTraceContext(headers: Record<string, string | string[] | undefined>): ReturnType<typeof context.active>;
|
|
146
|
-
//#endregion
|
|
147
|
-
export { HttpInstrumented, HttpInstrumentedOptions, extractTraceContext, injectTraceContext, traceHttpRequest };
|
|
145
|
+
export declare function extractTraceContext(headers: Record<string, string | string[] | undefined>): ReturnType<typeof context.active>;
|
|
146
|
+
//#endregion
|
package/dist/http.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { J as getActiveContextWithBaggage } from "./init-BvUtwZNx.js";
|
|
2
2
|
import { _ as readProperty, h as isFunction, i as asNumber, l as asString } from "./values-xBtdXtjA.js";
|
|
3
3
|
import { getConfig } from "./config.js";
|
|
4
4
|
import { SpanStatusCode, context, propagation } from "@opentelemetry/api";
|
|
@@ -495,8 +495,8 @@ declare const attrs: {
|
|
|
495
495
|
readonly destination: (value: string) => {
|
|
496
496
|
"messaging.destination.name": string;
|
|
497
497
|
};
|
|
498
|
-
readonly operation: (value:
|
|
499
|
-
"messaging.operation.type": "
|
|
498
|
+
readonly operation: (value: 'publish' | 'receive' | 'process') => {
|
|
499
|
+
"messaging.operation.type": "process" | "publish" | "receive";
|
|
500
500
|
};
|
|
501
501
|
readonly messageId: (value: string) => {
|
|
502
502
|
"messaging.message.id": string;
|
|
@@ -527,8 +527,8 @@ declare const attrs: {
|
|
|
527
527
|
readonly operationName: (value: string) => {
|
|
528
528
|
"graphql.operation.name": string;
|
|
529
529
|
};
|
|
530
|
-
readonly operationType: (value:
|
|
531
|
-
"graphql.operation.type": "
|
|
530
|
+
readonly operationType: (value: 'query' | 'mutation' | 'subscription') => {
|
|
531
|
+
"graphql.operation.type": "mutation" | "query" | "subscription";
|
|
532
532
|
};
|
|
533
533
|
};
|
|
534
534
|
readonly otel: {
|
|
@@ -495,8 +495,8 @@ declare const attrs: {
|
|
|
495
495
|
readonly destination: (value: string) => {
|
|
496
496
|
"messaging.destination.name": string;
|
|
497
497
|
};
|
|
498
|
-
readonly operation: (value:
|
|
499
|
-
"messaging.operation.type": "
|
|
498
|
+
readonly operation: (value: 'publish' | 'receive' | 'process') => {
|
|
499
|
+
"messaging.operation.type": "process" | "publish" | "receive";
|
|
500
500
|
};
|
|
501
501
|
readonly messageId: (value: string) => {
|
|
502
502
|
"messaging.message.id": string;
|
|
@@ -527,8 +527,8 @@ declare const attrs: {
|
|
|
527
527
|
readonly operationName: (value: string) => {
|
|
528
528
|
"graphql.operation.name": string;
|
|
529
529
|
};
|
|
530
|
-
readonly operationType: (value:
|
|
531
|
-
"graphql.operation.type": "
|
|
530
|
+
readonly operationType: (value: 'query' | 'mutation' | 'subscription') => {
|
|
531
|
+
"graphql.operation.type": "mutation" | "query" | "subscription";
|
|
532
532
|
};
|
|
533
533
|
};
|
|
534
534
|
readonly otel: {
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_rolldown_runtime = require('./rolldown-runtime-C24Yb2bl.cjs');
|
|
3
|
-
const require_init = require('./init-
|
|
3
|
+
const require_init = require('./init-Cx1-ejLn.cjs');
|
|
4
4
|
const require_values = require('./values-AxGpgYBA.cjs');
|
|
5
5
|
const require_tracer_provider = require('./tracer-provider.cjs');
|
|
6
6
|
const require_structured_error = require('./structured-error-DynjWTTu.cjs');
|
|
@@ -9,7 +9,7 @@ const require_span_name_normalizer = require('./span-name-normalizer.cjs');
|
|
|
9
9
|
const require_attribute_redacting_processor = require('./attribute-redacting-processor.cjs');
|
|
10
10
|
const require_canonical_log_line_processor = require('./canonical-log-line-processor-BU03jJeA.cjs');
|
|
11
11
|
const require_metric = require('./metric.cjs');
|
|
12
|
-
const require_functional = require('./functional-
|
|
12
|
+
const require_functional = require('./functional-DptEM9La.cjs');
|
|
13
13
|
const require_trace_helpers = require('./trace-helpers.cjs');
|
|
14
14
|
const require_stable_hash = require('./stable-hash-sLi1o4jj.cjs');
|
|
15
15
|
const require_correlated_events = require('./correlated-events-DE_4A3oD.cjs');
|
|
@@ -653,6 +653,7 @@ exports.getStructuredErrorAttributes = require_structured_error.getStructuredErr
|
|
|
653
653
|
exports.getTraceContext = require_trace_helpers.getTraceContext;
|
|
654
654
|
exports.getTracer = require_trace_helpers.getTracer;
|
|
655
655
|
exports.hasRequestContext = hasRequestContext;
|
|
656
|
+
exports.hasTracerProvider = require_tracer_provider.hasTracerProvider;
|
|
656
657
|
exports.httpClient = require_attributes.httpClient;
|
|
657
658
|
exports.httpRequestHeaderAttribute = require_semantic_conventions.httpRequestHeaderAttribute;
|
|
658
659
|
exports.httpResponseHeaderAttribute = require_semantic_conventions.httpResponseHeaderAttribute;
|