autotel-schema 2.0.4 → 3.0.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/LICENSE +191 -21
- package/README.md +62 -3
- package/dist/contract-Ymh_Q37N.d.cts +305 -0
- package/dist/contract-Ymh_Q37N.d.cts.map +1 -0
- package/dist/contract-Ymh_Q37N.d.ts +305 -0
- package/dist/contract-Ymh_Q37N.d.ts.map +1 -0
- package/dist/{diff-D7qkNn0-.d.ts → diff-B1DoDhUn.d.ts} +2 -2
- package/dist/{diff-D7qkNn0-.d.ts.map → diff-B1DoDhUn.d.ts.map} +1 -1
- package/dist/{diff-BQPh72vY.d.cts → diff-Cjs6OPFN.d.cts} +2 -2
- package/dist/{diff-BQPh72vY.d.cts.map → diff-Cjs6OPFN.d.cts.map} +1 -1
- package/dist/diff.d.cts +1 -1
- package/dist/diff.d.ts +1 -1
- package/dist/index.cjs +8 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/processor-BPp_DewZ.js +635 -0
- package/dist/processor-BPp_DewZ.js.map +1 -0
- package/dist/{processor-CkBkzK6y.d.cts → processor-BsO4WD73.d.cts} +2 -2
- package/dist/{processor-CkBkzK6y.d.cts.map → processor-BsO4WD73.d.cts.map} +1 -1
- package/dist/{processor-CK7LAdaa.d.ts → processor-CIEfOOYi.d.ts} +2 -2
- package/dist/{processor-CK7LAdaa.d.ts.map → processor-CIEfOOYi.d.ts.map} +1 -1
- package/dist/processor-Gu8Yl_dS.cjs +737 -0
- package/dist/processor-Gu8Yl_dS.cjs.map +1 -0
- package/dist/processor.cjs +1 -1
- package/dist/processor.d.cts +1 -1
- package/dist/processor.d.ts +1 -1
- package/dist/processor.js +1 -1
- package/package.json +3 -3
- package/dist/contract-DGjxR9nb.d.cts +0 -123
- package/dist/contract-DGjxR9nb.d.cts.map +0 -1
- package/dist/contract-DGjxR9nb.d.ts +0 -123
- package/dist/contract-DGjxR9nb.d.ts.map +0 -1
- package/dist/processor-D93TAXvZ.cjs +0 -366
- package/dist/processor-D93TAXvZ.cjs.map +0 -1
- package/dist/processor-FmvKYllX.js +0 -306
- package/dist/processor-FmvKYllX.js.map +0 -1
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
//#region src/scenario.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Scenario conformance — a flow-level contract checked against collected spans.
|
|
4
|
+
*
|
|
5
|
+
* Where {@link ./contract} declares the *surface* of your telemetry (span
|
|
6
|
+
* names + attributes), a scenario declares the *behaviour* of one exercised
|
|
7
|
+
* flow: which events must fire, how many times, in what parent/child
|
|
8
|
+
* topology, and — critically — **when the observation is complete**, because
|
|
9
|
+
* for an async flow a missing event and an event that has not fired *yet* are
|
|
10
|
+
* indistinguishable without a completion boundary.
|
|
11
|
+
*
|
|
12
|
+
* Checking a scenario yields one of three outcomes, not two:
|
|
13
|
+
*
|
|
14
|
+
* - `conformant` — the boundary closed and the signature satisfied the contract
|
|
15
|
+
* - `non-conformant` — required behaviour was missing or invalid (definitive)
|
|
16
|
+
* - `incomplete` — the boundary did not close within the observation budget;
|
|
17
|
+
* infrastructure slowness is *not* reported as behavioural regression
|
|
18
|
+
*
|
|
19
|
+
* Absence is definitive only after closure (closed-world semantics). Excess
|
|
20
|
+
* is definitive immediately: a `max` cardinality violation or an unexpected
|
|
21
|
+
* error span fails the check even while the flow is still open.
|
|
22
|
+
*
|
|
23
|
+
* Undeclared events are **additive**: reported in `result.additions`, never a
|
|
24
|
+
* failure — improving instrumentation must not break CI.
|
|
25
|
+
*
|
|
26
|
+
* The span input shape is structurally compatible with `SerializedSpan` from
|
|
27
|
+
* `autotel/test-span-collector`, so a test can feed a collector's output
|
|
28
|
+
* straight in. Like the rest of this package the module is dependency-free —
|
|
29
|
+
* usable from vitest, a deferred reconciliation job, or a CLI alike.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const result = await checkScenario(
|
|
34
|
+
* contract.scenarios!['transfer.accept'],
|
|
35
|
+
* () => collector.peekTrace(traceId),
|
|
36
|
+
* { name: 'transfer.accept' },
|
|
37
|
+
* );
|
|
38
|
+
* if (result.outcome === 'non-conformant') throw new Error(formatScenarioResult(result));
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
/** A finished span/event as the scenario checker sees it. */
|
|
42
|
+
interface ScenarioSpan {
|
|
43
|
+
spanId: string;
|
|
44
|
+
parentSpanId?: string;
|
|
45
|
+
name: string;
|
|
46
|
+
status: 'ok' | 'error' | 'unset';
|
|
47
|
+
attributes?: Record<string, unknown>;
|
|
48
|
+
/** Epoch ms. Optional — used by {@link proposeScenario} to suggest budgets. */
|
|
49
|
+
startTimeMs?: number;
|
|
50
|
+
durationMs?: number;
|
|
51
|
+
}
|
|
52
|
+
/** Canonical cardinality range. `max` omitted = unbounded. */
|
|
53
|
+
interface Cardinality {
|
|
54
|
+
min: number;
|
|
55
|
+
max?: number;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Parse a cardinality shorthand: `'exactly 1'`, `'at least 1'`, `'at most 3'`,
|
|
59
|
+
* `'0..1'`, `'2..'`. A canonical {@link Cardinality} passes through.
|
|
60
|
+
*/
|
|
61
|
+
declare function parseCardinality(input: string | Cardinality): Cardinality;
|
|
62
|
+
/** Declaration for one event (span name) a scenario expects to observe. */
|
|
63
|
+
interface ScenarioEventSpec {
|
|
64
|
+
/** How many occurrences are permitted. Defaults to `'at least 1'`. */
|
|
65
|
+
cardinality?: string | Cardinality;
|
|
66
|
+
/**
|
|
67
|
+
* Expected terminal status. Defaults to non-error: an `error` status on an
|
|
68
|
+
* event not declared `status: 'error'` is a definitive violation.
|
|
69
|
+
*/
|
|
70
|
+
status?: 'ok' | 'error';
|
|
71
|
+
description?: string;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* How the observed phase of a scenario becomes complete. Every async
|
|
75
|
+
* conformance check must declare this — it is what makes absence meaningful.
|
|
76
|
+
*
|
|
77
|
+
* `externally-reconciled` never closes in-process: the phase is verified
|
|
78
|
+
* elsewhere (a deferred reconciliation job keyed by a durable business ID),
|
|
79
|
+
* so an in-process check reports at most definitive violations, never absence.
|
|
80
|
+
*/
|
|
81
|
+
type CompletionBoundary = {
|
|
82
|
+
mode: 'root-span-closed';
|
|
83
|
+
observationBudgetMs: number;
|
|
84
|
+
} | {
|
|
85
|
+
mode: 'terminal-event';
|
|
86
|
+
event: string;
|
|
87
|
+
observationBudgetMs: number;
|
|
88
|
+
} | {
|
|
89
|
+
mode: 'externally-reconciled';
|
|
90
|
+
reconciliationDeadlineMs: number;
|
|
91
|
+
};
|
|
92
|
+
/** The flow-level contract for one exercised scenario (or one phase of one). */
|
|
93
|
+
interface ScenarioSpec {
|
|
94
|
+
description?: string;
|
|
95
|
+
/** When the observed phase is complete. See {@link CompletionBoundary}. */
|
|
96
|
+
completion: CompletionBoundary;
|
|
97
|
+
/** Events this scenario must (or may) observe, keyed by span name. */
|
|
98
|
+
events: Record<string, ScenarioEventSpec>;
|
|
99
|
+
/**
|
|
100
|
+
* Required ancestor→descendant edges by span name. Ancestor — not immediate
|
|
101
|
+
* parent — so a framework span inserted between the two does not break the
|
|
102
|
+
* contract (canonicalisation: infrastructure spans are not behaviour).
|
|
103
|
+
*/
|
|
104
|
+
edges?: ReadonlyArray<readonly [string, string]>;
|
|
105
|
+
/** Edges that may appear but are not required. Documented, never enforced. */
|
|
106
|
+
optionalEdges?: ReadonlyArray<readonly [string, string]>;
|
|
107
|
+
}
|
|
108
|
+
type ScenarioOutcome = 'conformant' | 'non-conformant' | 'incomplete';
|
|
109
|
+
type ScenarioViolationCode = 'missing_event' | 'cardinality_violation' | 'missing_edge' | 'unexpected_error';
|
|
110
|
+
/** A definitive (breaking) discrepancy between observed spans and the scenario. */
|
|
111
|
+
interface ScenarioViolation {
|
|
112
|
+
code: ScenarioViolationCode;
|
|
113
|
+
event?: string;
|
|
114
|
+
edge?: readonly [string, string];
|
|
115
|
+
message: string;
|
|
116
|
+
}
|
|
117
|
+
/** An additive observation — reported, never a failure. */
|
|
118
|
+
interface ScenarioAddition {
|
|
119
|
+
code: 'undeclared_event';
|
|
120
|
+
event: string;
|
|
121
|
+
count: number;
|
|
122
|
+
message: string;
|
|
123
|
+
}
|
|
124
|
+
interface ScenarioResult {
|
|
125
|
+
scenario: string;
|
|
126
|
+
outcome: ScenarioOutcome;
|
|
127
|
+
/** Whether the completion boundary closed within the observation window. */
|
|
128
|
+
closed: boolean;
|
|
129
|
+
violations: ScenarioViolation[];
|
|
130
|
+
additions: ScenarioAddition[];
|
|
131
|
+
/** The evaluated snapshot — assert business values on this in your test. */
|
|
132
|
+
spans: ScenarioSpan[];
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Structural validation for one scenario declaration. Called by
|
|
136
|
+
* `defineContract()` so a malformed scenario throws at module load.
|
|
137
|
+
*/
|
|
138
|
+
declare function validateScenarioSpec(name: string, spec: ScenarioSpec): void;
|
|
139
|
+
/** Whether the scenario's completion boundary has closed for these spans. */
|
|
140
|
+
declare function isScenarioClosed(spec: ScenarioSpec, spans: readonly ScenarioSpan[]): boolean;
|
|
141
|
+
interface EvaluateScenarioOptions {
|
|
142
|
+
/** Name used in the result/messages. Defaults to `'scenario'`. */
|
|
143
|
+
name?: string;
|
|
144
|
+
/** Override closure detection (e.g. the poller already knows). */
|
|
145
|
+
closed?: boolean;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Pure three-state evaluation of collected spans against a scenario.
|
|
149
|
+
*
|
|
150
|
+
* Definitive at any time (no closure needed): an unexpected error status, a
|
|
151
|
+
* `max` cardinality exceeded. Meaningful only after closure: a missing event,
|
|
152
|
+
* a `min` cardinality not reached, a missing required edge.
|
|
153
|
+
*/
|
|
154
|
+
declare function evaluateScenario(spec: ScenarioSpec, spans: readonly ScenarioSpan[], options?: EvaluateScenarioOptions): ScenarioResult;
|
|
155
|
+
interface CheckScenarioOptions {
|
|
156
|
+
/** Name used in the result/messages. Defaults to `'scenario'`. */
|
|
157
|
+
name?: string;
|
|
158
|
+
/** Poll interval while waiting for closure. Default 25ms. */
|
|
159
|
+
pollIntervalMs?: number;
|
|
160
|
+
/** Override the boundary's observation budget (how long the checker waits). */
|
|
161
|
+
budgetMs?: number;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Poll `getSpans` until the scenario's completion boundary closes, a
|
|
165
|
+
* definitive violation appears (fail fast), or the observation budget is
|
|
166
|
+
* spent — then evaluate.
|
|
167
|
+
*
|
|
168
|
+
* The observation budget bounds how long *this checker* waits; it is not a
|
|
169
|
+
* statement that the operation is allowed to take that long. Express a
|
|
170
|
+
* business deadline as its own assertion on the returned spans.
|
|
171
|
+
*
|
|
172
|
+
* An `externally-reconciled` boundary never closes in-process: the check
|
|
173
|
+
* evaluates the current snapshot once and reports `incomplete` unless a
|
|
174
|
+
* definitive violation is already present.
|
|
175
|
+
*/
|
|
176
|
+
declare function checkScenario(spec: ScenarioSpec, getSpans: () => readonly ScenarioSpan[] | Promise<readonly ScenarioSpan[]>, options?: CheckScenarioOptions): Promise<ScenarioResult>;
|
|
177
|
+
/** Human-readable summary of a scenario result, for assertion messages. */
|
|
178
|
+
declare function formatScenarioResult(result: ScenarioResult): string;
|
|
179
|
+
interface ScenarioProposal {
|
|
180
|
+
scenario: ScenarioSpec;
|
|
181
|
+
/** Review annotations — what was observed and what to double-check. */
|
|
182
|
+
notes: string[];
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Draft a scenario contract from repeated controlled runs (record → propose →
|
|
186
|
+
* commit). Events stable across every run become required with their observed
|
|
187
|
+
* cardinality; variable ones get a range and a review note. The draft is a
|
|
188
|
+
* starting point for human curation, not a finished contract.
|
|
189
|
+
*/
|
|
190
|
+
declare function proposeScenario(runs: ReadonlyArray<ReadonlyArray<ScenarioSpan>>, options?: {
|
|
191
|
+
name?: string;
|
|
192
|
+
}): ScenarioProposal;
|
|
193
|
+
//#endregion
|
|
194
|
+
//#region src/contract.d.ts
|
|
195
|
+
/** Scalar and array attribute types permitted on a span (OTLP value shapes). */
|
|
196
|
+
type AttributeType = 'string' | 'number' | 'boolean' | 'string[]' | 'number[]' | 'boolean[]';
|
|
197
|
+
declare const ATTRIBUTE_TYPES: readonly AttributeType[];
|
|
198
|
+
/**
|
|
199
|
+
* Lifecycle of a span or attribute, mirroring how the OpenTelemetry semantic
|
|
200
|
+
* conventions stage their own surface. `stable` is a promise to agent readers
|
|
201
|
+
* that the name will not change without a major contract bump.
|
|
202
|
+
*/
|
|
203
|
+
type Stability = 'stable' | 'experimental' | 'deprecated';
|
|
204
|
+
declare const STABILITIES: readonly Stability[];
|
|
205
|
+
/** Declaration for a single attribute key on a span. */
|
|
206
|
+
interface AttributeSpec {
|
|
207
|
+
/** OTLP value shape. Validated at runtime against the emitted value. */
|
|
208
|
+
type: AttributeType;
|
|
209
|
+
/** Lifecycle stage. Defaults to `stable`. */
|
|
210
|
+
stability?: Stability;
|
|
211
|
+
/** When `true`, the attribute must be present on every matching span. */
|
|
212
|
+
required?: boolean;
|
|
213
|
+
/** Human/agent-facing description of what the attribute means. */
|
|
214
|
+
description?: string;
|
|
215
|
+
/**
|
|
216
|
+
* Marks an attribute as intentionally high-cardinality (user id, sender
|
|
217
|
+
* domain, request id). For an agent reader these are the single most useful
|
|
218
|
+
* fields on a trace, so {@link ./redaction.highCardinalityKeys} surfaces them
|
|
219
|
+
* as a *protect* list — telling redactors/normalizers NOT to strip them.
|
|
220
|
+
*/
|
|
221
|
+
highCardinality?: boolean;
|
|
222
|
+
/** Closed set of permitted values. Reported as `enum_violation` if exceeded. */
|
|
223
|
+
enum?: readonly (string | number)[];
|
|
224
|
+
/** Set when `stability: 'deprecated'`; explains what to use instead. */
|
|
225
|
+
replacedBy?: string;
|
|
226
|
+
/** Free-text note shown alongside deprecation warnings. */
|
|
227
|
+
deprecatedReason?: string;
|
|
228
|
+
}
|
|
229
|
+
/** Declaration for a single span name your service emits. */
|
|
230
|
+
interface SpanSpec {
|
|
231
|
+
/** Human/agent-facing description of when this span is produced. */
|
|
232
|
+
description?: string;
|
|
233
|
+
/** Lifecycle stage. Defaults to `stable`. */
|
|
234
|
+
stability?: Stability;
|
|
235
|
+
/** Attributes specific to this span, keyed by attribute name. */
|
|
236
|
+
attributes?: Record<string, AttributeSpec>;
|
|
237
|
+
/**
|
|
238
|
+
* When `true`, attributes not declared here are allowed without an
|
|
239
|
+
* `unknown_attribute` violation. Defaults to the contract-level setting.
|
|
240
|
+
*/
|
|
241
|
+
additionalAttributes?: boolean;
|
|
242
|
+
}
|
|
243
|
+
/** The full telemetry contract for one service. */
|
|
244
|
+
interface TelemetryContract {
|
|
245
|
+
/** `service.name` this contract describes. */
|
|
246
|
+
service: string;
|
|
247
|
+
/**
|
|
248
|
+
* Semver of the *contract itself* (not the app). Bumped when the trace
|
|
249
|
+
* surface changes; surfaced to readers as the `telemetry.schema.version`
|
|
250
|
+
* resource attribute via {@link ./attrs.SCHEMA_ATTRS}.
|
|
251
|
+
*/
|
|
252
|
+
version: string;
|
|
253
|
+
/** Spans this service emits, keyed by span name. */
|
|
254
|
+
spans: Record<string, SpanSpec>;
|
|
255
|
+
/** Attributes permitted on *any* span (e.g. `user.id`, `tenant.id`). */
|
|
256
|
+
commonAttributes?: Record<string, AttributeSpec>;
|
|
257
|
+
/**
|
|
258
|
+
* Default for `SpanSpec.additionalAttributes` when a span does not set it.
|
|
259
|
+
* Defaults to `false` (declared-only — the stricter, agent-friendlier mode).
|
|
260
|
+
*/
|
|
261
|
+
additionalAttributes?: boolean;
|
|
262
|
+
/**
|
|
263
|
+
* Flow-level scenario contracts, keyed by scenario name: which events one
|
|
264
|
+
* exercised flow must emit, their cardinality and topology, and when the
|
|
265
|
+
* observation is complete. Checked with `checkScenario` ({@link ./scenario}).
|
|
266
|
+
*/
|
|
267
|
+
scenarios?: Record<string, ScenarioSpec>;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Validate and freeze a telemetry contract. Throws on structural mistakes
|
|
271
|
+
* (bad semver, unknown attribute type, deprecation with no replacement) so the
|
|
272
|
+
* contract fails loudly at module load, not silently at runtime.
|
|
273
|
+
*
|
|
274
|
+
* @example
|
|
275
|
+
* ```ts
|
|
276
|
+
* export const contract = defineContract({
|
|
277
|
+
* service: 'checkout',
|
|
278
|
+
* version: '1.2.0',
|
|
279
|
+
* commonAttributes: {
|
|
280
|
+
* 'user.id': { type: 'string', highCardinality: true, description: 'Authenticated user' },
|
|
281
|
+
* },
|
|
282
|
+
* spans: {
|
|
283
|
+
* 'checkout.charge': {
|
|
284
|
+
* description: 'Charge a payment method',
|
|
285
|
+
* attributes: {
|
|
286
|
+
* 'payment.provider': { type: 'string', required: true, enum: ['stripe', 'paypal'] },
|
|
287
|
+
* 'payment.amount_cents': { type: 'number', required: true },
|
|
288
|
+
* },
|
|
289
|
+
* },
|
|
290
|
+
* },
|
|
291
|
+
* });
|
|
292
|
+
* ```
|
|
293
|
+
*/
|
|
294
|
+
declare function defineContract(contract: TelemetryContract): TelemetryContract;
|
|
295
|
+
/**
|
|
296
|
+
* Resolve the effective attribute spec for `key` on `spanName`: span-specific
|
|
297
|
+
* attributes win over common attributes. Returns `undefined` when the key is
|
|
298
|
+
* declared nowhere.
|
|
299
|
+
*/
|
|
300
|
+
declare function resolveAttributeSpec(contract: TelemetryContract, spanName: string, key: string): AttributeSpec | undefined;
|
|
301
|
+
/** Whether attributes outside the declared set are tolerated for a span. */
|
|
302
|
+
declare function allowsAdditionalAttributes(contract: TelemetryContract, spanName: string): boolean;
|
|
303
|
+
//#endregion
|
|
304
|
+
export { validateScenarioSpec as A, ScenarioViolationCode as C, isScenarioClosed as D, formatScenarioResult as E, parseCardinality as O, ScenarioViolation as S, evaluateScenario as T, ScenarioOutcome as _, SpanSpec as a, ScenarioSpan as b, allowsAdditionalAttributes as c, Cardinality as d, CheckScenarioOptions as f, ScenarioEventSpec as g, ScenarioAddition as h, STABILITIES as i, proposeScenario as k, defineContract as l, EvaluateScenarioOptions as m, AttributeSpec as n, Stability as o, CompletionBoundary as p, AttributeType as r, TelemetryContract as s, ATTRIBUTE_TYPES as t, resolveAttributeSpec as u, ScenarioProposal as v, checkScenario as w, ScenarioSpec as x, ScenarioResult as y };
|
|
305
|
+
//# sourceMappingURL=contract-Ymh_Q37N.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract-Ymh_Q37N.d.ts","names":[],"sources":["../src/scenario.ts","../src/contract.ts"],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as Stability, r as AttributeType, s as TelemetryContract } from "./contract-
|
|
1
|
+
import { o as Stability, r as AttributeType, s as TelemetryContract } from "./contract-Ymh_Q37N.js";
|
|
2
2
|
|
|
3
3
|
//#region src/attrs.d.ts
|
|
4
4
|
/**
|
|
@@ -86,4 +86,4 @@ declare function hasBreakingChanges(diff: SnapshotDiff): boolean;
|
|
|
86
86
|
declare function formatDiff(diff: SnapshotDiff): string;
|
|
87
87
|
//#endregion
|
|
88
88
|
export { diffSnapshots as a, ContractSnapshot as c, contractToSnapshot as d, parseSnapshot as f, SchemaAttributeKey as g, SNAPSHOT_SPEC as h, SnapshotDiff as i, SnapshotAttribute as l, SCHEMA_ATTRS as m, ChangeType as n, formatDiff as o, serializeSnapshot as p, SnapshotChange as r, hasBreakingChanges as s, ChangeKind as t, SnapshotSpan as u };
|
|
89
|
-
//# sourceMappingURL=diff-
|
|
89
|
+
//# sourceMappingURL=diff-B1DoDhUn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diff-
|
|
1
|
+
{"version":3,"file":"diff-B1DoDhUn.d.ts","names":[],"sources":["../src/attrs.ts","../src/snapshot.ts","../src/diff.ts"],"mappings":";;;;;;AAYA;;;;;AAOA;;;cAPa,YAAA;EAOmE,6EAFtE,OAAA,8BAKwD;EAAA,SALxD,OAAA;AAAA;AAAA,KAEE,kBAAA,WAA6B,YAAA,eAA2B,YAAY;;cAGnE,aAAA;;;AAHb;AAAA,UCHiB,iBAAA;EACf,IAAA,EAAM,aAAA;EACN,SAAA,EAAW,SAAS;EACpB,QAAA;EACA,eAAA;EACA,IAAA;EACA,UAAA;EACA,WAAA;AAAA;AAAA,UAGe,YAAA;EACf,SAAA,EAAW,SAAA;EACX,oBAAA;EACA,WAAA;EACA,UAAA,EAAY,MAAA,SAAe,iBAAA;AAAA;;UAIZ,gBAAA;EACf,IAAA,SAAa,aAAA;EACb,OAAA;EACA,OAAA;EACA,gBAAA,EAAkB,MAAA,SAAe,iBAAA;EACjC,KAAA,EAAO,MAAA,SAAe,YAAA;AAAA;;;;AAhBX;AAGb;iBA0CgB,kBAAA,CACd,QAAA,EAAU,iBAAA,GACT,gBAAgB;;iBAgCH,iBAAA,CAAkB,QAA0B,EAAhB,gBAAgB;;iBAK5C,aAAA,CAAc,IAAA,WAAe,gBAAgB;;;KC/FjD,UAAA;AAAA,KAEA,UAAA;AAAA,UAeK,cAAA;EACf,IAAA,EAAM,UAAA;EACN,IAAA,EAAM,UAAU;;EAEhB,IAAA;EACA,SAAA;EACA,OAAA;AAAA;AAAA,UAGe,YAAA;EACf,OAAA;EACA,eAAA;EACA,WAAA;EACA,QAAA,EAAU,cAAA;EACV,QAAA,EAAU,cAAA;EACV,OAAA,EAAS,cAAA;AAAA;;;;;iBAqKK,aAAA,CACd,QAAA,EAAU,gBAAA,EACV,IAAA,EAAM,gBAAA,GACL,YAAA;;iBAwCa,kBAAA,CAAmB,IAAkB,EAAZ,YAAY;ADrOxC;AAAA,iBC0OG,UAAA,CAAW,IAAkB,EAAZ,YAAY"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as Stability, r as AttributeType, s as TelemetryContract } from "./contract-
|
|
1
|
+
import { o as Stability, r as AttributeType, s as TelemetryContract } from "./contract-Ymh_Q37N.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/attrs.d.ts
|
|
4
4
|
/**
|
|
@@ -86,4 +86,4 @@ declare function hasBreakingChanges(diff: SnapshotDiff): boolean;
|
|
|
86
86
|
declare function formatDiff(diff: SnapshotDiff): string;
|
|
87
87
|
//#endregion
|
|
88
88
|
export { diffSnapshots as a, ContractSnapshot as c, contractToSnapshot as d, parseSnapshot as f, SchemaAttributeKey as g, SNAPSHOT_SPEC as h, SnapshotDiff as i, SnapshotAttribute as l, SCHEMA_ATTRS as m, ChangeType as n, formatDiff as o, serializeSnapshot as p, SnapshotChange as r, hasBreakingChanges as s, ChangeKind as t, SnapshotSpan as u };
|
|
89
|
-
//# sourceMappingURL=diff-
|
|
89
|
+
//# sourceMappingURL=diff-Cjs6OPFN.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diff-
|
|
1
|
+
{"version":3,"file":"diff-Cjs6OPFN.d.cts","names":[],"sources":["../src/attrs.ts","../src/snapshot.ts","../src/diff.ts"],"mappings":";;;;;;AAYA;;;;;AAOA;;;cAPa,YAAA;EAOmE,6EAFtE,OAAA,8BAKwD;EAAA,SALxD,OAAA;AAAA;AAAA,KAEE,kBAAA,WAA6B,YAAA,eAA2B,YAAY;;cAGnE,aAAA;;;AAHb;AAAA,UCHiB,iBAAA;EACf,IAAA,EAAM,aAAA;EACN,SAAA,EAAW,SAAS;EACpB,QAAA;EACA,eAAA;EACA,IAAA;EACA,UAAA;EACA,WAAA;AAAA;AAAA,UAGe,YAAA;EACf,SAAA,EAAW,SAAA;EACX,oBAAA;EACA,WAAA;EACA,UAAA,EAAY,MAAA,SAAe,iBAAA;AAAA;;UAIZ,gBAAA;EACf,IAAA,SAAa,aAAA;EACb,OAAA;EACA,OAAA;EACA,gBAAA,EAAkB,MAAA,SAAe,iBAAA;EACjC,KAAA,EAAO,MAAA,SAAe,YAAA;AAAA;;;;AAhBX;AAGb;iBA0CgB,kBAAA,CACd,QAAA,EAAU,iBAAA,GACT,gBAAgB;;iBAgCH,iBAAA,CAAkB,QAA0B,EAAhB,gBAAgB;;iBAK5C,aAAA,CAAc,IAAA,WAAe,gBAAgB;;;KC/FjD,UAAA;AAAA,KAEA,UAAA;AAAA,UAeK,cAAA;EACf,IAAA,EAAM,UAAA;EACN,IAAA,EAAM,UAAU;;EAEhB,IAAA;EACA,SAAA;EACA,OAAA;AAAA;AAAA,UAGe,YAAA;EACf,OAAA;EACA,eAAA;EACA,WAAA;EACA,QAAA,EAAU,cAAA;EACV,QAAA,EAAU,cAAA;EACV,OAAA,EAAS,cAAA;AAAA;;;;;iBAqKK,aAAA,CACd,QAAA,EAAU,gBAAA,EACV,IAAA,EAAM,gBAAA,GACL,YAAA;;iBAwCa,kBAAA,CAAmB,IAAkB,EAAZ,YAAY;ADrOxC;AAAA,iBC0OG,UAAA,CAAW,IAAkB,EAAZ,YAAY"}
|
package/dist/diff.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as diffSnapshots, i as SnapshotDiff, n as ChangeType, o as formatDiff, r as SnapshotChange, s as hasBreakingChanges, t as ChangeKind } from "./diff-
|
|
1
|
+
import { a as diffSnapshots, i as SnapshotDiff, n as ChangeType, o as formatDiff, r as SnapshotChange, s as hasBreakingChanges, t as ChangeKind } from "./diff-Cjs6OPFN.cjs";
|
|
2
2
|
export { ChangeKind, ChangeType, SnapshotChange, SnapshotDiff, diffSnapshots, formatDiff, hasBreakingChanges };
|
package/dist/diff.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as diffSnapshots, i as SnapshotDiff, n as ChangeType, o as formatDiff, r as SnapshotChange, s as hasBreakingChanges, t as ChangeKind } from "./diff-
|
|
1
|
+
import { a as diffSnapshots, i as SnapshotDiff, n as ChangeType, o as formatDiff, r as SnapshotChange, s as hasBreakingChanges, t as ChangeKind } from "./diff-B1DoDhUn.js";
|
|
2
2
|
export { ChangeKind, ChangeType, SnapshotChange, SnapshotDiff, diffSnapshots, formatDiff, hasBreakingChanges };
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_snapshot = require('./snapshot-CyWGJaJT.cjs');
|
|
3
|
-
const require_processor = require('./processor-
|
|
3
|
+
const require_processor = require('./processor-Gu8Yl_dS.cjs');
|
|
4
4
|
const require_diff = require('./diff.cjs');
|
|
5
5
|
|
|
6
6
|
//#region src/redaction.ts
|
|
@@ -185,18 +185,25 @@ exports.SNAPSHOT_SPEC = require_snapshot.SNAPSHOT_SPEC;
|
|
|
185
185
|
exports.STABILITIES = require_processor.STABILITIES;
|
|
186
186
|
exports.SchemaValidationSpanProcessor = require_processor.SchemaValidationSpanProcessor;
|
|
187
187
|
exports.allowsAdditionalAttributes = require_processor.allowsAdditionalAttributes;
|
|
188
|
+
exports.checkScenario = require_processor.checkScenario;
|
|
188
189
|
exports.contractToSnapshot = require_snapshot.contractToSnapshot;
|
|
189
190
|
exports.createSchemaValidationProcessor = require_processor.createSchemaValidationProcessor;
|
|
190
191
|
exports.defineContract = require_processor.defineContract;
|
|
191
192
|
exports.diffSnapshots = require_diff.diffSnapshots;
|
|
193
|
+
exports.evaluateScenario = require_processor.evaluateScenario;
|
|
192
194
|
exports.formatDiff = require_diff.formatDiff;
|
|
195
|
+
exports.formatScenarioResult = require_processor.formatScenarioResult;
|
|
193
196
|
exports.formatViolation = require_processor.formatViolation;
|
|
194
197
|
exports.hasBreakingChanges = require_diff.hasBreakingChanges;
|
|
195
198
|
exports.hasErrors = require_processor.hasErrors;
|
|
196
199
|
exports.highCardinalityKeys = highCardinalityKeys;
|
|
197
200
|
exports.isHighCardinalityKey = isHighCardinalityKey;
|
|
201
|
+
exports.isScenarioClosed = require_processor.isScenarioClosed;
|
|
202
|
+
exports.parseCardinality = require_processor.parseCardinality;
|
|
198
203
|
exports.parseSnapshot = require_snapshot.parseSnapshot;
|
|
204
|
+
exports.proposeScenario = require_processor.proposeScenario;
|
|
199
205
|
exports.resolveAttributeSpec = require_processor.resolveAttributeSpec;
|
|
200
206
|
exports.serializeSnapshot = require_snapshot.serializeSnapshot;
|
|
207
|
+
exports.validateScenarioSpec = require_processor.validateScenarioSpec;
|
|
201
208
|
exports.validateSpan = require_processor.validateSpan;
|
|
202
209
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as diffSnapshots, c as ContractSnapshot, d as contractToSnapshot, f as parseSnapshot, g as SchemaAttributeKey, h as SNAPSHOT_SPEC, i as SnapshotDiff, l as SnapshotAttribute, m as SCHEMA_ATTRS, n as ChangeType, o as formatDiff, p as serializeSnapshot, r as SnapshotChange, s as hasBreakingChanges, t as ChangeKind, u as SnapshotSpan } from "./diff-
|
|
2
|
-
import { a as SpanSpec, c as allowsAdditionalAttributes, i as STABILITIES, l as defineContract, n as AttributeSpec, o as Stability, r as AttributeType, s as TelemetryContract, t as ATTRIBUTE_TYPES, u as resolveAttributeSpec } from "./contract-
|
|
3
|
-
import { a as SchemaValidationSpanProcessor, c as createSchemaValidationProcessor, d as ValidateOptions, f as ViolationCode, g as validateSpan, h as hasErrors, i as SchemaValidationProcessorOptions, l as SchemaViolation, m as formatViolation, n as ReadableSpanLike, o as SpanLike, p as ViolationSeverity, r as SchemaProcessorMode, s as SpanProcessorLike, t as OtelContext, u as SpanShape } from "./processor-
|
|
1
|
+
import { a as diffSnapshots, c as ContractSnapshot, d as contractToSnapshot, f as parseSnapshot, g as SchemaAttributeKey, h as SNAPSHOT_SPEC, i as SnapshotDiff, l as SnapshotAttribute, m as SCHEMA_ATTRS, n as ChangeType, o as formatDiff, p as serializeSnapshot, r as SnapshotChange, s as hasBreakingChanges, t as ChangeKind, u as SnapshotSpan } from "./diff-Cjs6OPFN.cjs";
|
|
2
|
+
import { A as validateScenarioSpec, C as ScenarioViolationCode, D as isScenarioClosed, E as formatScenarioResult, O as parseCardinality, S as ScenarioViolation, T as evaluateScenario, _ as ScenarioOutcome, a as SpanSpec, b as ScenarioSpan, c as allowsAdditionalAttributes, d as Cardinality, f as CheckScenarioOptions, g as ScenarioEventSpec, h as ScenarioAddition, i as STABILITIES, k as proposeScenario, l as defineContract, m as EvaluateScenarioOptions, n as AttributeSpec, o as Stability, p as CompletionBoundary, r as AttributeType, s as TelemetryContract, t as ATTRIBUTE_TYPES, u as resolveAttributeSpec, v as ScenarioProposal, w as checkScenario, x as ScenarioSpec, y as ScenarioResult } from "./contract-Ymh_Q37N.cjs";
|
|
3
|
+
import { a as SchemaValidationSpanProcessor, c as createSchemaValidationProcessor, d as ValidateOptions, f as ViolationCode, g as validateSpan, h as hasErrors, i as SchemaValidationProcessorOptions, l as SchemaViolation, m as formatViolation, n as ReadableSpanLike, o as SpanLike, p as ViolationSeverity, r as SchemaProcessorMode, s as SpanProcessorLike, t as OtelContext, u as SpanShape } from "./processor-BsO4WD73.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/redaction.d.ts
|
|
6
6
|
/**
|
|
@@ -36,5 +36,5 @@ declare function isHighCardinalityKey(contract: TelemetryContract, key: string):
|
|
|
36
36
|
*/
|
|
37
37
|
declare const AGENT_SECURITY_TELEMETRY_CONTRACT: TelemetryContract;
|
|
38
38
|
//#endregion
|
|
39
|
-
export { AGENT_SECURITY_TELEMETRY_CONTRACT, ATTRIBUTE_TYPES, type AttributeSpec, type AttributeType, type ChangeKind, type ChangeType, type ContractSnapshot, type OtelContext, type ReadableSpanLike, SCHEMA_ATTRS, SNAPSHOT_SPEC, STABILITIES, type SchemaAttributeKey, type SchemaProcessorMode, type SchemaValidationProcessorOptions, SchemaValidationSpanProcessor, type SchemaViolation, type SnapshotAttribute, type SnapshotChange, type SnapshotDiff, type SnapshotSpan, type SpanLike, type SpanProcessorLike, type SpanShape, type SpanSpec, type Stability, type TelemetryContract, type ValidateOptions, type ViolationCode, type ViolationSeverity, allowsAdditionalAttributes, contractToSnapshot, createSchemaValidationProcessor, defineContract, diffSnapshots, formatDiff, formatViolation, hasBreakingChanges, hasErrors, highCardinalityKeys, isHighCardinalityKey, parseSnapshot, resolveAttributeSpec, serializeSnapshot, validateSpan };
|
|
39
|
+
export { AGENT_SECURITY_TELEMETRY_CONTRACT, ATTRIBUTE_TYPES, type AttributeSpec, type AttributeType, type Cardinality, type ChangeKind, type ChangeType, type CheckScenarioOptions, type CompletionBoundary, type ContractSnapshot, type EvaluateScenarioOptions, type OtelContext, type ReadableSpanLike, SCHEMA_ATTRS, SNAPSHOT_SPEC, STABILITIES, type ScenarioAddition, type ScenarioEventSpec, type ScenarioOutcome, type ScenarioProposal, type ScenarioResult, type ScenarioSpan, type ScenarioSpec, type ScenarioViolation, type ScenarioViolationCode, type SchemaAttributeKey, type SchemaProcessorMode, type SchemaValidationProcessorOptions, SchemaValidationSpanProcessor, type SchemaViolation, type SnapshotAttribute, type SnapshotChange, type SnapshotDiff, type SnapshotSpan, type SpanLike, type SpanProcessorLike, type SpanShape, type SpanSpec, type Stability, type TelemetryContract, type ValidateOptions, type ViolationCode, type ViolationSeverity, allowsAdditionalAttributes, checkScenario, contractToSnapshot, createSchemaValidationProcessor, defineContract, diffSnapshots, evaluateScenario, formatDiff, formatScenarioResult, formatViolation, hasBreakingChanges, hasErrors, highCardinalityKeys, isHighCardinalityKey, isScenarioClosed, parseCardinality, parseSnapshot, proposeScenario, resolveAttributeSpec, serializeSnapshot, validateScenarioSpec, validateSpan };
|
|
40
40
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as diffSnapshots, c as ContractSnapshot, d as contractToSnapshot, f as parseSnapshot, g as SchemaAttributeKey, h as SNAPSHOT_SPEC, i as SnapshotDiff, l as SnapshotAttribute, m as SCHEMA_ATTRS, n as ChangeType, o as formatDiff, p as serializeSnapshot, r as SnapshotChange, s as hasBreakingChanges, t as ChangeKind, u as SnapshotSpan } from "./diff-
|
|
2
|
-
import { a as SpanSpec, c as allowsAdditionalAttributes, i as STABILITIES, l as defineContract, n as AttributeSpec, o as Stability, r as AttributeType, s as TelemetryContract, t as ATTRIBUTE_TYPES, u as resolveAttributeSpec } from "./contract-
|
|
3
|
-
import { a as SchemaValidationSpanProcessor, c as createSchemaValidationProcessor, d as ValidateOptions, f as ViolationCode, g as validateSpan, h as hasErrors, i as SchemaValidationProcessorOptions, l as SchemaViolation, m as formatViolation, n as ReadableSpanLike, o as SpanLike, p as ViolationSeverity, r as SchemaProcessorMode, s as SpanProcessorLike, t as OtelContext, u as SpanShape } from "./processor-
|
|
1
|
+
import { a as diffSnapshots, c as ContractSnapshot, d as contractToSnapshot, f as parseSnapshot, g as SchemaAttributeKey, h as SNAPSHOT_SPEC, i as SnapshotDiff, l as SnapshotAttribute, m as SCHEMA_ATTRS, n as ChangeType, o as formatDiff, p as serializeSnapshot, r as SnapshotChange, s as hasBreakingChanges, t as ChangeKind, u as SnapshotSpan } from "./diff-B1DoDhUn.js";
|
|
2
|
+
import { A as validateScenarioSpec, C as ScenarioViolationCode, D as isScenarioClosed, E as formatScenarioResult, O as parseCardinality, S as ScenarioViolation, T as evaluateScenario, _ as ScenarioOutcome, a as SpanSpec, b as ScenarioSpan, c as allowsAdditionalAttributes, d as Cardinality, f as CheckScenarioOptions, g as ScenarioEventSpec, h as ScenarioAddition, i as STABILITIES, k as proposeScenario, l as defineContract, m as EvaluateScenarioOptions, n as AttributeSpec, o as Stability, p as CompletionBoundary, r as AttributeType, s as TelemetryContract, t as ATTRIBUTE_TYPES, u as resolveAttributeSpec, v as ScenarioProposal, w as checkScenario, x as ScenarioSpec, y as ScenarioResult } from "./contract-Ymh_Q37N.js";
|
|
3
|
+
import { a as SchemaValidationSpanProcessor, c as createSchemaValidationProcessor, d as ValidateOptions, f as ViolationCode, g as validateSpan, h as hasErrors, i as SchemaValidationProcessorOptions, l as SchemaViolation, m as formatViolation, n as ReadableSpanLike, o as SpanLike, p as ViolationSeverity, r as SchemaProcessorMode, s as SpanProcessorLike, t as OtelContext, u as SpanShape } from "./processor-CIEfOOYi.js";
|
|
4
4
|
|
|
5
5
|
//#region src/redaction.d.ts
|
|
6
6
|
/**
|
|
@@ -36,5 +36,5 @@ declare function isHighCardinalityKey(contract: TelemetryContract, key: string):
|
|
|
36
36
|
*/
|
|
37
37
|
declare const AGENT_SECURITY_TELEMETRY_CONTRACT: TelemetryContract;
|
|
38
38
|
//#endregion
|
|
39
|
-
export { AGENT_SECURITY_TELEMETRY_CONTRACT, ATTRIBUTE_TYPES, type AttributeSpec, type AttributeType, type ChangeKind, type ChangeType, type ContractSnapshot, type OtelContext, type ReadableSpanLike, SCHEMA_ATTRS, SNAPSHOT_SPEC, STABILITIES, type SchemaAttributeKey, type SchemaProcessorMode, type SchemaValidationProcessorOptions, SchemaValidationSpanProcessor, type SchemaViolation, type SnapshotAttribute, type SnapshotChange, type SnapshotDiff, type SnapshotSpan, type SpanLike, type SpanProcessorLike, type SpanShape, type SpanSpec, type Stability, type TelemetryContract, type ValidateOptions, type ViolationCode, type ViolationSeverity, allowsAdditionalAttributes, contractToSnapshot, createSchemaValidationProcessor, defineContract, diffSnapshots, formatDiff, formatViolation, hasBreakingChanges, hasErrors, highCardinalityKeys, isHighCardinalityKey, parseSnapshot, resolveAttributeSpec, serializeSnapshot, validateSpan };
|
|
39
|
+
export { AGENT_SECURITY_TELEMETRY_CONTRACT, ATTRIBUTE_TYPES, type AttributeSpec, type AttributeType, type Cardinality, type ChangeKind, type ChangeType, type CheckScenarioOptions, type CompletionBoundary, type ContractSnapshot, type EvaluateScenarioOptions, type OtelContext, type ReadableSpanLike, SCHEMA_ATTRS, SNAPSHOT_SPEC, STABILITIES, type ScenarioAddition, type ScenarioEventSpec, type ScenarioOutcome, type ScenarioProposal, type ScenarioResult, type ScenarioSpan, type ScenarioSpec, type ScenarioViolation, type ScenarioViolationCode, type SchemaAttributeKey, type SchemaProcessorMode, type SchemaValidationProcessorOptions, SchemaValidationSpanProcessor, type SchemaViolation, type SnapshotAttribute, type SnapshotChange, type SnapshotDiff, type SnapshotSpan, type SpanLike, type SpanProcessorLike, type SpanShape, type SpanSpec, type Stability, type TelemetryContract, type ValidateOptions, type ViolationCode, type ViolationSeverity, allowsAdditionalAttributes, checkScenario, contractToSnapshot, createSchemaValidationProcessor, defineContract, diffSnapshots, evaluateScenario, formatDiff, formatScenarioResult, formatViolation, hasBreakingChanges, hasErrors, highCardinalityKeys, isHighCardinalityKey, isScenarioClosed, parseCardinality, parseSnapshot, proposeScenario, resolveAttributeSpec, serializeSnapshot, validateScenarioSpec, validateSpan };
|
|
40
40
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as SNAPSHOT_SPEC, i as SCHEMA_ATTRS, n as parseSnapshot, r as serializeSnapshot, t as contractToSnapshot } from "./snapshot-h8pb_Up_.js";
|
|
2
|
-
import { a as validateSpan, c as allowsAdditionalAttributes, i as hasErrors, l as defineContract, n as createSchemaValidationProcessor, o as ATTRIBUTE_TYPES, r as formatViolation, s as STABILITIES, t as SchemaValidationSpanProcessor, u as resolveAttributeSpec } from "./processor-
|
|
2
|
+
import { _ as validateScenarioSpec, a as validateSpan, c as allowsAdditionalAttributes, d as checkScenario, f as evaluateScenario, g as proposeScenario, h as parseCardinality, i as hasErrors, l as defineContract, m as isScenarioClosed, n as createSchemaValidationProcessor, o as ATTRIBUTE_TYPES, p as formatScenarioResult, r as formatViolation, s as STABILITIES, t as SchemaValidationSpanProcessor, u as resolveAttributeSpec } from "./processor-BPp_DewZ.js";
|
|
3
3
|
import { diffSnapshots, formatDiff, hasBreakingChanges } from "./diff.js";
|
|
4
4
|
|
|
5
5
|
//#region src/redaction.ts
|
|
@@ -177,5 +177,5 @@ const AGENT_SECURITY_TELEMETRY_CONTRACT = defineContract({
|
|
|
177
177
|
});
|
|
178
178
|
|
|
179
179
|
//#endregion
|
|
180
|
-
export { AGENT_SECURITY_TELEMETRY_CONTRACT, ATTRIBUTE_TYPES, SCHEMA_ATTRS, SNAPSHOT_SPEC, STABILITIES, SchemaValidationSpanProcessor, allowsAdditionalAttributes, contractToSnapshot, createSchemaValidationProcessor, defineContract, diffSnapshots, formatDiff, formatViolation, hasBreakingChanges, hasErrors, highCardinalityKeys, isHighCardinalityKey, parseSnapshot, resolveAttributeSpec, serializeSnapshot, validateSpan };
|
|
180
|
+
export { AGENT_SECURITY_TELEMETRY_CONTRACT, ATTRIBUTE_TYPES, SCHEMA_ATTRS, SNAPSHOT_SPEC, STABILITIES, SchemaValidationSpanProcessor, allowsAdditionalAttributes, checkScenario, contractToSnapshot, createSchemaValidationProcessor, defineContract, diffSnapshots, evaluateScenario, formatDiff, formatScenarioResult, formatViolation, hasBreakingChanges, hasErrors, highCardinalityKeys, isHighCardinalityKey, isScenarioClosed, parseCardinality, parseSnapshot, proposeScenario, resolveAttributeSpec, serializeSnapshot, validateScenarioSpec, validateSpan };
|
|
181
181
|
//# sourceMappingURL=index.js.map
|