@mastra/observability 0.0.0-fix-9244-clickhouse-metadata-20251105010900 → 0.0.0-main-test-05-11-2025-2-20251105214713
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 +33 -3
- package/dist/config.d.ts +75 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/default.d.ts +29 -0
- package/dist/default.d.ts.map +1 -0
- package/dist/exporters/base.d.ts +10 -10
- package/dist/exporters/base.d.ts.map +1 -1
- package/dist/exporters/cloud.d.ts +2 -2
- package/dist/exporters/cloud.d.ts.map +1 -1
- package/dist/exporters/console.d.ts +2 -2
- package/dist/exporters/console.d.ts.map +1 -1
- package/dist/exporters/default.d.ts +10 -14
- package/dist/exporters/default.d.ts.map +1 -1
- package/dist/exporters/index.d.ts +1 -1
- package/dist/index.cjs +1691 -1645
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1688 -1633
- package/dist/index.js.map +1 -1
- package/dist/{tracers → instances}/base.d.ts +26 -25
- package/dist/instances/base.d.ts.map +1 -0
- package/dist/instances/default.d.ts +8 -0
- package/dist/instances/default.d.ts.map +1 -0
- package/dist/instances/index.d.ts.map +1 -0
- package/dist/model-tracing.d.ts +6 -6
- package/dist/model-tracing.d.ts.map +1 -1
- package/dist/registry.d.ts +46 -48
- package/dist/registry.d.ts.map +1 -1
- package/dist/span_processors/index.d.ts +1 -1
- package/dist/span_processors/sensitive-data-filter.d.ts +4 -4
- package/dist/span_processors/sensitive-data-filter.d.ts.map +1 -1
- package/dist/spans/base.d.ts +11 -11
- package/dist/spans/base.d.ts.map +1 -1
- package/dist/spans/default.d.ts +4 -4
- package/dist/spans/default.d.ts.map +1 -1
- package/dist/spans/index.d.ts +1 -1
- package/dist/spans/no-op.d.ts +4 -4
- package/dist/spans/no-op.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/default-entrypoint.d.ts +0 -16
- package/dist/default-entrypoint.d.ts.map +0 -1
- package/dist/init.d.ts +0 -2
- package/dist/init.d.ts.map +0 -1
- package/dist/tracers/base.d.ts.map +0 -1
- package/dist/tracers/default.d.ts +0 -7
- package/dist/tracers/default.d.ts.map +0 -1
- package/dist/tracers/index.d.ts.map +0 -1
- /package/dist/{tracers → instances}/index.d.ts +0 -0
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* BaseObservability - Abstract base class for Observability implementations
|
|
3
3
|
*/
|
|
4
4
|
import { MastraBase } from '@mastra/core/base';
|
|
5
5
|
import type { RequestContext } from '@mastra/core/di';
|
|
6
6
|
import type { IMastraLogger } from '@mastra/core/logger';
|
|
7
|
-
import type {
|
|
7
|
+
import type { Span, SpanType, ObservabilityExporter, SpanOutputProcessor, TracingEvent, AnySpan, StartSpanOptions, CreateSpanOptions, ObservabilityInstance, CustomSamplerOptions, AnyExportedSpan, TraceState, TracingOptions } from '@mastra/core/observability';
|
|
8
|
+
import type { ObservabilityInstanceConfig } from '../config.js';
|
|
8
9
|
/**
|
|
9
|
-
* Abstract base class for all
|
|
10
|
+
* Abstract base class for all Observability implementations in Mastra.
|
|
10
11
|
*/
|
|
11
|
-
export declare abstract class
|
|
12
|
-
protected config: Required<
|
|
13
|
-
constructor(config:
|
|
12
|
+
export declare abstract class BaseObservabilityInstance extends MastraBase implements ObservabilityInstance {
|
|
13
|
+
protected config: Required<ObservabilityInstanceConfig>;
|
|
14
|
+
constructor(config: ObservabilityInstanceConfig);
|
|
14
15
|
/**
|
|
15
|
-
* Override setLogger to add
|
|
16
|
+
* Override setLogger to add Observability specific initialization log
|
|
16
17
|
* and propagate logger to exporters
|
|
17
18
|
*/
|
|
18
19
|
__setLogger(logger: IMastraLogger): void;
|
|
19
|
-
protected get exporters():
|
|
20
|
-
protected get
|
|
20
|
+
protected get exporters(): ObservabilityExporter[];
|
|
21
|
+
protected get spanOutputProcessors(): SpanOutputProcessor[];
|
|
21
22
|
/**
|
|
22
|
-
* Start a new span of a specific
|
|
23
|
+
* Start a new span of a specific SpanType
|
|
23
24
|
*/
|
|
24
|
-
startSpan<TType extends
|
|
25
|
+
startSpan<TType extends SpanType>(options: StartSpanOptions<TType>): Span<TType>;
|
|
25
26
|
/**
|
|
26
27
|
* Create a new span (called after sampling)
|
|
27
28
|
*
|
|
@@ -34,25 +35,25 @@ export declare abstract class BaseAITracing extends MastraBase implements AITrac
|
|
|
34
35
|
* - Wire span lifecycle callbacks
|
|
35
36
|
* - Emit span_started event
|
|
36
37
|
*/
|
|
37
|
-
protected abstract createSpan<TType extends
|
|
38
|
+
protected abstract createSpan<TType extends SpanType>(options: CreateSpanOptions<TType>): Span<TType>;
|
|
38
39
|
/**
|
|
39
40
|
* Get current configuration
|
|
40
41
|
*/
|
|
41
|
-
getConfig(): Readonly<Required<
|
|
42
|
+
getConfig(): Readonly<Required<ObservabilityInstanceConfig>>;
|
|
42
43
|
/**
|
|
43
44
|
* Get all exporters
|
|
44
45
|
*/
|
|
45
|
-
getExporters(): readonly
|
|
46
|
+
getExporters(): readonly ObservabilityExporter[];
|
|
46
47
|
/**
|
|
47
|
-
* Get all processors
|
|
48
|
+
* Get all span output processors
|
|
48
49
|
*/
|
|
49
|
-
|
|
50
|
+
getSpanOutputProcessors(): readonly SpanOutputProcessor[];
|
|
50
51
|
/**
|
|
51
52
|
* Get the logger instance (for exporters and other components)
|
|
52
53
|
*/
|
|
53
54
|
getLogger(): IMastraLogger;
|
|
54
55
|
/**
|
|
55
|
-
* Automatically wires up
|
|
56
|
+
* Automatically wires up Observability lifecycle events for any span
|
|
56
57
|
* This ensures all spans emit events regardless of implementation
|
|
57
58
|
*/
|
|
58
59
|
private wireSpanLifecycle;
|
|
@@ -73,32 +74,32 @@ export declare abstract class BaseAITracing extends MastraBase implements AITrac
|
|
|
73
74
|
*/
|
|
74
75
|
protected extractKeys(requestContext: RequestContext, keys: string[]): Record<string, any>;
|
|
75
76
|
/**
|
|
76
|
-
* Process a span through all processors
|
|
77
|
+
* Process a span through all output processors
|
|
77
78
|
*/
|
|
78
79
|
private processSpan;
|
|
79
|
-
getSpanForExport(span:
|
|
80
|
+
getSpanForExport(span: AnySpan): AnyExportedSpan | undefined;
|
|
80
81
|
/**
|
|
81
82
|
* Emit a span started event
|
|
82
83
|
*/
|
|
83
|
-
protected emitSpanStarted(span:
|
|
84
|
+
protected emitSpanStarted(span: AnySpan): void;
|
|
84
85
|
/**
|
|
85
86
|
* Emit a span ended event (called automatically when spans end)
|
|
86
87
|
*/
|
|
87
|
-
protected emitSpanEnded(span:
|
|
88
|
+
protected emitSpanEnded(span: AnySpan): void;
|
|
88
89
|
/**
|
|
89
90
|
* Emit a span updated event
|
|
90
91
|
*/
|
|
91
|
-
protected emitSpanUpdated(span:
|
|
92
|
+
protected emitSpanUpdated(span: AnySpan): void;
|
|
92
93
|
/**
|
|
93
94
|
* Export tracing event through all exporters (realtime mode)
|
|
94
95
|
*/
|
|
95
|
-
protected
|
|
96
|
+
protected exportTracingEvent(event: TracingEvent): Promise<void>;
|
|
96
97
|
/**
|
|
97
|
-
* Initialize
|
|
98
|
+
* Initialize Observability (called by Mastra during component registration)
|
|
98
99
|
*/
|
|
99
100
|
init(): void;
|
|
100
101
|
/**
|
|
101
|
-
* Shutdown
|
|
102
|
+
* Shutdown Observability and clean up resources
|
|
102
103
|
*/
|
|
103
104
|
shutdown(): Promise<void>;
|
|
104
105
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/instances/base.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,KAAK,EACV,IAAI,EACJ,QAAQ,EACR,qBAA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U,GAAG,SAAS;IAgBpF;;OAEG;IACH,SAAS,CAAC,iCAAiC,CACzC,cAAc,EAAE,cAAc,GAAG,SAAS,EAC1C,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,EACjD,UAAU,EAAE,UAAU,GAAG,SAAS,GACjC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS;IAkBlC;;OAEG;IACH,SAAS,CAAC,WAAW,CAAC,cAAc,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IA2B1F;;OAEG;IACH,OAAO,CAAC,WAAW;IAqBnB,gBAAgB,CAAC,IAAI,EAAE,OAAO,GAAG,eAAe,GAAG,SAAS;IAQ5D;;OAEG;IACH,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI;IAS9C;;OAEG;IACH,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI;IAS5C;;OAEG;IACH,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI;IAS9C;;OAEG;cACa,kBAAkB,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAoBtE;;OAEG;IACH,IAAI,IAAI,IAAI;IASZ;;OAEG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAahC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SpanType, Span, CreateSpanOptions } from '@mastra/core/observability';
|
|
2
|
+
import type { ObservabilityInstanceConfig } from '../config.js';
|
|
3
|
+
import { BaseObservabilityInstance } from './base.js';
|
|
4
|
+
export declare class DefaultObservabilityInstance extends BaseObservabilityInstance {
|
|
5
|
+
constructor(config: ObservabilityInstanceConfig);
|
|
6
|
+
protected createSpan<TType extends SpanType>(options: CreateSpanOptions<TType>): Span<TType>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=default.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../src/instances/default.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,WAAW,CAAC;AAE7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,QAAQ,CAAC;AAEnD,qBAAa,4BAA6B,SAAQ,yBAAyB;gBAC7D,MAAM,EAAE,2BAA2B;IAI/C,SAAS,CAAC,UAAU,CAAC,KAAK,SAAS,QAAQ,EAAE,OAAO,EAAE,iBAAiB,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;CAI7F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/instances/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC"}
|
package/dist/model-tracing.d.ts
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Hierarchy: MODEL_GENERATION -> MODEL_STEP -> MODEL_CHUNK
|
|
9
9
|
*/
|
|
10
|
-
import {
|
|
11
|
-
import type {
|
|
10
|
+
import { SpanType } from '@mastra/core/observability';
|
|
11
|
+
import type { Span, EndSpanOptions, ErrorSpanOptions, TracingContext, UpdateSpanOptions } from '@mastra/core/observability';
|
|
12
12
|
/**
|
|
13
13
|
* Manages MODEL_STEP and MODEL_CHUNK span tracking for streaming Model responses.
|
|
14
14
|
*
|
|
@@ -17,7 +17,7 @@ import type { AISpan, EndSpanOptions, ErrorSpanOptions, TracingContext, UpdateSp
|
|
|
17
17
|
*/
|
|
18
18
|
export declare class ModelSpanTracker {
|
|
19
19
|
#private;
|
|
20
|
-
constructor(modelSpan?:
|
|
20
|
+
constructor(modelSpan?: Span<SpanType.MODEL_GENERATION>);
|
|
21
21
|
/**
|
|
22
22
|
* Get the tracing context for creating child spans.
|
|
23
23
|
* Returns the current step span if active, otherwise the model span.
|
|
@@ -26,15 +26,15 @@ export declare class ModelSpanTracker {
|
|
|
26
26
|
/**
|
|
27
27
|
* Report an error on the generation span
|
|
28
28
|
*/
|
|
29
|
-
reportGenerationError(options: ErrorSpanOptions<
|
|
29
|
+
reportGenerationError(options: ErrorSpanOptions<SpanType.MODEL_GENERATION>): void;
|
|
30
30
|
/**
|
|
31
31
|
* End the generation span
|
|
32
32
|
*/
|
|
33
|
-
endGeneration(options?: EndSpanOptions<
|
|
33
|
+
endGeneration(options?: EndSpanOptions<SpanType.MODEL_GENERATION>): void;
|
|
34
34
|
/**
|
|
35
35
|
* Update the generation span
|
|
36
36
|
*/
|
|
37
|
-
updateGeneration(options: UpdateSpanOptions<
|
|
37
|
+
updateGeneration(options: UpdateSpanOptions<SpanType.MODEL_GENERATION>): void;
|
|
38
38
|
/**
|
|
39
39
|
* Wraps a stream with model tracing transform to track MODEL_STEP and MODEL_CHUNK spans.
|
|
40
40
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-tracing.d.ts","sourceRoot":"","sources":["../src/model-tracing.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"model-tracing.d.ts","sourceRoot":"","sources":["../src/model-tracing.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,KAAK,EACV,IAAI,EACJ,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EAClB,MAAM,4BAA4B,CAAC;AAGpC;;;;;GAKG;AACH,qBAAa,gBAAgB;;gBAQf,SAAS,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IAIvD;;;OAGG;IACH,iBAAiB,IAAI,cAAc;IAMnC;;OAEG;IACH,qBAAqB,CAAC,OAAO,EAAE,gBAAgB,CAAC,QAAQ,CAAC,gBAAgB,CAAC,GAAG,IAAI;IAIjF;;OAEG;IACH,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,gBAAgB,CAAC,GAAG,IAAI;IAIxE;;OAEG;IACH,gBAAgB,CAAC,OAAO,EAAE,iBAAiB,CAAC,QAAQ,CAAC,gBAAgB,CAAC,GAAG,IAAI;IA4O7E;;;;;OAKG;IACH,UAAU,CAAC,CAAC,SAAS;QAAE,WAAW,EAAE,QAAQ,CAAA;KAAE,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC;CAyE9D"}
|
package/dist/registry.d.ts
CHANGED
|
@@ -1,51 +1,49 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Observability Registry for Mastra
|
|
3
3
|
*
|
|
4
|
-
* Provides
|
|
5
|
-
*/
|
|
6
|
-
import type {
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
export declare
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
*/
|
|
50
|
-
export declare function setupAITracingRegistry(config: ObservabilityRegistryConfig): void;
|
|
4
|
+
* Provides registry for Observability instances.
|
|
5
|
+
*/
|
|
6
|
+
import type { ObservabilityInstance, ConfigSelectorOptions, ConfigSelector } from '@mastra/core/observability';
|
|
7
|
+
/**
|
|
8
|
+
* Registry for Observability instances.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ObservabilityRegistry {
|
|
11
|
+
#private;
|
|
12
|
+
/**
|
|
13
|
+
* Register a tracing instance
|
|
14
|
+
*/
|
|
15
|
+
register(name: string, instance: ObservabilityInstance, isDefault?: boolean): void;
|
|
16
|
+
/**
|
|
17
|
+
* Get a tracing instance by name
|
|
18
|
+
*/
|
|
19
|
+
get(name: string): ObservabilityInstance | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Get the default tracing instance
|
|
22
|
+
*/
|
|
23
|
+
getDefault(): ObservabilityInstance | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Set the tracing selector function
|
|
26
|
+
*/
|
|
27
|
+
setSelector(selector: ConfigSelector): void;
|
|
28
|
+
/**
|
|
29
|
+
* Get the selected tracing instance based on context
|
|
30
|
+
*/
|
|
31
|
+
getSelected(options: ConfigSelectorOptions): ObservabilityInstance | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Unregister a tracing instance
|
|
34
|
+
*/
|
|
35
|
+
unregister(name: string): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Shutdown all instances and clear the registry
|
|
38
|
+
*/
|
|
39
|
+
shutdown(): Promise<void>;
|
|
40
|
+
/**
|
|
41
|
+
* Clear all instances without shutdown
|
|
42
|
+
*/
|
|
43
|
+
clear(): void;
|
|
44
|
+
/**
|
|
45
|
+
* list all registered instances
|
|
46
|
+
*/
|
|
47
|
+
list(): ReadonlyMap<string, ObservabilityInstance>;
|
|
48
|
+
}
|
|
51
49
|
//# sourceMappingURL=registry.d.ts.map
|
package/dist/registry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAM/G;;GAEG;AACH,qBAAa,qBAAqB;;IAKhC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,qBAAqB,EAAE,SAAS,UAAQ,GAAG,IAAI;IAahF;;OAEG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,qBAAqB,GAAG,SAAS;IAIpD;;OAEG;IACH,UAAU,IAAI,qBAAqB,GAAG,SAAS;IAI/C;;OAEG;IACH,WAAW,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI;IAI3C;;OAEG;IACH,WAAW,CAAC,OAAO,EAAE,qBAAqB,GAAG,qBAAqB,GAAG,SAAS;IAa9E;;OAEG;IACH,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAYjC;;OAEG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAU/B;;OAEG;IACH,KAAK,IAAI,IAAI;IAMb;;OAEG;IACH,IAAI,IAAI,WAAW,CAAC,MAAM,EAAE,qBAAqB,CAAC;CAGnD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SpanOutputProcessor, AnySpan } from '@mastra/core/observability';
|
|
2
2
|
export type RedactionStyle = 'full' | 'partial';
|
|
3
3
|
/**
|
|
4
4
|
* Options for configuring the SensitiveDataFilter.
|
|
@@ -29,7 +29,7 @@ export interface SensitiveDataFilterOptions {
|
|
|
29
29
|
/**
|
|
30
30
|
* SensitiveDataFilter
|
|
31
31
|
*
|
|
32
|
-
* An
|
|
32
|
+
* An SpanOutputProcessor that redacts sensitive information from span fields.
|
|
33
33
|
*
|
|
34
34
|
* - Sensitive keys are matched case-insensitively, normalized to remove separators.
|
|
35
35
|
* - Sensitive values are redacted using either full or partial redaction.
|
|
@@ -37,7 +37,7 @@ export interface SensitiveDataFilterOptions {
|
|
|
37
37
|
* - If filtering a field fails, the field is replaced with:
|
|
38
38
|
* `{ error: { processor: "sensitive-data-filter" } }`
|
|
39
39
|
*/
|
|
40
|
-
export declare class SensitiveDataFilter implements
|
|
40
|
+
export declare class SensitiveDataFilter implements SpanOutputProcessor {
|
|
41
41
|
name: string;
|
|
42
42
|
private sensitiveFields;
|
|
43
43
|
private redactionToken;
|
|
@@ -50,7 +50,7 @@ export declare class SensitiveDataFilter implements AISpanProcessor {
|
|
|
50
50
|
* @param span - The input span to filter
|
|
51
51
|
* @returns A new span with sensitive values redacted
|
|
52
52
|
*/
|
|
53
|
-
process(span:
|
|
53
|
+
process(span: AnySpan): AnySpan;
|
|
54
54
|
/**
|
|
55
55
|
* Recursively filter objects/arrays for sensitive keys.
|
|
56
56
|
* Handles circular references by replacing with a marker.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sensitive-data-filter.d.ts","sourceRoot":"","sources":["../../src/span_processors/sensitive-data-filter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"sensitive-data-filter.d.ts","sourceRoot":"","sources":["../../src/span_processors/sensitive-data-filter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAE/E,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,SAAS,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAE3B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED;;;;;;;;;;GAUG;AACH,qBAAa,mBAAoB,YAAW,mBAAmB;IAC7D,IAAI,SAA2B;IAC/B,OAAO,CAAC,eAAe,CAAW;IAClC,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,cAAc,CAAiB;gBAE3B,OAAO,GAAE,0BAA+B;IAyBpD;;;;;;OAMG;IACH,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO;IAS/B;;;OAGG;IACH,OAAO,CAAC,UAAU;IAgClB,OAAO,CAAC,SAAS;IAQjB;;;OAGG;IACH,OAAO,CAAC,YAAY;IAIpB;;;;;;;;OAQG;IACH,OAAO,CAAC,WAAW;IAOnB;;;;;;OAMG;IACH,OAAO,CAAC,WAAW;IAab,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAGhC"}
|
package/dist/spans/base.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
3
|
-
export declare abstract class
|
|
1
|
+
import type { Span, SpanTypeMap, AnySpan, ChildSpanOptions, ChildEventOptions, EndSpanOptions, ErrorSpanOptions, UpdateSpanOptions, CreateSpanOptions, ObservabilityInstance, ExportedSpan, TraceState, IModelSpanTracker, AIModelGenerationSpan } from '@mastra/core/observability';
|
|
2
|
+
import { SpanType } from '@mastra/core/observability';
|
|
3
|
+
export declare abstract class BaseSpan<TType extends SpanType = any> implements Span<TType> {
|
|
4
4
|
abstract id: string;
|
|
5
5
|
abstract traceId: string;
|
|
6
6
|
name: string;
|
|
7
7
|
type: TType;
|
|
8
|
-
attributes:
|
|
9
|
-
parent?:
|
|
8
|
+
attributes: SpanTypeMap[TType];
|
|
9
|
+
parent?: AnySpan;
|
|
10
10
|
startTime: Date;
|
|
11
11
|
endTime?: Date;
|
|
12
12
|
isEvent: boolean;
|
|
13
13
|
isInternal: boolean;
|
|
14
|
-
|
|
14
|
+
observabilityInstance: ObservabilityInstance;
|
|
15
15
|
input?: any;
|
|
16
16
|
output?: any;
|
|
17
17
|
errorInfo?: {
|
|
@@ -25,15 +25,15 @@ export declare abstract class BaseAISpan<TType extends AISpanType = any> impleme
|
|
|
25
25
|
traceState?: TraceState;
|
|
26
26
|
/** Parent span ID (for root spans that are children of external spans) */
|
|
27
27
|
protected parentSpanId?: string;
|
|
28
|
-
constructor(options: CreateSpanOptions<TType>,
|
|
28
|
+
constructor(options: CreateSpanOptions<TType>, observabilityInstance: ObservabilityInstance);
|
|
29
29
|
/** End the span */
|
|
30
30
|
abstract end(options?: EndSpanOptions<TType>): void;
|
|
31
31
|
/** Record an error for the span, optionally end the span as well */
|
|
32
32
|
abstract error(options: ErrorSpanOptions<TType>): void;
|
|
33
33
|
/** Update span attributes */
|
|
34
34
|
abstract update(options: UpdateSpanOptions<TType>): void;
|
|
35
|
-
createChildSpan(options: ChildSpanOptions<
|
|
36
|
-
createEventSpan<TChildType extends
|
|
35
|
+
createChildSpan(options: ChildSpanOptions<SpanType.MODEL_GENERATION>): AIModelGenerationSpan;
|
|
36
|
+
createEventSpan<TChildType extends SpanType>(options: ChildEventOptions<TChildType>): Span<TChildType>;
|
|
37
37
|
/**
|
|
38
38
|
* Create a ModelSpanTracker for this span (only works if this is a MODEL_GENERATION span)
|
|
39
39
|
* Returns undefined for non-MODEL_GENERATION spans
|
|
@@ -46,9 +46,9 @@ export declare abstract class BaseAISpan<TType extends AISpanType = any> impleme
|
|
|
46
46
|
/** Get the closest parent spanId that isn't an internal span */
|
|
47
47
|
getParentSpanId(includeInternalSpans?: boolean): string | undefined;
|
|
48
48
|
/** Find the closest parent span of a specific type by walking up the parent chain */
|
|
49
|
-
findParent<T extends
|
|
49
|
+
findParent<T extends SpanType>(spanType: T): Span<T> | undefined;
|
|
50
50
|
/** Returns a lightweight span ready for export */
|
|
51
|
-
exportSpan(includeInternalSpans?: boolean):
|
|
51
|
+
exportSpan(includeInternalSpans?: boolean): ExportedSpan<TType>;
|
|
52
52
|
get externalTraceId(): string | undefined;
|
|
53
53
|
}
|
|
54
54
|
export interface DeepCleanOptions {
|
package/dist/spans/base.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/spans/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/spans/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,IAAI,EACJ,WAAW,EACX,OAAO,EACP,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,QAAQ,EAAiB,MAAM,4BAA4B,CAAC;AA6CrE,8BAAsB,QAAQ,CAAC,KAAK,SAAS,QAAQ,GAAG,GAAG,CAAE,YAAW,IAAI,CAAC,KAAK,CAAC;IACjF,SAAgB,EAAE,EAAE,MAAM,CAAC;IAC3B,SAAgB,OAAO,EAAE,MAAM,CAAC;IAEzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,KAAK,CAAC;IACZ,UAAU,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,SAAS,CAAC,EAAE;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EA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G,YAAY,CAAC,KAAK,CAAC;IAmBtE,IAAI,eAAe,IAAI,MAAM,GAAG,SAAS,CAExC;CACF;AASD,MAAM,WAAW,gBAAgB;IAC/B,WAAW,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CACvB,KAAK,EAAE,GAAG,EACV,OAAO,GAAE,gBAAqB,EAC9B,KAAK,GAAE,OAAO,CAAC,GAAG,CAAiB,EACnC,MAAM,GAAE,MAAU,GACjB,GAAG,CAwCL"}
|
package/dist/spans/default.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
3
|
-
export declare class
|
|
1
|
+
import type { SpanType, ObservabilityInstance, EndSpanOptions, ErrorSpanOptions, UpdateSpanOptions, CreateSpanOptions } from '@mastra/core/observability';
|
|
2
|
+
import { BaseSpan } from './base.js';
|
|
3
|
+
export declare class DefaultSpan<TType extends SpanType> extends BaseSpan<TType> {
|
|
4
4
|
id: string;
|
|
5
5
|
traceId: string;
|
|
6
|
-
constructor(options: CreateSpanOptions<TType>,
|
|
6
|
+
constructor(options: CreateSpanOptions<TType>, observabilityInstance: ObservabilityInstance);
|
|
7
7
|
end(options?: EndSpanOptions<TType>): void;
|
|
8
8
|
error(options: ErrorSpanOptions<TType>): void;
|
|
9
9
|
update(options: UpdateSpanOptions<TType>): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../src/spans/default.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../src/spans/default.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,QAAQ,EACR,qBAAqB,EACrB,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAa,MAAM,QAAQ,CAAC;AAE7C,qBAAa,WAAW,CAAC,KAAK,SAAS,QAAQ,CAAE,SAAQ,QAAQ,CAAC,KAAK,CAAC;IAC/D,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;gBAEX,OAAO,EAAE,iBAAiB,CAAC,KAAK,CAAC,EAAE,qBAAqB,EAAE,qBAAqB;IAmC3F,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI;IAiB1C,KAAK,CAAC,OAAO,EAAE,gBAAgB,CAAC,KAAK,CAAC,GAAG,IAAI;IAoC7C,MAAM,CAAC,OAAO,EAAE,iBAAiB,CAAC,KAAK,CAAC,GAAG,IAAI;IAoB/C,IAAI,OAAO,IAAI,OAAO,CAErB;IAEK,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC;CAUhC"}
|
package/dist/spans/index.d.ts
CHANGED
package/dist/spans/no-op.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NoOpSpan Implementation for Mastra Observability
|
|
3
3
|
*/
|
|
4
|
-
import type {
|
|
5
|
-
import {
|
|
6
|
-
export declare class
|
|
4
|
+
import type { ObservabilityInstance, SpanType, CreateSpanOptions, EndSpanOptions, UpdateSpanOptions, ErrorSpanOptions } from '@mastra/core/observability';
|
|
5
|
+
import { BaseSpan } from './base.js';
|
|
6
|
+
export declare class NoOpSpan<TType extends SpanType = any> extends BaseSpan<TType> {
|
|
7
7
|
id: string;
|
|
8
8
|
traceId: string;
|
|
9
|
-
constructor(options: CreateSpanOptions<TType>,
|
|
9
|
+
constructor(options: CreateSpanOptions<TType>, observabilityInstance: ObservabilityInstance);
|
|
10
10
|
end(_options?: EndSpanOptions<TType>): void;
|
|
11
11
|
error(_options: ErrorSpanOptions<TType>): void;
|
|
12
12
|
update(_options: UpdateSpanOptions<TType>): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-op.d.ts","sourceRoot":"","sources":["../../src/spans/no-op.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"no-op.d.ts","sourceRoot":"","sources":["../../src/spans/no-op.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,qBAAqB,EACrB,QAAQ,EACR,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,qBAAa,QAAQ,CAAC,KAAK,SAAS,QAAQ,GAAG,GAAG,CAAE,SAAQ,QAAQ,CAAC,KAAK,CAAC;IAClE,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;gBAEX,OAAO,EAAE,iBAAiB,CAAC,KAAK,CAAC,EAAE,qBAAqB,EAAE,qBAAqB;IAM3F,GAAG,CAAC,QAAQ,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI;IAE3C,KAAK,CAAC,QAAQ,EAAE,gBAAgB,CAAC,KAAK,CAAC,GAAG,IAAI;IAE9C,MAAM,CAAC,QAAQ,EAAE,iBAAiB,CAAC,KAAK,CAAC,GAAG,IAAI;IAEhD,IAAI,OAAO,IAAI,OAAO,CAErB;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/observability",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-main-test-05-11-2025-2-20251105214713",
|
|
4
4
|
"description": "Core observability package for Mastra - includes AI tracing and scoring features",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"typescript": "^5.8.3",
|
|
34
34
|
"vitest": "^3.2.4",
|
|
35
35
|
"zod": "^3.25.76",
|
|
36
|
-
"@internal/lint": "0.0.0-
|
|
37
|
-
"@mastra/core": "0.0.0-
|
|
38
|
-
"@internal/types-builder": "0.0.0-
|
|
36
|
+
"@internal/lint": "0.0.0-main-test-05-11-2025-2-20251105214713",
|
|
37
|
+
"@mastra/core": "0.0.0-main-test-05-11-2025-2-20251105214713",
|
|
38
|
+
"@internal/types-builder": "0.0.0-main-test-05-11-2025-2-20251105214713"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@mastra/core": "0.0.0-
|
|
41
|
+
"@mastra/core": "0.0.0-main-test-05-11-2025-2-20251105214713"
|
|
42
42
|
},
|
|
43
43
|
"homepage": "https://mastra.ai",
|
|
44
44
|
"repository": {
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Mastra } from '@mastra/core';
|
|
2
|
-
import { MastraBase } from '@mastra/core/base';
|
|
3
|
-
import type { IMastraLogger } from '@mastra/core/logger';
|
|
4
|
-
import type { ConfigSelectorOptions, ObservabilityEntrypoint, ObservabilityRegistryConfig } from '@mastra/core/observability';
|
|
5
|
-
export declare class DefaultEntrypoint extends MastraBase implements ObservabilityEntrypoint {
|
|
6
|
-
constructor(config: ObservabilityRegistryConfig);
|
|
7
|
-
registerMastra(options: {
|
|
8
|
-
mastra: Mastra;
|
|
9
|
-
}): void;
|
|
10
|
-
setLogger(options: {
|
|
11
|
-
logger: IMastraLogger;
|
|
12
|
-
}): void;
|
|
13
|
-
getSelectedObservability(options: ConfigSelectorOptions): import("@mastra/core/observability").AITracing | undefined;
|
|
14
|
-
shutdown(): Promise<void>;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=default-entrypoint.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"default-entrypoint.d.ts","sourceRoot":"","sources":["../src/default-entrypoint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EACV,qBAAqB,EACrB,uBAAuB,EACvB,2BAA2B,EAC5B,MAAM,4BAA4B,CAAC;AAGpC,qBAAa,iBAAkB,SAAQ,UAAW,YAAW,uBAAuB;gBACtE,MAAM,EAAE,2BAA2B;IAQ/C,cAAc,CAAC,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;IAuBjD,SAAS,CAAC,OAAO,EAAE;QAAE,MAAM,EAAE,aAAa,CAAA;KAAE,GAAG,IAAI;IAQnD,wBAAwB,CAAC,OAAO,EAAE,qBAAqB;IAIjD,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAGhC"}
|
package/dist/init.d.ts
DELETED
package/dist/init.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/tracers/base.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,KAAK,EACV,aAAa,EACb,MAAM,EACN,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,SAAS,EAGT,gBAAgB,EAChB,iBAAiB,EACjB,SAAS,EACT,oBAAoB,EACpB,iBAAiB,EACjB,UAAU,EACV,cAAc,EACf,MAAM,4BAA4B,CAAC;AASpC;;GAEG;AACH,8BAAsB,aAAc,SAAQ,UAAW,YAAW,SAAS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,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IA2B1F;;OAEG;IACH,OAAO,CAAC,WAAW;IAqBnB,gBAAgB,CAAC,IAAI,EAAE,SAAS,GAAG,iBAAiB,GAAG,SAAS;IAQhE;;OAEG;IACH,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI;IAShD;;OAEG;IACH,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI;IAS9C;;OAEG;IACH,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI;IAShD;;OAEG;cACa,WAAW,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAoBjE;;OAEG;IACH,IAAI,IAAI,IAAI;IASZ;;OAEG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAUhC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { AISpanType, AISpan, TracingConfig, CreateSpanOptions } from '@mastra/core/observability';
|
|
2
|
-
import { BaseAITracing } from './base.js';
|
|
3
|
-
export declare class DefaultAITracing extends BaseAITracing {
|
|
4
|
-
constructor(config: TracingConfig);
|
|
5
|
-
protected createSpan<TType extends AISpanType>(options: CreateSpanOptions<TType>): AISpan<TType>;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=default.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../src/tracers/default.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEvG,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC,qBAAa,gBAAiB,SAAQ,aAAa;gBACrC,MAAM,EAAE,aAAa;IAIjC,SAAS,CAAC,UAAU,CAAC,KAAK,SAAS,UAAU,EAAE,OAAO,EAAE,iBAAiB,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC;CAIjG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tracers/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC"}
|
|
File without changes
|