autotel 7.7.1 → 7.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/analysis.cjs +0 -1
- package/dist/{attribute-redacting-processor-CvBE0z1p.d.ts → attribute-redacting-processor-rkV_WL-k.d.ts} +2 -2
- package/dist/attribute-redacting-processor.cjs +1 -1
- package/dist/attribute-redacting-processor.d.ts +1 -1
- package/dist/{attributes-De9Fx0b4.js → attributes-CuGx6cOI.js} +21 -11
- package/dist/{attributes-DkptT2Ck.cjs → attributes-Ii3jDPsW.cjs} +23 -13
- package/dist/attributes.cjs +1 -1
- package/dist/attributes.d.ts +1 -1
- package/dist/attributes.js +1 -1
- package/dist/auto.cjs +2 -2
- package/dist/auto.js +1 -1
- package/dist/business-baggage.cjs +1 -1
- package/dist/{canonical-log-line-processor-Bvgb1lE4.cjs → canonical-log-line-processor-BU03jJeA.cjs} +1 -1
- package/dist/{canonical-log-line-processor-Yq4cXcD5.d.ts → canonical-log-line-processor-Bwrt_L4c.d.ts} +1 -1
- package/dist/{correlated-events-9RRdfyWR.cjs → correlated-events-DE_4A3oD.cjs} +1 -1
- package/dist/correlation-id.cjs +1 -1
- package/dist/correlation-id.js +1 -1
- package/dist/db.cjs +1 -1
- package/dist/decorators.cjs +2 -2
- package/dist/decorators.d.cts +1 -1
- package/dist/decorators.d.ts +1 -1
- package/dist/decorators.js +1 -1
- package/dist/diagnostics.cjs +3 -3
- package/dist/diagnostics.js +1 -1
- package/dist/drain-pipeline.cjs +0 -1
- package/dist/enrichers.cjs +0 -1
- package/dist/event-testing.cjs +0 -1
- package/dist/event.cjs +1 -1
- package/dist/event.js +1 -1
- package/dist/evidence.cjs +0 -1
- package/dist/exception-fingerprint.cjs +1 -1
- package/dist/{filtering-span-processor-BpDagWNa.d.ts → filtering-span-processor-vkewzbqB.d.ts} +2 -2
- package/dist/filtering-span-processor.cjs +0 -1
- package/dist/filtering-span-processor.d.ts +1 -1
- package/dist/{functional-S9IJNlBn.js → functional-CC2BFGAO.js} +9 -9
- package/dist/{functional-C4mjgtJb.d.cts → functional-DPZTpGh6.d.cts} +2 -2
- package/dist/{functional-DN_ztd9C.d.ts → functional-SeRUabkE.d.ts} +2 -2
- package/dist/{functional-UIJ0CaTV.cjs → functional-u5Qwjray.cjs} +3 -3
- 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 +2 -2
- package/dist/http.js +1 -1
- package/dist/{index-o_6YjZhV.d.ts → index-B9aRLp6c.d.ts} +1 -1
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +10 -10
- package/dist/index.js +3 -3
- package/dist/{init-BYXDCfRL.cjs → init-21HWbm7_.cjs} +194 -39
- package/dist/{init-Dyq6WtsO.js → init-8SISAGdE.js} +190 -35
- package/dist/{init-WwjD-kQu.d.cts → init-COfMwKbc.d.cts} +38 -10
- package/dist/{init-CKSMbJUG.d.ts → init-CnoRlJqS.d.ts} +43 -15
- package/dist/instrumentation.cjs +9 -8
- package/dist/instrumentation.js +8 -7
- package/dist/{logger-CSdZkxbh.cjs → logger-DLjHQAus.cjs} +1 -1
- package/dist/logger.cjs +1 -1
- package/dist/messaging-adapters.cjs +1 -1
- package/dist/messaging-testing.cjs +0 -1
- package/dist/messaging.cjs +8 -7
- package/dist/messaging.js +5 -4
- package/dist/metric-testing.cjs +0 -1
- package/dist/{node-require-B_IVapV3.cjs → node-require-BPsB09eC.cjs} +2 -2
- package/dist/parse-error.cjs +1 -1
- package/dist/{policy-C4QcZnqv.d.ts → policy-DNw_0qUq.d.ts} +1 -1
- package/dist/policy.cjs +0 -0
- package/dist/policy.d.ts +1 -1
- package/dist/processors.cjs +1 -1
- package/dist/processors.d.ts +1 -1
- package/dist/register.cjs +1 -1
- package/dist/{registry-DIoklBz5.cjs → registry-B3ZJmUtU.cjs} +0 -1
- package/dist/{rolldown-runtime-C_NdSu1c.cjs → rolldown-runtime-C24Yb2bl.cjs} +1 -2
- package/dist/{sampling-DBng4Foa.d.ts → sampling-CZi7OM9u.d.ts} +13 -13
- package/dist/{sampling-Er217Mge.d.cts → sampling-DENUjT_8.d.cts} +13 -13
- 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.cjs +0 -1
- package/dist/semantic-conventions.cjs +1 -1
- package/dist/semantic-helpers.cjs +3 -3
- package/dist/semantic-helpers.js +1 -1
- package/dist/{span-name-normalizer-CN1-8C76.d.ts → span-name-normalizer-DHcg1bSP.d.ts} +2 -2
- package/dist/span-name-normalizer.cjs +0 -1
- package/dist/span-name-normalizer.d.ts +1 -1
- package/dist/{stable-hash-C9F6xjzx.cjs → stable-hash-sLi1o4jj.cjs} +2 -2
- package/dist/{structured-error-BAXhglRE.cjs → structured-error-DynjWTTu.cjs} +1 -1
- package/dist/tail-sampling-processor.cjs +1 -1
- package/dist/tail-sampling-processor.d.ts +2 -2
- package/dist/tail-sampling-processor.js +1 -1
- package/dist/test-span-collector.cjs +1 -1
- package/dist/testing.cjs +3 -3
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/dist/{trace-factory-validation-Dc8epn87.cjs → trace-factory-validation-CHU1WcjK.cjs} +0 -1
- package/dist/trace-helpers.cjs +2 -2
- package/dist/tracer-provider.cjs +1 -1
- package/dist/validate.cjs +3 -3
- package/dist/validation-attributes.cjs +0 -1
- package/dist/{values-tm4bi0FF.cjs → values-AxGpgYBA.cjs} +0 -1
- package/dist/webhook.cjs +16 -13
- package/dist/webhook.js +14 -11
- package/dist/workflow-distributed.cjs +4 -6
- package/dist/workflow-distributed.js +2 -4
- package/dist/workflow.cjs +7 -6
- package/dist/workflow.js +3 -2
- package/dist/yaml-config.cjs +1 -1
- package/dist/yaml-config.d.cts +2 -2
- package/dist/yaml-config.d.ts +2 -2
- package/dist/yaml-config.js +1 -1
- package/package.json +2 -1
package/dist/policy.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as watchPolicyFile, a as PolicyLogRecordProcessor, c as PolicyMatcher, d as getPolicies, f as hasLogPolicies, g as unsupportedReason, h as setPolicies, i as PolicyField, l as PolicyTraceTarget, m as policySpanFilter, n as MAX_MATCH_LENGTH, o as PolicyLogTarget, p as loadPolicies, r as Policy, s as PolicyLogTransform, t as AttributePath, u as clearPolicies } from "./policy-
|
|
1
|
+
import { _ as watchPolicyFile, a as PolicyLogRecordProcessor, c as PolicyMatcher, d as getPolicies, f as hasLogPolicies, g as unsupportedReason, h as setPolicies, i as PolicyField, l as PolicyTraceTarget, m as policySpanFilter, n as MAX_MATCH_LENGTH, o as PolicyLogTarget, p as loadPolicies, r as Policy, s as PolicyLogTransform, t as AttributePath, u as clearPolicies } from "./policy-DNw_0qUq.js";
|
|
2
2
|
export { AttributePath, MAX_MATCH_LENGTH, Policy, PolicyField, PolicyLogRecordProcessor, PolicyLogTarget, PolicyLogTransform, PolicyMatcher, PolicyTraceTarget, clearPolicies, getPolicies, hasLogPolicies, loadPolicies, policySpanFilter, setPolicies, unsupportedReason, watchPolicyFile };
|
package/dist/processors.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_canonical_log_line_processor = require('./canonical-log-line-processor-
|
|
2
|
+
const require_canonical_log_line_processor = require('./canonical-log-line-processor-BU03jJeA.cjs');
|
|
3
3
|
let _opentelemetry_sdk_trace_base = require("@opentelemetry/sdk-trace-base");
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, 'BatchSpanProcessor', {
|
package/dist/processors.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as CanonicalLogLineProcessor, t as CanonicalLogLineOptions } from "./canonical-log-line-processor-
|
|
1
|
+
import { n as CanonicalLogLineProcessor, t as CanonicalLogLineOptions } from "./canonical-log-line-processor-Bwrt_L4c.js";
|
|
2
2
|
import { BatchSpanProcessor, SimpleSpanProcessor } from "@opentelemetry/sdk-trace-base";
|
|
3
3
|
export { BatchSpanProcessor, type CanonicalLogLineOptions, CanonicalLogLineProcessor, SimpleSpanProcessor };
|
package/dist/register.cjs
CHANGED
|
@@ -19,13 +19,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
}
|
|
20
20
|
return to;
|
|
21
21
|
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
23
23
|
value: mod,
|
|
24
24
|
enumerable: true
|
|
25
25
|
}) : target, mod));
|
|
26
26
|
|
|
27
27
|
//#endregion
|
|
28
|
-
|
|
29
28
|
Object.defineProperty(exports, '__toESM', {
|
|
30
29
|
enumerable: true,
|
|
31
30
|
get: function () {
|
|
@@ -50,7 +50,7 @@ declare function hashUnitInterval(value: string): number;
|
|
|
50
50
|
/**
|
|
51
51
|
* Sampler interface - return true to trace, false to skip
|
|
52
52
|
*/
|
|
53
|
-
interface Sampler {
|
|
53
|
+
interface Sampler$1 {
|
|
54
54
|
/**
|
|
55
55
|
* Decide whether to trace this operation
|
|
56
56
|
*
|
|
@@ -117,7 +117,7 @@ interface OperationResult {
|
|
|
117
117
|
* new RandomSampler(0.1) // Sample 10% of requests
|
|
118
118
|
* ```
|
|
119
119
|
*/
|
|
120
|
-
declare class RandomSampler implements Sampler {
|
|
120
|
+
declare class RandomSampler implements Sampler$1 {
|
|
121
121
|
private readonly rate;
|
|
122
122
|
constructor(rate: number);
|
|
123
123
|
shouldSample(_context: SamplingContext): boolean;
|
|
@@ -126,13 +126,13 @@ declare class RandomSampler implements Sampler {
|
|
|
126
126
|
/**
|
|
127
127
|
* Always sample (100% tracing)
|
|
128
128
|
*/
|
|
129
|
-
declare class AlwaysSampler implements Sampler {
|
|
129
|
+
declare class AlwaysSampler implements Sampler$1 {
|
|
130
130
|
shouldSample(_context: SamplingContext): boolean;
|
|
131
131
|
}
|
|
132
132
|
/**
|
|
133
133
|
* Never sample (0% tracing)
|
|
134
134
|
*/
|
|
135
|
-
declare class NeverSampler implements Sampler {
|
|
135
|
+
declare class NeverSampler implements Sampler$1 {
|
|
136
136
|
shouldSample(_context: SamplingContext): boolean;
|
|
137
137
|
}
|
|
138
138
|
/**
|
|
@@ -168,7 +168,7 @@ declare class NeverSampler implements Sampler {
|
|
|
168
168
|
* })
|
|
169
169
|
* ```
|
|
170
170
|
*/
|
|
171
|
-
declare class AdaptiveSampler implements Sampler {
|
|
171
|
+
declare class AdaptiveSampler implements Sampler$1 {
|
|
172
172
|
private baselineSampleRate;
|
|
173
173
|
private slowThresholdMs;
|
|
174
174
|
private alwaysSampleErrors;
|
|
@@ -228,7 +228,7 @@ declare class AdaptiveSampler implements Sampler {
|
|
|
228
228
|
* })
|
|
229
229
|
* ```
|
|
230
230
|
*/
|
|
231
|
-
declare class UserIdSampler implements Sampler {
|
|
231
|
+
declare class UserIdSampler implements Sampler$1 {
|
|
232
232
|
private baselineSampleRate;
|
|
233
233
|
private alwaysSampleUsers;
|
|
234
234
|
private extractUserId;
|
|
@@ -269,7 +269,7 @@ declare class UserIdSampler implements Sampler {
|
|
|
269
269
|
* })
|
|
270
270
|
* ```
|
|
271
271
|
*/
|
|
272
|
-
declare class DeterministicSampler implements Sampler {
|
|
272
|
+
declare class DeterministicSampler implements Sampler$1 {
|
|
273
273
|
private readonly rate;
|
|
274
274
|
private readonly key;
|
|
275
275
|
constructor(options: {
|
|
@@ -302,7 +302,7 @@ declare class DeterministicSampler implements Sampler {
|
|
|
302
302
|
* })
|
|
303
303
|
* ```
|
|
304
304
|
*/
|
|
305
|
-
declare class KeyTargetRateSampler implements Sampler {
|
|
305
|
+
declare class KeyTargetRateSampler implements Sampler$1 {
|
|
306
306
|
private readonly key;
|
|
307
307
|
private readonly targetPerKey;
|
|
308
308
|
private readonly windowMs;
|
|
@@ -345,9 +345,9 @@ declare class KeyTargetRateSampler implements Sampler {
|
|
|
345
345
|
* ])
|
|
346
346
|
* ```
|
|
347
347
|
*/
|
|
348
|
-
declare class CompositeSampler implements Sampler {
|
|
348
|
+
declare class CompositeSampler implements Sampler$1 {
|
|
349
349
|
private readonly samplers;
|
|
350
|
-
constructor(samplers: Sampler[]);
|
|
350
|
+
constructor(samplers: Sampler$1[]);
|
|
351
351
|
shouldSample(context: SamplingContext): boolean;
|
|
352
352
|
}
|
|
353
353
|
/**
|
|
@@ -365,7 +365,7 @@ declare class CompositeSampler implements Sampler {
|
|
|
365
365
|
* })
|
|
366
366
|
* ```
|
|
367
367
|
*/
|
|
368
|
-
declare class FeatureFlagSampler implements Sampler {
|
|
368
|
+
declare class FeatureFlagSampler implements Sampler$1 {
|
|
369
369
|
private baselineSampleRate;
|
|
370
370
|
private alwaysSampleFlags;
|
|
371
371
|
private extractFlags;
|
|
@@ -428,7 +428,7 @@ declare const samplingPresets: {
|
|
|
428
428
|
*
|
|
429
429
|
* @throws Error if preset is not recognized
|
|
430
430
|
*/
|
|
431
|
-
declare function resolveSamplingPreset(preset: SamplingPreset): Sampler;
|
|
431
|
+
declare function resolveSamplingPreset(preset: SamplingPreset): Sampler$1;
|
|
432
432
|
/**
|
|
433
433
|
* Create a Link from W3C trace context headers (e.g., from a message queue).
|
|
434
434
|
*
|
|
@@ -482,4 +482,4 @@ declare function extractLinksFromBatch(messages: UnknownRecord[], headersKey?: s
|
|
|
482
482
|
/** True when the request in flight asked for full-fidelity capture. */
|
|
483
483
|
declare function debugCaptureRequested(): boolean;
|
|
484
484
|
//#endregion
|
|
485
|
-
export { markForceKept as C, isForceKept as S, samplingPresets as T, UserIdSampler as _, AdaptiveSampler as a, extractLinksFromBatch as b, DeterministicSampler as c, NeverSampler as d, OperationResult as f, SamplingPreset as g, SamplingContext as h, AUTOTEL_SAMPLING_TAIL_KEEP as i, FeatureFlagSampler as l, Sampler as m, AUTOTEL_SAMPLING_RATE as n, AlwaysSampler as o, RandomSampler as p, AUTOTEL_SAMPLING_TAIL_EVALUATED as r, CompositeSampler as s, AUTOTEL_DEBUG_BAGGAGE_KEY as t, KeyTargetRateSampler as u, createLinkFromHeaders as v, resolveSamplingPreset as w, hashUnitInterval as x, debugCaptureRequested as y };
|
|
485
|
+
export { markForceKept as C, isForceKept as S, samplingPresets as T, UserIdSampler as _, AdaptiveSampler as a, extractLinksFromBatch as b, DeterministicSampler as c, NeverSampler as d, OperationResult as f, SamplingPreset as g, SamplingContext as h, AUTOTEL_SAMPLING_TAIL_KEEP as i, FeatureFlagSampler as l, Sampler$1 as m, AUTOTEL_SAMPLING_RATE as n, AlwaysSampler as o, RandomSampler as p, AUTOTEL_SAMPLING_TAIL_EVALUATED as r, CompositeSampler as s, AUTOTEL_DEBUG_BAGGAGE_KEY as t, KeyTargetRateSampler as u, createLinkFromHeaders as v, resolveSamplingPreset as w, hashUnitInterval as x, debugCaptureRequested as y };
|
|
@@ -50,7 +50,7 @@ declare function hashUnitInterval(value: string): number;
|
|
|
50
50
|
/**
|
|
51
51
|
* Sampler interface - return true to trace, false to skip
|
|
52
52
|
*/
|
|
53
|
-
interface Sampler {
|
|
53
|
+
interface Sampler$1 {
|
|
54
54
|
/**
|
|
55
55
|
* Decide whether to trace this operation
|
|
56
56
|
*
|
|
@@ -117,7 +117,7 @@ interface OperationResult {
|
|
|
117
117
|
* new RandomSampler(0.1) // Sample 10% of requests
|
|
118
118
|
* ```
|
|
119
119
|
*/
|
|
120
|
-
declare class RandomSampler implements Sampler {
|
|
120
|
+
declare class RandomSampler implements Sampler$1 {
|
|
121
121
|
private readonly rate;
|
|
122
122
|
constructor(rate: number);
|
|
123
123
|
shouldSample(_context: SamplingContext): boolean;
|
|
@@ -126,13 +126,13 @@ declare class RandomSampler implements Sampler {
|
|
|
126
126
|
/**
|
|
127
127
|
* Always sample (100% tracing)
|
|
128
128
|
*/
|
|
129
|
-
declare class AlwaysSampler implements Sampler {
|
|
129
|
+
declare class AlwaysSampler implements Sampler$1 {
|
|
130
130
|
shouldSample(_context: SamplingContext): boolean;
|
|
131
131
|
}
|
|
132
132
|
/**
|
|
133
133
|
* Never sample (0% tracing)
|
|
134
134
|
*/
|
|
135
|
-
declare class NeverSampler implements Sampler {
|
|
135
|
+
declare class NeverSampler implements Sampler$1 {
|
|
136
136
|
shouldSample(_context: SamplingContext): boolean;
|
|
137
137
|
}
|
|
138
138
|
/**
|
|
@@ -168,7 +168,7 @@ declare class NeverSampler implements Sampler {
|
|
|
168
168
|
* })
|
|
169
169
|
* ```
|
|
170
170
|
*/
|
|
171
|
-
declare class AdaptiveSampler implements Sampler {
|
|
171
|
+
declare class AdaptiveSampler implements Sampler$1 {
|
|
172
172
|
private baselineSampleRate;
|
|
173
173
|
private slowThresholdMs;
|
|
174
174
|
private alwaysSampleErrors;
|
|
@@ -228,7 +228,7 @@ declare class AdaptiveSampler implements Sampler {
|
|
|
228
228
|
* })
|
|
229
229
|
* ```
|
|
230
230
|
*/
|
|
231
|
-
declare class UserIdSampler implements Sampler {
|
|
231
|
+
declare class UserIdSampler implements Sampler$1 {
|
|
232
232
|
private baselineSampleRate;
|
|
233
233
|
private alwaysSampleUsers;
|
|
234
234
|
private extractUserId;
|
|
@@ -269,7 +269,7 @@ declare class UserIdSampler implements Sampler {
|
|
|
269
269
|
* })
|
|
270
270
|
* ```
|
|
271
271
|
*/
|
|
272
|
-
declare class DeterministicSampler implements Sampler {
|
|
272
|
+
declare class DeterministicSampler implements Sampler$1 {
|
|
273
273
|
private readonly rate;
|
|
274
274
|
private readonly key;
|
|
275
275
|
constructor(options: {
|
|
@@ -302,7 +302,7 @@ declare class DeterministicSampler implements Sampler {
|
|
|
302
302
|
* })
|
|
303
303
|
* ```
|
|
304
304
|
*/
|
|
305
|
-
declare class KeyTargetRateSampler implements Sampler {
|
|
305
|
+
declare class KeyTargetRateSampler implements Sampler$1 {
|
|
306
306
|
private readonly key;
|
|
307
307
|
private readonly targetPerKey;
|
|
308
308
|
private readonly windowMs;
|
|
@@ -345,9 +345,9 @@ declare class KeyTargetRateSampler implements Sampler {
|
|
|
345
345
|
* ])
|
|
346
346
|
* ```
|
|
347
347
|
*/
|
|
348
|
-
declare class CompositeSampler implements Sampler {
|
|
348
|
+
declare class CompositeSampler implements Sampler$1 {
|
|
349
349
|
private readonly samplers;
|
|
350
|
-
constructor(samplers: Sampler[]);
|
|
350
|
+
constructor(samplers: Sampler$1[]);
|
|
351
351
|
shouldSample(context: SamplingContext): boolean;
|
|
352
352
|
}
|
|
353
353
|
/**
|
|
@@ -365,7 +365,7 @@ declare class CompositeSampler implements Sampler {
|
|
|
365
365
|
* })
|
|
366
366
|
* ```
|
|
367
367
|
*/
|
|
368
|
-
declare class FeatureFlagSampler implements Sampler {
|
|
368
|
+
declare class FeatureFlagSampler implements Sampler$1 {
|
|
369
369
|
private baselineSampleRate;
|
|
370
370
|
private alwaysSampleFlags;
|
|
371
371
|
private extractFlags;
|
|
@@ -428,7 +428,7 @@ declare const samplingPresets: {
|
|
|
428
428
|
*
|
|
429
429
|
* @throws Error if preset is not recognized
|
|
430
430
|
*/
|
|
431
|
-
declare function resolveSamplingPreset(preset: SamplingPreset): Sampler;
|
|
431
|
+
declare function resolveSamplingPreset(preset: SamplingPreset): Sampler$1;
|
|
432
432
|
/**
|
|
433
433
|
* Create a Link from W3C trace context headers (e.g., from a message queue).
|
|
434
434
|
*
|
|
@@ -482,4 +482,4 @@ declare function extractLinksFromBatch(messages: UnknownRecord[], headersKey?: s
|
|
|
482
482
|
/** True when the request in flight asked for full-fidelity capture. */
|
|
483
483
|
declare function debugCaptureRequested(): boolean;
|
|
484
484
|
//#endregion
|
|
485
|
-
export { markForceKept as C, isForceKept as S, samplingPresets as T, UserIdSampler as _, AdaptiveSampler as a, extractLinksFromBatch as b, DeterministicSampler as c, NeverSampler as d, OperationResult as f, SamplingPreset as g, SamplingContext as h, AUTOTEL_SAMPLING_TAIL_KEEP as i, FeatureFlagSampler as l, Sampler as m, AUTOTEL_SAMPLING_RATE as n, AlwaysSampler as o, RandomSampler as p, AUTOTEL_SAMPLING_TAIL_EVALUATED as r, CompositeSampler as s, AUTOTEL_DEBUG_BAGGAGE_KEY as t, KeyTargetRateSampler as u, createLinkFromHeaders as v, resolveSamplingPreset as w, hashUnitInterval as x, debugCaptureRequested as y };
|
|
485
|
+
export { markForceKept as C, isForceKept as S, samplingPresets as T, UserIdSampler as _, AdaptiveSampler as a, extractLinksFromBatch as b, DeterministicSampler as c, NeverSampler as d, OperationResult as f, SamplingPreset as g, SamplingContext as h, AUTOTEL_SAMPLING_TAIL_KEEP as i, FeatureFlagSampler as l, Sampler$1 as m, AUTOTEL_SAMPLING_RATE as n, AlwaysSampler as o, RandomSampler as p, AUTOTEL_SAMPLING_TAIL_EVALUATED as r, CompositeSampler as s, AUTOTEL_DEBUG_BAGGAGE_KEY as t, KeyTargetRateSampler as u, createLinkFromHeaders as v, resolveSamplingPreset as w, hashUnitInterval as x, debugCaptureRequested as y };
|
package/dist/sampling.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-21HWbm7_.cjs');
|
|
3
3
|
|
|
4
4
|
exports.AUTOTEL_DEBUG_BAGGAGE_KEY = require_init.AUTOTEL_DEBUG_BAGGAGE_KEY;
|
|
5
5
|
exports.AUTOTEL_SAMPLING_RATE = require_init.AUTOTEL_SAMPLING_RATE;
|
package/dist/sampling.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as markForceKept, S as isForceKept, T as samplingPresets, _ as UserIdSampler, a as AdaptiveSampler, b as extractLinksFromBatch, c as DeterministicSampler, d as NeverSampler, f as OperationResult, g as SamplingPreset, h as SamplingContext, i as AUTOTEL_SAMPLING_TAIL_KEEP, l as FeatureFlagSampler, m as Sampler, n as AUTOTEL_SAMPLING_RATE, o as AlwaysSampler, p as RandomSampler, r as AUTOTEL_SAMPLING_TAIL_EVALUATED, s as CompositeSampler, t as AUTOTEL_DEBUG_BAGGAGE_KEY, u as KeyTargetRateSampler, v as createLinkFromHeaders, w as resolveSamplingPreset, x as hashUnitInterval, y as debugCaptureRequested } from "./sampling-
|
|
1
|
+
import { C as markForceKept, S as isForceKept, T as samplingPresets, _ as UserIdSampler, a as AdaptiveSampler, b as extractLinksFromBatch, c as DeterministicSampler, d as NeverSampler, f as OperationResult, g as SamplingPreset, h as SamplingContext, i as AUTOTEL_SAMPLING_TAIL_KEEP, l as FeatureFlagSampler, m as Sampler, n as AUTOTEL_SAMPLING_RATE, o as AlwaysSampler, p as RandomSampler, r as AUTOTEL_SAMPLING_TAIL_EVALUATED, s as CompositeSampler, t as AUTOTEL_DEBUG_BAGGAGE_KEY, u as KeyTargetRateSampler, v as createLinkFromHeaders, w as resolveSamplingPreset, x as hashUnitInterval, y as debugCaptureRequested } from "./sampling-DENUjT_8.cjs";
|
|
2
2
|
export { AUTOTEL_DEBUG_BAGGAGE_KEY, AUTOTEL_SAMPLING_RATE, AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AdaptiveSampler, AlwaysSampler, CompositeSampler, DeterministicSampler, FeatureFlagSampler, KeyTargetRateSampler, NeverSampler, OperationResult, RandomSampler, Sampler, SamplingContext, SamplingPreset, UserIdSampler, createLinkFromHeaders, debugCaptureRequested, extractLinksFromBatch, hashUnitInterval, isForceKept, markForceKept, resolveSamplingPreset, samplingPresets };
|
package/dist/sampling.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as markForceKept, S as isForceKept, T as samplingPresets, _ as UserIdSampler, a as AdaptiveSampler, b as extractLinksFromBatch, c as DeterministicSampler, d as NeverSampler, f as OperationResult, g as SamplingPreset, h as SamplingContext, i as AUTOTEL_SAMPLING_TAIL_KEEP, l as FeatureFlagSampler, m as Sampler, n as AUTOTEL_SAMPLING_RATE, o as AlwaysSampler, p as RandomSampler, r as AUTOTEL_SAMPLING_TAIL_EVALUATED, s as CompositeSampler, t as AUTOTEL_DEBUG_BAGGAGE_KEY, u as KeyTargetRateSampler, v as createLinkFromHeaders, w as resolveSamplingPreset, x as hashUnitInterval, y as debugCaptureRequested } from "./sampling-
|
|
1
|
+
import { C as markForceKept, S as isForceKept, T as samplingPresets, _ as UserIdSampler, a as AdaptiveSampler, b as extractLinksFromBatch, c as DeterministicSampler, d as NeverSampler, f as OperationResult, g as SamplingPreset, h as SamplingContext, i as AUTOTEL_SAMPLING_TAIL_KEEP, l as FeatureFlagSampler, m as Sampler, n as AUTOTEL_SAMPLING_RATE, o as AlwaysSampler, p as RandomSampler, r as AUTOTEL_SAMPLING_TAIL_EVALUATED, s as CompositeSampler, t as AUTOTEL_DEBUG_BAGGAGE_KEY, u as KeyTargetRateSampler, v as createLinkFromHeaders, w as resolveSamplingPreset, x as hashUnitInterval, y as debugCaptureRequested } from "./sampling-CZi7OM9u.js";
|
|
2
2
|
export { AUTOTEL_DEBUG_BAGGAGE_KEY, AUTOTEL_SAMPLING_RATE, AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AdaptiveSampler, AlwaysSampler, CompositeSampler, DeterministicSampler, FeatureFlagSampler, KeyTargetRateSampler, NeverSampler, OperationResult, RandomSampler, Sampler, SamplingContext, SamplingPreset, UserIdSampler, createLinkFromHeaders, debugCaptureRequested, extractLinksFromBatch, hashUnitInterval, isForceKept, markForceKept, resolveSamplingPreset, samplingPresets };
|
package/dist/sampling.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as FeatureFlagSampler, B as markForceKept, C as AUTOTEL_SAMPLING_RATE, D as AlwaysSampler, E as AdaptiveSampler, F as createLinkFromHeaders, H as samplingPresets, I as debugCaptureRequested, L as extractLinksFromBatch, M as NeverSampler, N as RandomSampler, O as CompositeSampler, P as UserIdSampler, R as hashUnitInterval, S as AUTOTEL_DEBUG_BAGGAGE_KEY, T as AUTOTEL_SAMPLING_TAIL_KEEP, V as resolveSamplingPreset, j as KeyTargetRateSampler, k as DeterministicSampler, w as AUTOTEL_SAMPLING_TAIL_EVALUATED, z as isForceKept } from "./init-
|
|
1
|
+
import { A as FeatureFlagSampler, B as markForceKept, C as AUTOTEL_SAMPLING_RATE, D as AlwaysSampler, E as AdaptiveSampler, F as createLinkFromHeaders, H as samplingPresets, I as debugCaptureRequested, L as extractLinksFromBatch, M as NeverSampler, N as RandomSampler, O as CompositeSampler, P as UserIdSampler, R as hashUnitInterval, S as AUTOTEL_DEBUG_BAGGAGE_KEY, T as AUTOTEL_SAMPLING_TAIL_KEEP, V as resolveSamplingPreset, j as KeyTargetRateSampler, k as DeterministicSampler, w as AUTOTEL_SAMPLING_TAIL_EVALUATED, z as isForceKept } from "./init-8SISAGdE.js";
|
|
2
2
|
|
|
3
3
|
export { AUTOTEL_DEBUG_BAGGAGE_KEY, AUTOTEL_SAMPLING_RATE, AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AdaptiveSampler, AlwaysSampler, CompositeSampler, DeterministicSampler, FeatureFlagSampler, KeyTargetRateSampler, NeverSampler, RandomSampler, UserIdSampler, createLinkFromHeaders, debugCaptureRequested, extractLinksFromBatch, hashUnitInterval, isForceKept, markForceKept, resolveSamplingPreset, samplingPresets };
|
package/dist/security-schema.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_registry = require('./registry-
|
|
2
|
+
const require_registry = require('./registry-B3ZJmUtU.cjs');
|
|
3
3
|
|
|
4
4
|
//#region src/semantic-conventions.ts
|
|
5
5
|
function httpRequestHeaderAttribute(name) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_values = require('./values-
|
|
3
|
-
const require_functional = require('./functional-
|
|
4
|
-
const require_trace_factory_validation = require('./trace-factory-validation-
|
|
2
|
+
const require_values = require('./values-AxGpgYBA.cjs');
|
|
3
|
+
const require_functional = require('./functional-u5Qwjray.cjs');
|
|
4
|
+
const require_trace_factory_validation = require('./trace-factory-validation-CHU1WcjK.cjs');
|
|
5
5
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
6
6
|
|
|
7
7
|
//#region src/semantic-helpers.ts
|
package/dist/semantic-helpers.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as toAttributeValue, g as nonEmptyString, s as asRecord } from "./values-xBtdXtjA.js";
|
|
2
|
-
import { l as withTracing } from "./functional-
|
|
2
|
+
import { l as withTracing } from "./functional-CC2BFGAO.js";
|
|
3
3
|
import { t as assertTraceFactory } from "./trace-factory-validation-BjVAinz6.js";
|
|
4
4
|
import { SpanKind } from "@opentelemetry/api";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReadableSpan, Span, SpanProcessor } from "@opentelemetry/sdk-trace-base";
|
|
2
1
|
import { Context } from "@opentelemetry/api";
|
|
2
|
+
import { ReadableSpan, Span as Span$1, SpanProcessor } from "@opentelemetry/sdk-trace-base";
|
|
3
3
|
//#region src/span-name-normalizer.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Function to normalize a span name
|
|
@@ -56,7 +56,7 @@ declare class SpanNameNormalizingProcessor implements SpanProcessor {
|
|
|
56
56
|
/**
|
|
57
57
|
* Normalize span name on start (when Span is mutable)
|
|
58
58
|
*/
|
|
59
|
-
onStart(span: Span, parentContext: Context): void;
|
|
59
|
+
onStart(span: Span$1, parentContext: Context): void;
|
|
60
60
|
/**
|
|
61
61
|
* Pass through onEnd unchanged
|
|
62
62
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as SpanNameNormalizerPreset, i as SpanNameNormalizerFn, n as NORMALIZER_PRESETS, o as SpanNameNormalizingProcessor, r as SpanNameNormalizerConfig, s as SpanNameNormalizingProcessorOptions, t as NORMALIZER_PATTERNS } from "./span-name-normalizer-
|
|
1
|
+
import { a as SpanNameNormalizerPreset, i as SpanNameNormalizerFn, n as NORMALIZER_PRESETS, o as SpanNameNormalizingProcessor, r as SpanNameNormalizerConfig, s as SpanNameNormalizingProcessorOptions, t as NORMALIZER_PATTERNS } from "./span-name-normalizer-DHcg1bSP.js";
|
|
2
2
|
export { NORMALIZER_PATTERNS, NORMALIZER_PRESETS, SpanNameNormalizerConfig, SpanNameNormalizerFn, SpanNameNormalizerPreset, SpanNameNormalizingProcessor, SpanNameNormalizingProcessorOptions };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('./rolldown-runtime-
|
|
2
|
-
const require_values = require('./values-
|
|
1
|
+
const require_rolldown_runtime = require('./rolldown-runtime-C24Yb2bl.cjs');
|
|
2
|
+
const require_values = require('./values-AxGpgYBA.cjs');
|
|
3
3
|
let node_crypto = require("node:crypto");
|
|
4
4
|
node_crypto = require_rolldown_runtime.__toESM(node_crypto, 1);
|
|
5
5
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ReadableSpan, Span, SpanProcessor } from "@opentelemetry/sdk-trace-base";
|
|
2
1
|
import { Context } from "@opentelemetry/api";
|
|
2
|
+
import { ReadableSpan, Span as Span$1, SpanProcessor } from "@opentelemetry/sdk-trace-base";
|
|
3
3
|
//#region src/tail-sampling-processor.d.ts
|
|
4
4
|
declare class TailSamplingSpanProcessor implements SpanProcessor {
|
|
5
5
|
private wrappedProcessor;
|
|
6
6
|
constructor(wrappedProcessor: SpanProcessor);
|
|
7
|
-
onStart(span: Span, parentContext: Context): void;
|
|
7
|
+
onStart(span: Span$1, parentContext: Context): void;
|
|
8
8
|
onEnd(span: ReadableSpan): void;
|
|
9
9
|
forceFlush(): Promise<void>;
|
|
10
10
|
shutdown(): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_values = require('./values-
|
|
2
|
+
const require_values = require('./values-AxGpgYBA.cjs');
|
|
3
3
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
4
4
|
|
|
5
5
|
//#region src/test-span-collector.ts
|
package/dist/testing.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_rolldown_runtime = require('./rolldown-runtime-
|
|
3
|
-
const require_values = require('./values-
|
|
2
|
+
const require_rolldown_runtime = require('./rolldown-runtime-C24Yb2bl.cjs');
|
|
3
|
+
const require_values = require('./values-AxGpgYBA.cjs');
|
|
4
4
|
const require_config = require('./config.cjs');
|
|
5
5
|
const require_event_testing = require('./event-testing.cjs');
|
|
6
6
|
const require_test_span_collector = require('./test-span-collector.cjs');
|
|
7
7
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
8
|
+
let _opentelemetry_context_async_hooks = require("@opentelemetry/context-async-hooks");
|
|
8
9
|
let node_async_hooks = require("node:async_hooks");
|
|
9
10
|
node_async_hooks = require_rolldown_runtime.__toESM(node_async_hooks, 1);
|
|
10
|
-
let _opentelemetry_context_async_hooks = require("@opentelemetry/context-async-hooks");
|
|
11
11
|
|
|
12
12
|
//#region src/memory-exporter.ts
|
|
13
13
|
function toRecordedSpan(span) {
|
package/dist/testing.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { t as UnknownRecord } from "./values-CeMH-mYG.js";
|
|
|
2
2
|
import { s as Logger } from "./logger-S1Fgl0g3.js";
|
|
3
3
|
import { a as EventsValue, c as createEventCollector, i as EventsOutcome, n as EventData, o as assertEventTracked, r as EventsFunnelStep, s as assertOutcomeTracked, t as EventCollector } from "./event-testing-CkPgV3Ii.js";
|
|
4
4
|
import { SerializedSpan, TestSpanCollector, serializeSpan } from "./test-span-collector.js";
|
|
5
|
-
import { SpanExporter } from "@opentelemetry/sdk-trace-base";
|
|
6
5
|
import { Attributes, Link, SpanKind, SpanStatus, SpanStatusCode } from "@opentelemetry/api";
|
|
6
|
+
import { SpanExporter } from "@opentelemetry/sdk-trace-base";
|
|
7
7
|
//#region src/memory-exporter.d.ts
|
|
8
8
|
/** One finished span, flattened to the fields an assertion usually wants. */
|
|
9
9
|
interface RecordedSpan {
|
package/dist/testing.js
CHANGED
|
@@ -3,8 +3,8 @@ import { configure } from "./config.js";
|
|
|
3
3
|
import { assertEventTracked, assertOutcomeTracked, createEventCollector } from "./event-testing.js";
|
|
4
4
|
import { TestSpanCollector, serializeSpan } from "./test-span-collector.js";
|
|
5
5
|
import { ROOT_CONTEXT, SpanStatusCode, context, createContextKey, trace } from "@opentelemetry/api";
|
|
6
|
-
import * as nodeAsyncHooks from "node:async_hooks";
|
|
7
6
|
import { AsyncLocalStorageContextManager } from "@opentelemetry/context-async-hooks";
|
|
7
|
+
import * as nodeAsyncHooks from "node:async_hooks";
|
|
8
8
|
|
|
9
9
|
//#region src/memory-exporter.ts
|
|
10
10
|
function toRecordedSpan(span) {
|
package/dist/trace-helpers.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_values = require('./values-
|
|
3
|
-
const require_node_require = require('./node-require-
|
|
2
|
+
const require_values = require('./values-AxGpgYBA.cjs');
|
|
3
|
+
const require_node_require = require('./node-require-BPsB09eC.cjs');
|
|
4
4
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
5
5
|
|
|
6
6
|
//#region src/trace-helpers.ts
|
package/dist/tracer-provider.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_values = require('./values-
|
|
2
|
+
const require_values = require('./values-AxGpgYBA.cjs');
|
|
3
3
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
4
4
|
|
|
5
5
|
//#region src/tracer-provider.ts
|
package/dist/validate.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_values = require('./values-
|
|
3
|
-
const require_structured_error = require('./structured-error-
|
|
4
|
-
const require_stable_hash = require('./stable-hash-
|
|
2
|
+
const require_values = require('./values-AxGpgYBA.cjs');
|
|
3
|
+
const require_structured_error = require('./structured-error-DynjWTTu.cjs');
|
|
4
|
+
const require_stable_hash = require('./stable-hash-sLi1o4jj.cjs');
|
|
5
5
|
const require_metric_helpers = require('./metric-helpers.cjs');
|
|
6
6
|
const require_validation_attributes = require('./validation-attributes.cjs');
|
|
7
7
|
let _opentelemetry_api = require("@opentelemetry/api");
|
package/dist/webhook.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_structured_error = require('./structured-error-
|
|
3
|
-
const require_functional = require('./functional-
|
|
4
|
-
const require_correlated_events = require('./correlated-events-
|
|
2
|
+
const require_structured_error = require('./structured-error-DynjWTTu.cjs');
|
|
3
|
+
const require_functional = require('./functional-u5Qwjray.cjs');
|
|
4
|
+
const require_correlated_events = require('./correlated-events-DE_4A3oD.cjs');
|
|
5
5
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
6
6
|
|
|
7
7
|
//#region src/webhook.ts
|
|
@@ -150,7 +150,7 @@ var InMemoryTraceContextStore = class {
|
|
|
150
150
|
* ```
|
|
151
151
|
*/
|
|
152
152
|
function createParkingLot(config) {
|
|
153
|
-
const { store, defaultTTLMs =
|
|
153
|
+
const { store, defaultTTLMs = 864e5, keyPrefix = "parkingLot:", autoDeleteOnRetrieve = true, onMiss } = config;
|
|
154
154
|
/**
|
|
155
155
|
* Get current span context from active context
|
|
156
156
|
*/
|
|
@@ -179,15 +179,18 @@ function createParkingLot(config) {
|
|
|
179
179
|
};
|
|
180
180
|
await store.save(fullKey, storedContext);
|
|
181
181
|
const activeSpan = _opentelemetry_api.trace.getActiveSpan();
|
|
182
|
-
if (activeSpan)
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
182
|
+
if (activeSpan) {
|
|
183
|
+
const parkAttrs = {
|
|
184
|
+
"parking_lot.correlation_key": correlationKey,
|
|
185
|
+
"parking_lot.ttl_ms": defaultTTLMs,
|
|
186
|
+
...metadata && Object.fromEntries(Object.entries(metadata).map(([k, v]) => [`parking_lot.metadata.${k}`, v]))
|
|
187
|
+
};
|
|
188
|
+
require_correlated_events.emitCorrelatedEvent({
|
|
189
|
+
setAttribute: (k, v) => activeSpan.setAttribute(k, v),
|
|
190
|
+
setAttributes: (a) => activeSpan.setAttributes(a),
|
|
191
|
+
addEvent: (n, a) => activeSpan.addEvent(n, a)
|
|
192
|
+
}, "trace_context_parked", parkAttrs);
|
|
193
|
+
}
|
|
191
194
|
return correlationKey;
|
|
192
195
|
},
|
|
193
196
|
async retrieve(correlationKey) {
|
package/dist/webhook.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as recordStructuredError } from "./structured-error-Y9y-1Pae.js";
|
|
2
|
-
import { l as withTracing } from "./functional-
|
|
2
|
+
import { l as withTracing } from "./functional-CC2BFGAO.js";
|
|
3
3
|
import { t as emitCorrelatedEvent } from "./correlated-events-BfpH5uS-.js";
|
|
4
4
|
import { SpanKind, trace } from "@opentelemetry/api";
|
|
5
5
|
|
|
@@ -149,7 +149,7 @@ var InMemoryTraceContextStore = class {
|
|
|
149
149
|
* ```
|
|
150
150
|
*/
|
|
151
151
|
function createParkingLot(config) {
|
|
152
|
-
const { store, defaultTTLMs =
|
|
152
|
+
const { store, defaultTTLMs = 864e5, keyPrefix = "parkingLot:", autoDeleteOnRetrieve = true, onMiss } = config;
|
|
153
153
|
/**
|
|
154
154
|
* Get current span context from active context
|
|
155
155
|
*/
|
|
@@ -178,15 +178,18 @@ function createParkingLot(config) {
|
|
|
178
178
|
};
|
|
179
179
|
await store.save(fullKey, storedContext);
|
|
180
180
|
const activeSpan = trace.getActiveSpan();
|
|
181
|
-
if (activeSpan)
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
181
|
+
if (activeSpan) {
|
|
182
|
+
const parkAttrs = {
|
|
183
|
+
"parking_lot.correlation_key": correlationKey,
|
|
184
|
+
"parking_lot.ttl_ms": defaultTTLMs,
|
|
185
|
+
...metadata && Object.fromEntries(Object.entries(metadata).map(([k, v]) => [`parking_lot.metadata.${k}`, v]))
|
|
186
|
+
};
|
|
187
|
+
emitCorrelatedEvent({
|
|
188
|
+
setAttribute: (k, v) => activeSpan.setAttribute(k, v),
|
|
189
|
+
setAttributes: (a) => activeSpan.setAttributes(a),
|
|
190
|
+
addEvent: (n, a) => activeSpan.addEvent(n, a)
|
|
191
|
+
}, "trace_context_parked", parkAttrs);
|
|
192
|
+
}
|
|
190
193
|
return correlationKey;
|
|
191
194
|
},
|
|
192
195
|
async retrieve(correlationKey) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_values = require('./values-
|
|
3
|
-
const require_functional = require('./functional-
|
|
4
|
-
const require_correlated_events = require('./correlated-events-
|
|
2
|
+
const require_values = require('./values-AxGpgYBA.cjs');
|
|
3
|
+
const require_functional = require('./functional-u5Qwjray.cjs');
|
|
4
|
+
const require_correlated_events = require('./correlated-events-DE_4A3oD.cjs');
|
|
5
5
|
const require_business_baggage = require('./business-baggage.cjs');
|
|
6
6
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
7
7
|
|
|
@@ -507,9 +507,7 @@ function parseWorkflowFromBaggage(baggageHeader) {
|
|
|
507
507
|
case "workflow.initiatedBy":
|
|
508
508
|
values.initiatedBy = decodedValue;
|
|
509
509
|
break;
|
|
510
|
-
case "workflow.startedAt":
|
|
511
|
-
values.startedAt = decodedValue;
|
|
512
|
-
break;
|
|
510
|
+
case "workflow.startedAt": values.startedAt = decodedValue;
|
|
513
511
|
}
|
|
514
512
|
}
|
|
515
513
|
return Object.keys(values).length > 0 ? values : null;
|