@mastra/observability 0.0.0-refactor-agent-information-for-recomposable-ui-20251112151814 → 0.0.0-remove-ai-peer-dep-from-evals-20260105220639

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/config.d.ts CHANGED
@@ -5,7 +5,7 @@
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, SerializationOptions } from '@mastra/core/observability';
9
9
  import { z } from 'zod';
10
10
  /**
11
11
  * Sampling strategy types
@@ -49,6 +49,8 @@ export interface ObservabilityInstanceConfig {
49
49
  sampling?: SamplingStrategy;
50
50
  /** Custom exporters */
51
51
  exporters?: ObservabilityExporter[];
52
+ /** Observability bridge (e.g., OpenTelemetry bridge for context extraction) */
53
+ bridge?: ObservabilityBridge;
52
54
  /** Custom span output processors */
53
55
  spanOutputProcessors?: SpanOutputProcessor[];
54
56
  /** Set to `true` if you want to see spans internal to the operation of mastra */
@@ -59,6 +61,11 @@ export interface ObservabilityInstanceConfig {
59
61
  * Supports dot notation for nested values.
60
62
  */
61
63
  requestContextKeys?: string[];
64
+ /**
65
+ * Options for controlling serialization of span data (input/output/attributes).
66
+ * Use these to customize truncation limits for large payloads.
67
+ */
68
+ serializationOptions?: SerializationOptions;
62
69
  }
63
70
  /**
64
71
  * Complete Observability registry configuration
@@ -107,12 +114,31 @@ export declare const samplingStrategySchema: z.ZodDiscriminatedUnion<"type", [z.
107
114
  type: SamplingStrategyType.CUSTOM;
108
115
  sampler: (args_0: any, ...args: unknown[]) => boolean;
109
116
  }>]>;
117
+ /**
118
+ * Zod schema for SerializationOptions
119
+ */
120
+ export declare const serializationOptionsSchema: z.ZodOptional<z.ZodObject<{
121
+ maxStringLength: z.ZodOptional<z.ZodNumber>;
122
+ maxDepth: z.ZodOptional<z.ZodNumber>;
123
+ maxArrayLength: z.ZodOptional<z.ZodNumber>;
124
+ maxObjectKeys: z.ZodOptional<z.ZodNumber>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ maxStringLength?: number | undefined;
127
+ maxDepth?: number | undefined;
128
+ maxArrayLength?: number | undefined;
129
+ maxObjectKeys?: number | undefined;
130
+ }, {
131
+ maxStringLength?: number | undefined;
132
+ maxDepth?: number | undefined;
133
+ maxArrayLength?: number | undefined;
134
+ maxObjectKeys?: number | undefined;
135
+ }>>;
110
136
  /**
111
137
  * Zod schema for ObservabilityInstanceConfig
112
- * Note: exporters, spanOutputProcessors, and configSelector are validated as any
138
+ * Note: exporters, spanOutputProcessors, bridge, and configSelector are validated as any
113
139
  * since they're complex runtime objects
114
140
  */
115
- export declare const observabilityInstanceConfigSchema: z.ZodObject<{
141
+ export declare const observabilityInstanceConfigSchema: z.ZodEffects<z.ZodObject<{
116
142
  name: z.ZodString;
117
143
  serviceName: z.ZodString;
118
144
  sampling: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -147,9 +173,26 @@ export declare const observabilityInstanceConfigSchema: z.ZodObject<{
147
173
  sampler: (args_0: any, ...args: unknown[]) => boolean;
148
174
  }>]>>;
149
175
  exporters: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
176
+ bridge: z.ZodOptional<z.ZodAny>;
150
177
  spanOutputProcessors: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
151
178
  includeInternalSpans: z.ZodOptional<z.ZodBoolean>;
152
179
  requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
180
+ serializationOptions: z.ZodOptional<z.ZodObject<{
181
+ maxStringLength: z.ZodOptional<z.ZodNumber>;
182
+ maxDepth: z.ZodOptional<z.ZodNumber>;
183
+ maxArrayLength: z.ZodOptional<z.ZodNumber>;
184
+ maxObjectKeys: z.ZodOptional<z.ZodNumber>;
185
+ }, "strip", z.ZodTypeAny, {
186
+ maxStringLength?: number | undefined;
187
+ maxDepth?: number | undefined;
188
+ maxArrayLength?: number | undefined;
189
+ maxObjectKeys?: number | undefined;
190
+ }, {
191
+ maxStringLength?: number | undefined;
192
+ maxDepth?: number | undefined;
193
+ maxArrayLength?: number | undefined;
194
+ maxObjectKeys?: number | undefined;
195
+ }>>;
153
196
  }, "strip", z.ZodTypeAny, {
154
197
  name: string;
155
198
  serviceName: string;
@@ -165,9 +208,16 @@ export declare const observabilityInstanceConfigSchema: z.ZodObject<{
165
208
  sampler: (args_0: any, ...args: unknown[]) => boolean;
166
209
  } | undefined;
167
210
  exporters?: any[] | undefined;
211
+ bridge?: any;
168
212
  spanOutputProcessors?: any[] | undefined;
169
213
  includeInternalSpans?: boolean | undefined;
170
214
  requestContextKeys?: string[] | undefined;
215
+ serializationOptions?: {
216
+ maxStringLength?: number | undefined;
217
+ maxDepth?: number | undefined;
218
+ maxArrayLength?: number | undefined;
219
+ maxObjectKeys?: number | undefined;
220
+ } | undefined;
171
221
  }, {
172
222
  name: string;
173
223
  serviceName: string;
@@ -183,15 +233,72 @@ export declare const observabilityInstanceConfigSchema: z.ZodObject<{
183
233
  sampler: (args_0: any, ...args: unknown[]) => boolean;
184
234
  } | undefined;
185
235
  exporters?: any[] | undefined;
236
+ bridge?: any;
237
+ spanOutputProcessors?: any[] | undefined;
238
+ includeInternalSpans?: boolean | undefined;
239
+ requestContextKeys?: string[] | undefined;
240
+ serializationOptions?: {
241
+ maxStringLength?: number | undefined;
242
+ maxDepth?: number | undefined;
243
+ maxArrayLength?: number | undefined;
244
+ maxObjectKeys?: number | undefined;
245
+ } | undefined;
246
+ }>, {
247
+ name: string;
248
+ serviceName: string;
249
+ sampling?: {
250
+ type: SamplingStrategyType.ALWAYS;
251
+ } | {
252
+ type: SamplingStrategyType.NEVER;
253
+ } | {
254
+ type: SamplingStrategyType.RATIO;
255
+ probability: number;
256
+ } | {
257
+ type: SamplingStrategyType.CUSTOM;
258
+ sampler: (args_0: any, ...args: unknown[]) => boolean;
259
+ } | undefined;
260
+ exporters?: any[] | undefined;
261
+ bridge?: any;
186
262
  spanOutputProcessors?: any[] | undefined;
187
263
  includeInternalSpans?: boolean | undefined;
188
264
  requestContextKeys?: string[] | undefined;
265
+ serializationOptions?: {
266
+ maxStringLength?: number | undefined;
267
+ maxDepth?: number | undefined;
268
+ maxArrayLength?: number | undefined;
269
+ maxObjectKeys?: number | undefined;
270
+ } | undefined;
271
+ }, {
272
+ name: string;
273
+ serviceName: string;
274
+ sampling?: {
275
+ type: SamplingStrategyType.ALWAYS;
276
+ } | {
277
+ type: SamplingStrategyType.NEVER;
278
+ } | {
279
+ type: SamplingStrategyType.RATIO;
280
+ probability: number;
281
+ } | {
282
+ type: SamplingStrategyType.CUSTOM;
283
+ sampler: (args_0: any, ...args: unknown[]) => boolean;
284
+ } | undefined;
285
+ exporters?: any[] | undefined;
286
+ bridge?: any;
287
+ spanOutputProcessors?: any[] | undefined;
288
+ includeInternalSpans?: boolean | undefined;
289
+ requestContextKeys?: string[] | undefined;
290
+ serializationOptions?: {
291
+ maxStringLength?: number | undefined;
292
+ maxDepth?: number | undefined;
293
+ maxArrayLength?: number | undefined;
294
+ maxObjectKeys?: number | undefined;
295
+ } | undefined;
189
296
  }>;
190
297
  /**
191
298
  * Zod schema for config values in the configs map
192
299
  * This is the config object without the name field
193
300
  */
194
- export declare const observabilityConfigValueSchema: z.ZodObject<{
301
+ export declare const observabilityConfigValueSchema: z.ZodEffects<z.ZodObject<{
195
302
  serviceName: z.ZodString;
196
303
  sampling: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
197
304
  type: z.ZodLiteral<SamplingStrategyType.ALWAYS>;
@@ -225,9 +332,26 @@ export declare const observabilityConfigValueSchema: z.ZodObject<{
225
332
  sampler: (args_0: any, ...args: unknown[]) => boolean;
226
333
  }>]>>;
227
334
  exporters: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
335
+ bridge: z.ZodOptional<z.ZodAny>;
228
336
  spanOutputProcessors: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
229
337
  includeInternalSpans: z.ZodOptional<z.ZodBoolean>;
230
338
  requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
339
+ serializationOptions: z.ZodOptional<z.ZodObject<{
340
+ maxStringLength: z.ZodOptional<z.ZodNumber>;
341
+ maxDepth: z.ZodOptional<z.ZodNumber>;
342
+ maxArrayLength: z.ZodOptional<z.ZodNumber>;
343
+ maxObjectKeys: z.ZodOptional<z.ZodNumber>;
344
+ }, "strip", z.ZodTypeAny, {
345
+ maxStringLength?: number | undefined;
346
+ maxDepth?: number | undefined;
347
+ maxArrayLength?: number | undefined;
348
+ maxObjectKeys?: number | undefined;
349
+ }, {
350
+ maxStringLength?: number | undefined;
351
+ maxDepth?: number | undefined;
352
+ maxArrayLength?: number | undefined;
353
+ maxObjectKeys?: number | undefined;
354
+ }>>;
231
355
  }, "strip", z.ZodTypeAny, {
232
356
  serviceName: string;
233
357
  sampling?: {
@@ -242,9 +366,64 @@ export declare const observabilityConfigValueSchema: z.ZodObject<{
242
366
  sampler: (args_0: any, ...args: unknown[]) => boolean;
243
367
  } | undefined;
244
368
  exporters?: any[] | undefined;
369
+ bridge?: any;
370
+ spanOutputProcessors?: any[] | undefined;
371
+ includeInternalSpans?: boolean | undefined;
372
+ requestContextKeys?: string[] | undefined;
373
+ serializationOptions?: {
374
+ maxStringLength?: number | undefined;
375
+ maxDepth?: number | undefined;
376
+ maxArrayLength?: number | undefined;
377
+ maxObjectKeys?: number | undefined;
378
+ } | undefined;
379
+ }, {
380
+ serviceName: string;
381
+ sampling?: {
382
+ type: SamplingStrategyType.ALWAYS;
383
+ } | {
384
+ type: SamplingStrategyType.NEVER;
385
+ } | {
386
+ type: SamplingStrategyType.RATIO;
387
+ probability: number;
388
+ } | {
389
+ type: SamplingStrategyType.CUSTOM;
390
+ sampler: (args_0: any, ...args: unknown[]) => boolean;
391
+ } | undefined;
392
+ exporters?: any[] | undefined;
393
+ bridge?: any;
245
394
  spanOutputProcessors?: any[] | undefined;
246
395
  includeInternalSpans?: boolean | undefined;
247
396
  requestContextKeys?: string[] | undefined;
397
+ serializationOptions?: {
398
+ maxStringLength?: number | undefined;
399
+ maxDepth?: number | undefined;
400
+ maxArrayLength?: number | undefined;
401
+ maxObjectKeys?: number | undefined;
402
+ } | undefined;
403
+ }>, {
404
+ serviceName: string;
405
+ sampling?: {
406
+ type: SamplingStrategyType.ALWAYS;
407
+ } | {
408
+ type: SamplingStrategyType.NEVER;
409
+ } | {
410
+ type: SamplingStrategyType.RATIO;
411
+ probability: number;
412
+ } | {
413
+ type: SamplingStrategyType.CUSTOM;
414
+ sampler: (args_0: any, ...args: unknown[]) => boolean;
415
+ } | undefined;
416
+ exporters?: any[] | undefined;
417
+ bridge?: any;
418
+ spanOutputProcessors?: any[] | undefined;
419
+ includeInternalSpans?: boolean | undefined;
420
+ requestContextKeys?: string[] | undefined;
421
+ serializationOptions?: {
422
+ maxStringLength?: number | undefined;
423
+ maxDepth?: number | undefined;
424
+ maxArrayLength?: number | undefined;
425
+ maxObjectKeys?: number | undefined;
426
+ } | undefined;
248
427
  }, {
249
428
  serviceName: string;
250
429
  sampling?: {
@@ -259,9 +438,16 @@ export declare const observabilityConfigValueSchema: z.ZodObject<{
259
438
  sampler: (args_0: any, ...args: unknown[]) => boolean;
260
439
  } | undefined;
261
440
  exporters?: any[] | undefined;
441
+ bridge?: any;
262
442
  spanOutputProcessors?: any[] | undefined;
263
443
  includeInternalSpans?: boolean | undefined;
264
444
  requestContextKeys?: string[] | undefined;
445
+ serializationOptions?: {
446
+ maxStringLength?: number | undefined;
447
+ maxDepth?: number | undefined;
448
+ maxArrayLength?: number | undefined;
449
+ maxObjectKeys?: number | undefined;
450
+ } | undefined;
265
451
  }>;
266
452
  /**
267
453
  * Zod schema for ObservabilityRegistryConfig
@@ -269,7 +455,7 @@ export declare const observabilityConfigValueSchema: z.ZodObject<{
269
455
  * both plain config objects and pre-instantiated ObservabilityInstance objects.
270
456
  * The schema is permissive to handle edge cases gracefully (arrays, null values).
271
457
  */
272
- export declare const observabilityRegistryConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
458
+ export declare const observabilityRegistryConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
273
459
  default: z.ZodNullable<z.ZodOptional<z.ZodObject<{
274
460
  enabled: z.ZodOptional<z.ZodBoolean>;
275
461
  }, "strip", z.ZodTypeAny, {
@@ -339,5 +525,25 @@ export declare const observabilityRegistryConfigSchema: z.ZodEffects<z.ZodEffect
339
525
  }>>>;
340
526
  configs: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">, z.ZodNull]>>;
341
527
  configSelector: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
528
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
529
+ default: z.ZodNullable<z.ZodOptional<z.ZodObject<{
530
+ enabled: z.ZodOptional<z.ZodBoolean>;
531
+ }, "strip", z.ZodTypeAny, {
532
+ enabled?: boolean | undefined;
533
+ }, {
534
+ enabled?: boolean | undefined;
535
+ }>>>;
536
+ configs: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">, z.ZodNull]>>;
537
+ configSelector: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
538
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
539
+ default: z.ZodNullable<z.ZodOptional<z.ZodObject<{
540
+ enabled: z.ZodOptional<z.ZodBoolean>;
541
+ }, "strip", z.ZodTypeAny, {
542
+ enabled?: boolean | undefined;
543
+ }, {
544
+ enabled?: boolean | undefined;
545
+ }>>>;
546
+ configs: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">, z.ZodNull]>>;
547
+ configSelector: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
342
548
  }, z.ZodTypeAny, "passthrough">>;
343
549
  //# sourceMappingURL=config.d.ts.map
@@ -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,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AACH,oBAAY,oBAAoB;IAC9B,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,MAAM,WAAW;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GACxB;IAAE,IAAI,EAAE,oBAAoB,CAAC,MAAM,CAAA;CAAE,GACrC;IAAE,IAAI,EAAE,oBAAoB,CAAC,KAAK,CAAA;CAAE,GACpC;IAAE,IAAI,EAAE,oBAAoB,CAAC,KAAK,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,GACzD;IAAE,IAAI,EAAE,oBAAoB,CAAC,MAAM,CAAC;IAAC,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,oBAAoB,KAAK,OAAO,CAAA;CAAE,CAAC;AAMhG;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,gEAAgE;IAChE,IAAI,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B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;;;;;;;;;gCAqE3C,CAAC"}
@@ -1,4 +1,5 @@
1
- import type { TracingEvent, InitExporterOptions, TracingStorageStrategy } from '@mastra/core/observability';
1
+ import type { TracingEvent, InitExporterOptions } from '@mastra/core/observability';
2
+ import type { TracingStorageStrategy } from '@mastra/core/storage';
2
3
  import type { BaseExporterConfig } from './base.js';
3
4
  import { BaseExporter } from './base.js';
4
5
  interface DefaultExporterConfig extends BaseExporterConfig {
@@ -18,9 +19,9 @@ export declare class DefaultExporter extends BaseExporter {
18
19
  /**
19
20
  * Initialize the exporter (called after all dependencies are ready)
20
21
  */
21
- init(options: InitExporterOptions): void;
22
+ init(options: InitExporterOptions): Promise<void>;
22
23
  /**
23
- * Initialize the resolved strategy once storage is available
24
+ * Initialize the resolved strategy once observability store is available
24
25
  */
25
26
  private initializeStrategy;
26
27
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../src/exporters/default.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,YAAY,EAEZ,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,UAAU,qBAAsB,SAAQ,kBAAkB;IACxD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,QAAQ,CAAC,EAAE,sBAAsB,GAAG,MAAM,CAAC;CAC5C;AAwDD,qBAAa,eAAgB,SAAQ,YAAY;;IAC/C,IAAI,SAA2C;IAK/C,OAAO,CAAC,MAAM,CAAc;IAI5B,OAAO,CAAC,eAAe,CAA0B;gBAErC,MAAM,GAAE,qBAA0B;IAoC9C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AE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,QAAQ,CAAC,EAAE,sBAAsB,GAAG,MAAM,CAAC;CAC5C;AAmED,qBAAa,eAAgB,SAAQ,YAAY;;IAC/C,IAAI,SAA2C;IAM/C,OAAO,CAAC,MAAM,CAAc;IAI5B,OAAO,CAAC,eAAe,CAA0B;gBAErC,MAAM,GAAE,qBAA0B;IAoC9C;;OAEG;IACG,IAAI,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;IAgBvD;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAe1B;;OAEG;IACH,OAAO,CAAC,YAAY;IAIpB;;OAEG;IACH,OAAO,CAAC,eAAe;IAOvB;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAS9B;;OAEG;IACH,OAAO,CAAC,WAAW;IAgFnB;;OAEG;IACH,OAAO,CAAC,WAAW;IAsBnB;;OAEG;IACH,OAAO,CAAC,WAAW;IAiBnB;;OAEG;IACH,OAAO,CAAC,aAAa;IAarB;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAiC3B,OAAO,CAAC,iBAAiB;IAgDzB,OAAO,CAAC,iBAAiB;IAczB;;OAEG;YACW,mBAAmB;IAyCjC;;OAEG;IACH,OAAO,CAAC,2BAA2B;IAgBnC;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAoB7B;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAI3B;;OAEG;YACW,KAAK;IAsDnB;;OAEG;YACW,gBAAgB;IA+DxB,mBAAmB,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAyBvD,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAuBhC"}
@@ -6,4 +6,5 @@ export { CloudExporter } from './cloud.js';
6
6
  export type { CloudExporterConfig } from './cloud.js';
7
7
  export * from './console.js';
8
8
  export * from './default.js';
9
+ export * from './test.js';
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -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"}