@mastra/observability 1.0.0-beta.1 → 1.0.0-beta.3

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 CHANGED
@@ -1,5 +1,52 @@
1
1
  # @mastra/observability
2
2
 
3
+ ## 1.0.0-beta.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Add time-to-first-token (TTFT) support for Braintrust integration ([#10840](https://github.com/mastra-ai/mastra/pull/10840))
8
+
9
+ Adds `time_to_first_token` metric to Braintrust spans, populated from the `completionStartTime` attribute captured when the first streaming chunk arrives.
10
+
11
+ ```typescript
12
+ // time_to_first_token is now automatically sent to Braintrust
13
+ // as part of span metrics during streaming
14
+ const result = await agent.stream('Hello');
15
+ ```
16
+
17
+ - Add time-to-first-token (TTFT) support for Langfuse integration ([#10781](https://github.com/mastra-ai/mastra/pull/10781))
18
+
19
+ Adds `completionStartTime` to model generation spans, which Langfuse uses to calculate TTFT metrics. The timestamp is automatically captured when the first content chunk arrives during streaming.
20
+
21
+ ```typescript
22
+ // completionStartTime is now automatically captured and sent to Langfuse
23
+ // enabling TTFT metrics in your Langfuse dashboard
24
+ const result = await agent.stream('Hello');
25
+ ```
26
+
27
+ - Consolidated tool-output chunks from nested agents into single tool-result spans ([#10836](https://github.com/mastra-ai/mastra/pull/10836))
28
+
29
+ - link langfuse prompts and helper functions ([#10738](https://github.com/mastra-ai/mastra/pull/10738))
30
+
31
+ - Updated dependencies [[`3076c67`](https://github.com/mastra-ai/mastra/commit/3076c6778b18988ae7d5c4c5c466366974b2d63f), [`85d7ee1`](https://github.com/mastra-ai/mastra/commit/85d7ee18ff4e14d625a8a30ec6656bb49804989b), [`c6c1092`](https://github.com/mastra-ai/mastra/commit/c6c1092f8fbf76109303f69e000e96fd1960c4ce), [`81dc110`](https://github.com/mastra-ai/mastra/commit/81dc11008d147cf5bdc8996ead1aa61dbdebb6fc), [`7aedb74`](https://github.com/mastra-ai/mastra/commit/7aedb74883adf66af38e270e4068fd42e7a37036), [`8f02d80`](https://github.com/mastra-ai/mastra/commit/8f02d800777397e4b45d7f1ad041988a8b0c6630), [`d7aad50`](https://github.com/mastra-ai/mastra/commit/d7aad501ce61646b76b4b511e558ac4eea9884d0), [`ce0a73a`](https://github.com/mastra-ai/mastra/commit/ce0a73abeaa75b10ca38f9e40a255a645d50ebfb), [`a02e542`](https://github.com/mastra-ai/mastra/commit/a02e542d23179bad250b044b17ff023caa61739f), [`a372c64`](https://github.com/mastra-ai/mastra/commit/a372c640ad1fd12e8f0613cebdc682fc156b4d95), [`8846867`](https://github.com/mastra-ai/mastra/commit/8846867ffa9a3746767618e314bebac08eb77d87), [`42a42cf`](https://github.com/mastra-ai/mastra/commit/42a42cf3132b9786feecbb8c13c583dce5b0e198), [`ae08bf0`](https://github.com/mastra-ai/mastra/commit/ae08bf0ebc6a4e4da992b711c4a389c32ba84cf4), [`21735a7`](https://github.com/mastra-ai/mastra/commit/21735a7ef306963554a69a89b44f06c3bcd85141), [`1d877b8`](https://github.com/mastra-ai/mastra/commit/1d877b8d7b536a251c1a7a18db7ddcf4f68d6f8b)]:
32
+ - @mastra/core@1.0.0-beta.7
33
+
34
+ ## 1.0.0-beta.2
35
+
36
+ ### Minor Changes
37
+
38
+ - Adds trace tagging support to the BrainTrust and Langfuse tracing exporters. ([#10765](https://github.com/mastra-ai/mastra/pull/10765))
39
+
40
+ - Adds bidirectional integration with otel tracing via a new @mastra/otel-bridge package. ([#10482](https://github.com/mastra-ai/mastra/pull/10482))
41
+
42
+ ### Patch Changes
43
+
44
+ - Fix SensitiveDataFilter to redact structured data in JSON strings ([#10776](https://github.com/mastra-ai/mastra/pull/10776))
45
+ - Fixed issue where SensitiveDataFilter failed to redact tool results in MODEL_STEP span input messages ([#9846](https://github.com/mastra-ai/mastra/issues/9846))
46
+
47
+ - Updated dependencies [[`ac0d2f4`](https://github.com/mastra-ai/mastra/commit/ac0d2f4ff8831f72c1c66c2be809706d17f65789), [`1a0d3fc`](https://github.com/mastra-ai/mastra/commit/1a0d3fc811482c9c376cdf79ee615c23bae9b2d6), [`85a628b`](https://github.com/mastra-ai/mastra/commit/85a628b1224a8f64cd82ea7f033774bf22df7a7e), [`c237233`](https://github.com/mastra-ai/mastra/commit/c23723399ccedf7f5744b3f40997b79246bfbe64), [`15f9e21`](https://github.com/mastra-ai/mastra/commit/15f9e216177201ea6e3f6d0bfb063fcc0953444f), [`ff94dea`](https://github.com/mastra-ai/mastra/commit/ff94dea935f4e34545c63bcb6c29804732698809), [`5b2ff46`](https://github.com/mastra-ai/mastra/commit/5b2ff4651df70c146523a7fca773f8eb0a2272f8), [`db41688`](https://github.com/mastra-ai/mastra/commit/db4168806d007417e2e60b4f68656dca4e5f40c9), [`5ca599d`](https://github.com/mastra-ai/mastra/commit/5ca599d0bb59a1595f19f58473fcd67cc71cef58), [`bff1145`](https://github.com/mastra-ai/mastra/commit/bff114556b3cbadad9b2768488708f8ad0e91475), [`5c8ca24`](https://github.com/mastra-ai/mastra/commit/5c8ca247094e0cc2cdbd7137822fb47241f86e77), [`e191844`](https://github.com/mastra-ai/mastra/commit/e1918444ca3f80e82feef1dad506cd4ec6e2875f), [`22553f1`](https://github.com/mastra-ai/mastra/commit/22553f11c63ee5e966a9c034a349822249584691), [`7237163`](https://github.com/mastra-ai/mastra/commit/72371635dbf96a87df4b073cc48fc655afbdce3d), [`2500740`](https://github.com/mastra-ai/mastra/commit/2500740ea23da067d6e50ec71c625ab3ce275e64), [`873ecbb`](https://github.com/mastra-ai/mastra/commit/873ecbb517586aa17d2f1e99283755b3ebb2863f), [`4f9bbe5`](https://github.com/mastra-ai/mastra/commit/4f9bbe5968f42c86f4930b8193de3c3c17e5bd36), [`02e51fe`](https://github.com/mastra-ai/mastra/commit/02e51feddb3d4155cfbcc42624fd0d0970d032c0), [`8f3fa3a`](https://github.com/mastra-ai/mastra/commit/8f3fa3a652bb77da092f913ec51ae46e3a7e27dc), [`cd29ad2`](https://github.com/mastra-ai/mastra/commit/cd29ad23a255534e8191f249593849ed29160886), [`bdf4d8c`](https://github.com/mastra-ai/mastra/commit/bdf4d8cdc656d8a2c21d81834bfa3bfa70f56c16), [`854e3da`](https://github.com/mastra-ai/mastra/commit/854e3dad5daac17a91a20986399d3a51f54bf68b), [`ce18d38`](https://github.com/mastra-ai/mastra/commit/ce18d38678c65870350d123955014a8432075fd9), [`cccf9c8`](https://github.com/mastra-ai/mastra/commit/cccf9c8b2d2dfc1a5e63919395b83d78c89682a0), [`61a5705`](https://github.com/mastra-ai/mastra/commit/61a570551278b6743e64243b3ce7d73de915ca8a), [`db70a48`](https://github.com/mastra-ai/mastra/commit/db70a48aeeeeb8e5f92007e8ede52c364ce15287), [`f0fdc14`](https://github.com/mastra-ai/mastra/commit/f0fdc14ee233d619266b3d2bbdeea7d25cfc6d13), [`db18bc9`](https://github.com/mastra-ai/mastra/commit/db18bc9c3825e2c1a0ad9a183cc9935f6691bfa1), [`9b37b56`](https://github.com/mastra-ai/mastra/commit/9b37b565e1f2a76c24f728945cc740c2b09be9da), [`41a23c3`](https://github.com/mastra-ai/mastra/commit/41a23c32f9877d71810f37e24930515df2ff7a0f), [`5d171ad`](https://github.com/mastra-ai/mastra/commit/5d171ad9ef340387276b77c2bb3e83e83332d729), [`f03ae60`](https://github.com/mastra-ai/mastra/commit/f03ae60500fe350c9d828621006cdafe1975fdd8), [`d1e74a0`](https://github.com/mastra-ai/mastra/commit/d1e74a0a293866dece31022047f5dbab65a304d0), [`39e7869`](https://github.com/mastra-ai/mastra/commit/39e7869bc7d0ee391077ce291474d8a84eedccff), [`5761926`](https://github.com/mastra-ai/mastra/commit/57619260c4a2cdd598763abbacd90de594c6bc76), [`c900fdd`](https://github.com/mastra-ai/mastra/commit/c900fdd504c41348efdffb205cfe80d48c38fa33), [`604a79f`](https://github.com/mastra-ai/mastra/commit/604a79fecf276e26a54a3fe01bb94e65315d2e0e), [`887f0b4`](https://github.com/mastra-ai/mastra/commit/887f0b4746cdbd7cb7d6b17ac9f82aeb58037ea5), [`2562143`](https://github.com/mastra-ai/mastra/commit/256214336b4faa78646c9c1776612393790d8784), [`ef11a61`](https://github.com/mastra-ai/mastra/commit/ef11a61920fa0ed08a5b7ceedd192875af119749)]:
48
+ - @mastra/core@1.0.0-beta.6
49
+
3
50
  ## 1.0.0-beta.1
4
51
 
5
52
  ### Patch Changes
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 } 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 */
@@ -109,10 +111,10 @@ export declare const samplingStrategySchema: z.ZodDiscriminatedUnion<"type", [z.
109
111
  }>]>;
110
112
  /**
111
113
  * Zod schema for ObservabilityInstanceConfig
112
- * Note: exporters, spanOutputProcessors, and configSelector are validated as any
114
+ * Note: exporters, spanOutputProcessors, bridge, and configSelector are validated as any
113
115
  * since they're complex runtime objects
114
116
  */
115
- export declare const observabilityInstanceConfigSchema: z.ZodObject<{
117
+ export declare const observabilityInstanceConfigSchema: z.ZodEffects<z.ZodObject<{
116
118
  name: z.ZodString;
117
119
  serviceName: z.ZodString;
118
120
  sampling: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -147,6 +149,7 @@ export declare const observabilityInstanceConfigSchema: z.ZodObject<{
147
149
  sampler: (args_0: any, ...args: unknown[]) => boolean;
148
150
  }>]>>;
149
151
  exporters: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
152
+ bridge: z.ZodOptional<z.ZodAny>;
150
153
  spanOutputProcessors: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
151
154
  includeInternalSpans: z.ZodOptional<z.ZodBoolean>;
152
155
  requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -165,6 +168,7 @@ export declare const observabilityInstanceConfigSchema: z.ZodObject<{
165
168
  sampler: (args_0: any, ...args: unknown[]) => boolean;
166
169
  } | undefined;
167
170
  exporters?: any[] | undefined;
171
+ bridge?: any;
168
172
  spanOutputProcessors?: any[] | undefined;
169
173
  includeInternalSpans?: boolean | undefined;
170
174
  requestContextKeys?: string[] | undefined;
@@ -183,6 +187,45 @@ export declare const observabilityInstanceConfigSchema: z.ZodObject<{
183
187
  sampler: (args_0: any, ...args: unknown[]) => boolean;
184
188
  } | undefined;
185
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;
186
229
  spanOutputProcessors?: any[] | undefined;
187
230
  includeInternalSpans?: boolean | undefined;
188
231
  requestContextKeys?: string[] | undefined;
@@ -191,7 +234,7 @@ export declare const observabilityInstanceConfigSchema: z.ZodObject<{
191
234
  * Zod schema for config values in the configs map
192
235
  * This is the config object without the name field
193
236
  */
194
- export declare const observabilityConfigValueSchema: z.ZodObject<{
237
+ export declare const observabilityConfigValueSchema: z.ZodEffects<z.ZodObject<{
195
238
  serviceName: z.ZodString;
196
239
  sampling: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
197
240
  type: z.ZodLiteral<SamplingStrategyType.ALWAYS>;
@@ -225,6 +268,7 @@ export declare const observabilityConfigValueSchema: z.ZodObject<{
225
268
  sampler: (args_0: any, ...args: unknown[]) => boolean;
226
269
  }>]>>;
227
270
  exporters: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
271
+ bridge: z.ZodOptional<z.ZodAny>;
228
272
  spanOutputProcessors: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
229
273
  includeInternalSpans: z.ZodOptional<z.ZodBoolean>;
230
274
  requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -242,6 +286,43 @@ export declare const observabilityConfigValueSchema: z.ZodObject<{
242
286
  sampler: (args_0: any, ...args: unknown[]) => boolean;
243
287
  } | undefined;
244
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;
245
326
  spanOutputProcessors?: any[] | undefined;
246
327
  includeInternalSpans?: boolean | undefined;
247
328
  requestContextKeys?: string[] | undefined;
@@ -259,6 +340,7 @@ export declare const observabilityConfigValueSchema: z.ZodObject<{
259
340
  sampler: (args_0: any, ...args: unknown[]) => boolean;
260
341
  } | undefined;
261
342
  exporters?: any[] | undefined;
343
+ bridge?: any;
262
344
  spanOutputProcessors?: any[] | undefined;
263
345
  includeInternalSpans?: boolean | undefined;
264
346
  requestContextKeys?: string[] | undefined;
@@ -269,7 +351,7 @@ export declare const observabilityConfigValueSchema: z.ZodObject<{
269
351
  * both plain config objects and pre-instantiated ObservabilityInstance objects.
270
352
  * The schema is permissive to handle edge cases gracefully (arrays, null values).
271
353
  */
272
- export declare const observabilityRegistryConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
354
+ export declare const observabilityRegistryConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
273
355
  default: z.ZodNullable<z.ZodOptional<z.ZodObject<{
274
356
  enabled: z.ZodOptional<z.ZodBoolean>;
275
357
  }, "strip", z.ZodTypeAny, {
@@ -339,5 +421,25 @@ export declare const observabilityRegistryConfigSchema: z.ZodEffects<z.ZodEffect
339
421
  }>>>;
340
422
  configs: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">, z.ZodNull]>>;
341
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>>;
342
444
  }, z.ZodTypeAny, "passthrough">>;
343
445
  //# 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,E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AAqB,CAAC,CAAC;IAC5F,yEAAyE;IACzE,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAMD;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAejC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB3C,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBxC,CAAC;AAEJ;;;;;GAKG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAqE3C,CAAC"}
@@ -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"}