@mastra/observability 0.0.0-allow-to-pass-a-mastra-url-instance-20251105224938 → 0.0.0-bundle-studio-cloud-20251222034739
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/CHANGELOG.md +182 -3
- package/dist/config.d.ts +371 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/default.d.ts.map +1 -1
- package/dist/exporters/index.d.ts +1 -0
- package/dist/exporters/index.d.ts.map +1 -1
- package/dist/exporters/test.d.ts +13 -0
- package/dist/exporters/test.d.ts.map +1 -0
- package/dist/index.cjs +4601 -74
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4592 -75
- package/dist/index.js.map +1 -1
- package/dist/instances/base.d.ts +9 -5
- package/dist/instances/base.d.ts.map +1 -1
- package/dist/model-tracing.d.ts +4 -9
- package/dist/model-tracing.d.ts.map +1 -1
- package/dist/span_processors/sensitive-data-filter.d.ts +7 -0
- package/dist/span_processors/sensitive-data-filter.d.ts.map +1 -1
- package/dist/spans/base.d.ts +39 -17
- package/dist/spans/base.d.ts.map +1 -1
- package/dist/spans/default.d.ts.map +1 -1
- package/dist/spans/index.d.ts +1 -0
- package/dist/spans/index.d.ts.map +1 -1
- package/dist/spans/serialization.d.ts +36 -0
- package/dist/spans/serialization.d.ts.map +1 -0
- package/dist/tracing-options.d.ts +27 -0
- package/dist/tracing-options.d.ts.map +1 -0
- package/dist/usage.d.ts +21 -0
- package/dist/usage.d.ts.map +1 -0
- package/package.json +11 -10
package/dist/config.d.ts
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* including tracing configs, sampling strategies, and registry setup.
|
|
6
6
|
*/
|
|
7
7
|
import type { RequestContext } from '@mastra/core/di';
|
|
8
|
-
import type { ObservabilityInstance, ObservabilityExporter, SpanOutputProcessor, ConfigSelector } from '@mastra/core/observability';
|
|
8
|
+
import type { ObservabilityInstance, ObservabilityExporter, ObservabilityBridge, SpanOutputProcessor, ConfigSelector } from '@mastra/core/observability';
|
|
9
|
+
import { z } from 'zod';
|
|
9
10
|
/**
|
|
10
11
|
* Sampling strategy types
|
|
11
12
|
*/
|
|
@@ -48,6 +49,8 @@ export interface ObservabilityInstanceConfig {
|
|
|
48
49
|
sampling?: SamplingStrategy;
|
|
49
50
|
/** Custom exporters */
|
|
50
51
|
exporters?: ObservabilityExporter[];
|
|
52
|
+
/** Observability bridge (e.g., OpenTelemetry bridge for context extraction) */
|
|
53
|
+
bridge?: ObservabilityBridge;
|
|
51
54
|
/** Custom span output processors */
|
|
52
55
|
spanOutputProcessors?: SpanOutputProcessor[];
|
|
53
56
|
/** Set to `true` if you want to see spans internal to the operation of mastra */
|
|
@@ -72,4 +75,371 @@ export interface ObservabilityRegistryConfig {
|
|
|
72
75
|
/** Optional selector function to choose which tracing instance to use */
|
|
73
76
|
configSelector?: ConfigSelector;
|
|
74
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Zod schema for SamplingStrategy
|
|
80
|
+
*/
|
|
81
|
+
export declare const samplingStrategySchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
82
|
+
type: z.ZodLiteral<SamplingStrategyType.ALWAYS>;
|
|
83
|
+
}, "strip", z.ZodTypeAny, {
|
|
84
|
+
type: SamplingStrategyType.ALWAYS;
|
|
85
|
+
}, {
|
|
86
|
+
type: SamplingStrategyType.ALWAYS;
|
|
87
|
+
}>, z.ZodObject<{
|
|
88
|
+
type: z.ZodLiteral<SamplingStrategyType.NEVER>;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
type: SamplingStrategyType.NEVER;
|
|
91
|
+
}, {
|
|
92
|
+
type: SamplingStrategyType.NEVER;
|
|
93
|
+
}>, z.ZodObject<{
|
|
94
|
+
type: z.ZodLiteral<SamplingStrategyType.RATIO>;
|
|
95
|
+
probability: z.ZodNumber;
|
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
type: SamplingStrategyType.RATIO;
|
|
98
|
+
probability: number;
|
|
99
|
+
}, {
|
|
100
|
+
type: SamplingStrategyType.RATIO;
|
|
101
|
+
probability: number;
|
|
102
|
+
}>, z.ZodObject<{
|
|
103
|
+
type: z.ZodLiteral<SamplingStrategyType.CUSTOM>;
|
|
104
|
+
sampler: z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodAny>], z.ZodUnknown>, z.ZodBoolean>;
|
|
105
|
+
}, "strip", z.ZodTypeAny, {
|
|
106
|
+
type: SamplingStrategyType.CUSTOM;
|
|
107
|
+
sampler: (args_0: any, ...args: unknown[]) => boolean;
|
|
108
|
+
}, {
|
|
109
|
+
type: SamplingStrategyType.CUSTOM;
|
|
110
|
+
sampler: (args_0: any, ...args: unknown[]) => boolean;
|
|
111
|
+
}>]>;
|
|
112
|
+
/**
|
|
113
|
+
* Zod schema for ObservabilityInstanceConfig
|
|
114
|
+
* Note: exporters, spanOutputProcessors, bridge, and configSelector are validated as any
|
|
115
|
+
* since they're complex runtime objects
|
|
116
|
+
*/
|
|
117
|
+
export declare const observabilityInstanceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
118
|
+
name: z.ZodString;
|
|
119
|
+
serviceName: z.ZodString;
|
|
120
|
+
sampling: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
121
|
+
type: z.ZodLiteral<SamplingStrategyType.ALWAYS>;
|
|
122
|
+
}, "strip", z.ZodTypeAny, {
|
|
123
|
+
type: SamplingStrategyType.ALWAYS;
|
|
124
|
+
}, {
|
|
125
|
+
type: SamplingStrategyType.ALWAYS;
|
|
126
|
+
}>, z.ZodObject<{
|
|
127
|
+
type: z.ZodLiteral<SamplingStrategyType.NEVER>;
|
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
type: SamplingStrategyType.NEVER;
|
|
130
|
+
}, {
|
|
131
|
+
type: SamplingStrategyType.NEVER;
|
|
132
|
+
}>, z.ZodObject<{
|
|
133
|
+
type: z.ZodLiteral<SamplingStrategyType.RATIO>;
|
|
134
|
+
probability: z.ZodNumber;
|
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
|
136
|
+
type: SamplingStrategyType.RATIO;
|
|
137
|
+
probability: number;
|
|
138
|
+
}, {
|
|
139
|
+
type: SamplingStrategyType.RATIO;
|
|
140
|
+
probability: number;
|
|
141
|
+
}>, z.ZodObject<{
|
|
142
|
+
type: z.ZodLiteral<SamplingStrategyType.CUSTOM>;
|
|
143
|
+
sampler: z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodAny>], z.ZodUnknown>, z.ZodBoolean>;
|
|
144
|
+
}, "strip", z.ZodTypeAny, {
|
|
145
|
+
type: SamplingStrategyType.CUSTOM;
|
|
146
|
+
sampler: (args_0: any, ...args: unknown[]) => boolean;
|
|
147
|
+
}, {
|
|
148
|
+
type: SamplingStrategyType.CUSTOM;
|
|
149
|
+
sampler: (args_0: any, ...args: unknown[]) => boolean;
|
|
150
|
+
}>]>>;
|
|
151
|
+
exporters: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
152
|
+
bridge: z.ZodOptional<z.ZodAny>;
|
|
153
|
+
spanOutputProcessors: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
154
|
+
includeInternalSpans: z.ZodOptional<z.ZodBoolean>;
|
|
155
|
+
requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
156
|
+
}, "strip", z.ZodTypeAny, {
|
|
157
|
+
name: string;
|
|
158
|
+
serviceName: string;
|
|
159
|
+
sampling?: {
|
|
160
|
+
type: SamplingStrategyType.ALWAYS;
|
|
161
|
+
} | {
|
|
162
|
+
type: SamplingStrategyType.NEVER;
|
|
163
|
+
} | {
|
|
164
|
+
type: SamplingStrategyType.RATIO;
|
|
165
|
+
probability: number;
|
|
166
|
+
} | {
|
|
167
|
+
type: SamplingStrategyType.CUSTOM;
|
|
168
|
+
sampler: (args_0: any, ...args: unknown[]) => boolean;
|
|
169
|
+
} | undefined;
|
|
170
|
+
exporters?: any[] | undefined;
|
|
171
|
+
bridge?: any;
|
|
172
|
+
spanOutputProcessors?: any[] | undefined;
|
|
173
|
+
includeInternalSpans?: boolean | undefined;
|
|
174
|
+
requestContextKeys?: string[] | undefined;
|
|
175
|
+
}, {
|
|
176
|
+
name: string;
|
|
177
|
+
serviceName: string;
|
|
178
|
+
sampling?: {
|
|
179
|
+
type: SamplingStrategyType.ALWAYS;
|
|
180
|
+
} | {
|
|
181
|
+
type: SamplingStrategyType.NEVER;
|
|
182
|
+
} | {
|
|
183
|
+
type: SamplingStrategyType.RATIO;
|
|
184
|
+
probability: number;
|
|
185
|
+
} | {
|
|
186
|
+
type: SamplingStrategyType.CUSTOM;
|
|
187
|
+
sampler: (args_0: any, ...args: unknown[]) => boolean;
|
|
188
|
+
} | undefined;
|
|
189
|
+
exporters?: any[] | undefined;
|
|
190
|
+
bridge?: any;
|
|
191
|
+
spanOutputProcessors?: any[] | undefined;
|
|
192
|
+
includeInternalSpans?: boolean | undefined;
|
|
193
|
+
requestContextKeys?: string[] | undefined;
|
|
194
|
+
}>, {
|
|
195
|
+
name: string;
|
|
196
|
+
serviceName: string;
|
|
197
|
+
sampling?: {
|
|
198
|
+
type: SamplingStrategyType.ALWAYS;
|
|
199
|
+
} | {
|
|
200
|
+
type: SamplingStrategyType.NEVER;
|
|
201
|
+
} | {
|
|
202
|
+
type: SamplingStrategyType.RATIO;
|
|
203
|
+
probability: number;
|
|
204
|
+
} | {
|
|
205
|
+
type: SamplingStrategyType.CUSTOM;
|
|
206
|
+
sampler: (args_0: any, ...args: unknown[]) => boolean;
|
|
207
|
+
} | undefined;
|
|
208
|
+
exporters?: any[] | undefined;
|
|
209
|
+
bridge?: any;
|
|
210
|
+
spanOutputProcessors?: any[] | undefined;
|
|
211
|
+
includeInternalSpans?: boolean | undefined;
|
|
212
|
+
requestContextKeys?: string[] | undefined;
|
|
213
|
+
}, {
|
|
214
|
+
name: string;
|
|
215
|
+
serviceName: string;
|
|
216
|
+
sampling?: {
|
|
217
|
+
type: SamplingStrategyType.ALWAYS;
|
|
218
|
+
} | {
|
|
219
|
+
type: SamplingStrategyType.NEVER;
|
|
220
|
+
} | {
|
|
221
|
+
type: SamplingStrategyType.RATIO;
|
|
222
|
+
probability: number;
|
|
223
|
+
} | {
|
|
224
|
+
type: SamplingStrategyType.CUSTOM;
|
|
225
|
+
sampler: (args_0: any, ...args: unknown[]) => boolean;
|
|
226
|
+
} | undefined;
|
|
227
|
+
exporters?: any[] | undefined;
|
|
228
|
+
bridge?: any;
|
|
229
|
+
spanOutputProcessors?: any[] | undefined;
|
|
230
|
+
includeInternalSpans?: boolean | undefined;
|
|
231
|
+
requestContextKeys?: string[] | undefined;
|
|
232
|
+
}>;
|
|
233
|
+
/**
|
|
234
|
+
* Zod schema for config values in the configs map
|
|
235
|
+
* This is the config object without the name field
|
|
236
|
+
*/
|
|
237
|
+
export declare const observabilityConfigValueSchema: z.ZodEffects<z.ZodObject<{
|
|
238
|
+
serviceName: z.ZodString;
|
|
239
|
+
sampling: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
240
|
+
type: z.ZodLiteral<SamplingStrategyType.ALWAYS>;
|
|
241
|
+
}, "strip", z.ZodTypeAny, {
|
|
242
|
+
type: SamplingStrategyType.ALWAYS;
|
|
243
|
+
}, {
|
|
244
|
+
type: SamplingStrategyType.ALWAYS;
|
|
245
|
+
}>, z.ZodObject<{
|
|
246
|
+
type: z.ZodLiteral<SamplingStrategyType.NEVER>;
|
|
247
|
+
}, "strip", z.ZodTypeAny, {
|
|
248
|
+
type: SamplingStrategyType.NEVER;
|
|
249
|
+
}, {
|
|
250
|
+
type: SamplingStrategyType.NEVER;
|
|
251
|
+
}>, z.ZodObject<{
|
|
252
|
+
type: z.ZodLiteral<SamplingStrategyType.RATIO>;
|
|
253
|
+
probability: z.ZodNumber;
|
|
254
|
+
}, "strip", z.ZodTypeAny, {
|
|
255
|
+
type: SamplingStrategyType.RATIO;
|
|
256
|
+
probability: number;
|
|
257
|
+
}, {
|
|
258
|
+
type: SamplingStrategyType.RATIO;
|
|
259
|
+
probability: number;
|
|
260
|
+
}>, z.ZodObject<{
|
|
261
|
+
type: z.ZodLiteral<SamplingStrategyType.CUSTOM>;
|
|
262
|
+
sampler: z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodAny>], z.ZodUnknown>, z.ZodBoolean>;
|
|
263
|
+
}, "strip", z.ZodTypeAny, {
|
|
264
|
+
type: SamplingStrategyType.CUSTOM;
|
|
265
|
+
sampler: (args_0: any, ...args: unknown[]) => boolean;
|
|
266
|
+
}, {
|
|
267
|
+
type: SamplingStrategyType.CUSTOM;
|
|
268
|
+
sampler: (args_0: any, ...args: unknown[]) => boolean;
|
|
269
|
+
}>]>>;
|
|
270
|
+
exporters: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
271
|
+
bridge: z.ZodOptional<z.ZodAny>;
|
|
272
|
+
spanOutputProcessors: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
273
|
+
includeInternalSpans: z.ZodOptional<z.ZodBoolean>;
|
|
274
|
+
requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
275
|
+
}, "strip", z.ZodTypeAny, {
|
|
276
|
+
serviceName: string;
|
|
277
|
+
sampling?: {
|
|
278
|
+
type: SamplingStrategyType.ALWAYS;
|
|
279
|
+
} | {
|
|
280
|
+
type: SamplingStrategyType.NEVER;
|
|
281
|
+
} | {
|
|
282
|
+
type: SamplingStrategyType.RATIO;
|
|
283
|
+
probability: number;
|
|
284
|
+
} | {
|
|
285
|
+
type: SamplingStrategyType.CUSTOM;
|
|
286
|
+
sampler: (args_0: any, ...args: unknown[]) => boolean;
|
|
287
|
+
} | undefined;
|
|
288
|
+
exporters?: any[] | undefined;
|
|
289
|
+
bridge?: any;
|
|
290
|
+
spanOutputProcessors?: any[] | undefined;
|
|
291
|
+
includeInternalSpans?: boolean | undefined;
|
|
292
|
+
requestContextKeys?: string[] | undefined;
|
|
293
|
+
}, {
|
|
294
|
+
serviceName: string;
|
|
295
|
+
sampling?: {
|
|
296
|
+
type: SamplingStrategyType.ALWAYS;
|
|
297
|
+
} | {
|
|
298
|
+
type: SamplingStrategyType.NEVER;
|
|
299
|
+
} | {
|
|
300
|
+
type: SamplingStrategyType.RATIO;
|
|
301
|
+
probability: number;
|
|
302
|
+
} | {
|
|
303
|
+
type: SamplingStrategyType.CUSTOM;
|
|
304
|
+
sampler: (args_0: any, ...args: unknown[]) => boolean;
|
|
305
|
+
} | undefined;
|
|
306
|
+
exporters?: any[] | undefined;
|
|
307
|
+
bridge?: any;
|
|
308
|
+
spanOutputProcessors?: any[] | undefined;
|
|
309
|
+
includeInternalSpans?: boolean | undefined;
|
|
310
|
+
requestContextKeys?: string[] | undefined;
|
|
311
|
+
}>, {
|
|
312
|
+
serviceName: string;
|
|
313
|
+
sampling?: {
|
|
314
|
+
type: SamplingStrategyType.ALWAYS;
|
|
315
|
+
} | {
|
|
316
|
+
type: SamplingStrategyType.NEVER;
|
|
317
|
+
} | {
|
|
318
|
+
type: SamplingStrategyType.RATIO;
|
|
319
|
+
probability: number;
|
|
320
|
+
} | {
|
|
321
|
+
type: SamplingStrategyType.CUSTOM;
|
|
322
|
+
sampler: (args_0: any, ...args: unknown[]) => boolean;
|
|
323
|
+
} | undefined;
|
|
324
|
+
exporters?: any[] | undefined;
|
|
325
|
+
bridge?: any;
|
|
326
|
+
spanOutputProcessors?: any[] | undefined;
|
|
327
|
+
includeInternalSpans?: boolean | undefined;
|
|
328
|
+
requestContextKeys?: string[] | undefined;
|
|
329
|
+
}, {
|
|
330
|
+
serviceName: string;
|
|
331
|
+
sampling?: {
|
|
332
|
+
type: SamplingStrategyType.ALWAYS;
|
|
333
|
+
} | {
|
|
334
|
+
type: SamplingStrategyType.NEVER;
|
|
335
|
+
} | {
|
|
336
|
+
type: SamplingStrategyType.RATIO;
|
|
337
|
+
probability: number;
|
|
338
|
+
} | {
|
|
339
|
+
type: SamplingStrategyType.CUSTOM;
|
|
340
|
+
sampler: (args_0: any, ...args: unknown[]) => boolean;
|
|
341
|
+
} | undefined;
|
|
342
|
+
exporters?: any[] | undefined;
|
|
343
|
+
bridge?: any;
|
|
344
|
+
spanOutputProcessors?: any[] | undefined;
|
|
345
|
+
includeInternalSpans?: boolean | undefined;
|
|
346
|
+
requestContextKeys?: string[] | undefined;
|
|
347
|
+
}>;
|
|
348
|
+
/**
|
|
349
|
+
* Zod schema for ObservabilityRegistryConfig
|
|
350
|
+
* Note: Individual configs are validated separately in the constructor to allow for
|
|
351
|
+
* both plain config objects and pre-instantiated ObservabilityInstance objects.
|
|
352
|
+
* The schema is permissive to handle edge cases gracefully (arrays, null values).
|
|
353
|
+
*/
|
|
354
|
+
export declare const observabilityRegistryConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
355
|
+
default: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
356
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
357
|
+
}, "strip", z.ZodTypeAny, {
|
|
358
|
+
enabled?: boolean | undefined;
|
|
359
|
+
}, {
|
|
360
|
+
enabled?: boolean | undefined;
|
|
361
|
+
}>>>;
|
|
362
|
+
configs: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">, z.ZodNull]>>;
|
|
363
|
+
configSelector: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
|
|
364
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
365
|
+
default: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
366
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
367
|
+
}, "strip", z.ZodTypeAny, {
|
|
368
|
+
enabled?: boolean | undefined;
|
|
369
|
+
}, {
|
|
370
|
+
enabled?: boolean | undefined;
|
|
371
|
+
}>>>;
|
|
372
|
+
configs: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">, z.ZodNull]>>;
|
|
373
|
+
configSelector: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
|
|
374
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
375
|
+
default: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
376
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
377
|
+
}, "strip", z.ZodTypeAny, {
|
|
378
|
+
enabled?: boolean | undefined;
|
|
379
|
+
}, {
|
|
380
|
+
enabled?: boolean | undefined;
|
|
381
|
+
}>>>;
|
|
382
|
+
configs: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">, z.ZodNull]>>;
|
|
383
|
+
configSelector: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
|
|
384
|
+
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
385
|
+
default: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
386
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
387
|
+
}, "strip", z.ZodTypeAny, {
|
|
388
|
+
enabled?: boolean | undefined;
|
|
389
|
+
}, {
|
|
390
|
+
enabled?: boolean | undefined;
|
|
391
|
+
}>>>;
|
|
392
|
+
configs: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">, z.ZodNull]>>;
|
|
393
|
+
configSelector: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
|
|
394
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
395
|
+
default: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
396
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
397
|
+
}, "strip", z.ZodTypeAny, {
|
|
398
|
+
enabled?: boolean | undefined;
|
|
399
|
+
}, {
|
|
400
|
+
enabled?: boolean | undefined;
|
|
401
|
+
}>>>;
|
|
402
|
+
configs: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">, z.ZodNull]>>;
|
|
403
|
+
configSelector: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
|
|
404
|
+
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
405
|
+
default: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
406
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
407
|
+
}, "strip", z.ZodTypeAny, {
|
|
408
|
+
enabled?: boolean | undefined;
|
|
409
|
+
}, {
|
|
410
|
+
enabled?: boolean | undefined;
|
|
411
|
+
}>>>;
|
|
412
|
+
configs: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">, z.ZodNull]>>;
|
|
413
|
+
configSelector: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
|
|
414
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
415
|
+
default: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
416
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
417
|
+
}, "strip", z.ZodTypeAny, {
|
|
418
|
+
enabled?: boolean | undefined;
|
|
419
|
+
}, {
|
|
420
|
+
enabled?: boolean | undefined;
|
|
421
|
+
}>>>;
|
|
422
|
+
configs: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">, z.ZodNull]>>;
|
|
423
|
+
configSelector: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
|
|
424
|
+
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
425
|
+
default: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
426
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
427
|
+
}, "strip", z.ZodTypeAny, {
|
|
428
|
+
enabled?: boolean | undefined;
|
|
429
|
+
}, {
|
|
430
|
+
enabled?: boolean | undefined;
|
|
431
|
+
}>>>;
|
|
432
|
+
configs: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">, z.ZodNull]>>;
|
|
433
|
+
configSelector: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
|
|
434
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
435
|
+
default: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
436
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
437
|
+
}, "strip", z.ZodTypeAny, {
|
|
438
|
+
enabled?: boolean | undefined;
|
|
439
|
+
}, {
|
|
440
|
+
enabled?: boolean | undefined;
|
|
441
|
+
}>>>;
|
|
442
|
+
configs: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">, z.ZodNull]>>;
|
|
443
|
+
configSelector: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
|
|
444
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
75
445
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,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HANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../src/default.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../src/default.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EACV,cAAc,EACd,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAA+B,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAezF,qBAAa,aAAc,SAAQ,UAAW,YAAW,uBAAuB;;gBAGlE,MAAM,EAAE,2BAA2B;IAsF/C,gBAAgB,CAAC,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;IAuBnD,SAAS,CAAC,OAAO,EAAE;QAAE,MAAM,EAAE,aAAa,CAAA;KAAE,GAAG,IAAI;IAOnD,mBAAmB,CAAC,OAAO,EAAE,qBAAqB,GAAG,qBAAqB,GAAG,SAAS;IAItF;;OAEG;IAEH,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,qBAAqB,EAAE,SAAS,UAAQ,GAAG,IAAI;IAIxF,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,qBAAqB,GAAG,SAAS;IAI5D,kBAAkB,IAAI,qBAAqB,GAAG,SAAS;IAIvD,aAAa,IAAI,WAAW,CAAC,MAAM,EAAE,qBAAqB,CAAC;IAI3D,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAIzC,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAIlC,iBAAiB,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI;IAIjD,KAAK,IAAI,IAAI;IAIP,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAGhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/exporters/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,cAAc,QAAQ,CAAC;AAGvB,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,YAAY,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACnD,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/exporters/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,cAAc,QAAQ,CAAC;AAGvB,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,YAAY,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACnD,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TracingEvent } from '@mastra/core/observability';
|
|
2
|
+
import { BaseExporter } from './base.js';
|
|
3
|
+
import type { BaseExporterConfig } from './base.js';
|
|
4
|
+
export declare class TestExporter extends BaseExporter {
|
|
5
|
+
#private;
|
|
6
|
+
name: string;
|
|
7
|
+
constructor(config?: BaseExporterConfig);
|
|
8
|
+
protected _exportTracingEvent(event: TracingEvent): Promise<void>;
|
|
9
|
+
clearEvents(): void;
|
|
10
|
+
get events(): TracingEvent[];
|
|
11
|
+
shutdown(): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../src/exporters/test.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAEjD,qBAAa,YAAa,SAAQ,YAAY;;IAC5C,IAAI,SAA2B;gBAGnB,MAAM,GAAE,kBAAuB;cAI3B,mBAAmB,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAIvE,WAAW;IAIX,IAAI,MAAM,IAAI,YAAY,EAAE,CAE3B;IAEK,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAGhC"}
|