@mastra/observability 1.24.0-alpha.4 → 1.24.0-alpha.6
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/bus/observability-bus.d.ts +2 -1
- package/dist/bus/observability-bus.d.ts.map +1 -1
- package/dist/bus/route-event.d.ts.map +1 -1
- package/dist/default.d.ts +5 -1
- package/dist/default.d.ts.map +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +63 -53
- package/dist/docs/references/docs-observability-feedback.md +5 -7
- package/dist/docs/references/reference-observability-feedback.md +57 -14
- package/dist/docs/references/reference-observability-tracing-exporters-langfuse.md +24 -1
- package/dist/docs/references/reference-observability-tracing-exporters-mastra-platform-exporter.md +19 -16
- package/dist/exporters/default.d.ts +6 -7
- package/dist/exporters/default.d.ts.map +1 -1
- package/dist/exporters/event-buffer.d.ts +5 -2
- package/dist/exporters/event-buffer.d.ts.map +1 -1
- package/dist/exporters/keyed-queue.d.ts +6 -0
- package/dist/exporters/keyed-queue.d.ts.map +1 -0
- package/dist/exporters/mastra-platform.d.ts +8 -1
- package/dist/exporters/mastra-platform.d.ts.map +1 -1
- package/dist/exporters/mastra-storage.d.ts +6 -7
- package/dist/exporters/mastra-storage.d.ts.map +1 -1
- package/dist/exporters/platform-resolved-record.d.ts +3 -0
- package/dist/exporters/platform-resolved-record.d.ts.map +1 -0
- package/dist/exporters/storage-annotation.d.ts +12 -0
- package/dist/exporters/storage-annotation.d.ts.map +1 -0
- package/dist/exporters/storage-byte-tracker.d.ts +2 -3
- package/dist/exporters/storage-byte-tracker.d.ts.map +1 -1
- package/dist/index.cjs +994 -708
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +993 -709
- package/dist/index.js.map +1 -1
- package/dist/instances/base.d.ts +2 -1
- package/dist/instances/base.d.ts.map +1 -1
- package/dist/recorded.d.ts +4 -12
- package/dist/recorded.d.ts.map +1 -1
- package/dist/spans/base.d.ts +9 -0
- package/dist/spans/base.d.ts.map +1 -1
- package/dist/spans/default.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { ObservabilityExporter, ObservabilityBridge, ObservabilityEvent, ObservabilityDropEvent, SerializationOptions } from '@mastra/core/observability';
|
|
13
13
|
import { BaseObservabilityEventBus } from './base.js';
|
|
14
|
+
import type { ObservabilityHandler } from './route-event.js';
|
|
14
15
|
/**
|
|
15
16
|
* Unified event bus for all observability signals (tracing, logs, metrics, scores, feedback).
|
|
16
17
|
* Routes events to registered exporters and an optional bridge.
|
|
@@ -70,7 +71,7 @@ export declare class ObservabilityBus extends BaseObservabilityEventBus<Observab
|
|
|
70
71
|
* emit() is synchronous — async handler promises are tracked internally
|
|
71
72
|
* and can be drained via flush().
|
|
72
73
|
*/
|
|
73
|
-
emit(event: ObservabilityEvent): void;
|
|
74
|
+
emit(event: ObservabilityEvent, shouldHandle?: (handler: ObservabilityHandler) => boolean): void;
|
|
74
75
|
/**
|
|
75
76
|
* Emit exporter pipeline drop events to exporters and the bridge.
|
|
76
77
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observability-bus.d.ts","sourceRoot":"","sources":["../../src/bus/observability-bus.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EACV,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"observability-bus.d.ts","sourceRoot":"","sources":["../../src/bus/observability-bus.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EACV,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,QAAQ,CAAC;AACnD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AA0C1D;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,yBAAyB,CAAC,kBAAkB,CAAC;IACjF,OAAO,CAAC,SAAS,CAA+B;IAChD,OAAO,CAAC,MAAM,CAAC,CAAsB;IAErC,oFAAoF;IACpF,OAAO,CAAC,eAAe,CAAiC;IAExD,OAAO,CAAC,uBAAuB,CAAK;IACpC,OAAO,CAAC,mCAAmC,CAAK;IAEhD,+EAA+E;IAC/E,OAAO,CAAC,gBAAgB,CAAmB;IAE3C,YAAY,IAAI,CAAC,EAAE;QAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAA;KAAE,EAGjE;IAED;;;;;OAKG;IACH,gBAAgB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI,CAKtD;IAED;;;;;OAKG;IACH,kBAAkB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,OAAO,CAO3D;IAED;;OAEG;IACH,YAAY,IAAI,SAAS,qBAAqB,EAAE,CAE/C;IAED;;;;;;OAMG;IACH,cAAc,CAAC,MAAM,EAAE,mBAAmB,GAAG,IAAI,CAKhD;IAED;;;;OAIG;IACH,gBAAgB,IAAI,OAAO,CAM1B;IAED;;OAEG;IACH,SAAS,IAAI,mBAAmB,GAAG,SAAS,CAE3C;IAED;;;;;;OAMG;IACH,IAAI,CAAC,KAAK,EAAE,kBAAkB,EAAE,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,oBAAoB,KAAK,OAAO,GAAG,IAAI,CAkB/F;IAED;;;;;OAKG;IACH,aAAa,CAAC,KAAK,EAAE,sBAAsB,GAAG,IAAI,CAYjD;IAED;;;OAGG;IACH,OAAO,CAAC,YAAY;IAQpB,qEAAqE;YACvD,oBAAoB;IAoBlC,sDAAsD;YACxC,mBAAmB;IAiBjC;;;;;;;;;;;;;;;OAeG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAmB3B;IAED,6EAA6E;IACvE,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAG9B;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-event.d.ts","sourceRoot":"","sources":["../../src/bus/route-event.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EACV,mBAAmB,EAMnB,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,4BAA4B,CAAC;AAGpC;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAa1E;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,oBAAoB,EAC7B,KAAK,EAAE,kBAAkB,EACzB,MAAM,EAAE,aAAa,GACpB,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"route-event.d.ts","sourceRoot":"","sources":["../../src/bus/route-event.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EACV,mBAAmB,EAMnB,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,4BAA4B,CAAC;AAGpC;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAa1E;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,oBAAoB,EAC7B,KAAK,EAAE,kBAAkB,EACzB,MAAM,EAAE,aAAa,GACpB,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CA8EtB;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,oBAAoB,EAC7B,KAAK,EAAE,sBAAsB,EAC7B,MAAM,EAAE,aAAa,GACpB,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAQtB"}
|
package/dist/default.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Mastra } from '@mastra/core';
|
|
2
2
|
import { MastraBase } from '@mastra/core/base';
|
|
3
3
|
import type { IMastraLogger } from '@mastra/core/logger';
|
|
4
|
-
import type { ClientObservabilityProxy, CorrelationContext, ConfigSelector, ConfigSelectorOptions, FeedbackInput, ObservabilityEntrypoint, ObservabilityInstance, RecordedTrace, ScoreInput } from '@mastra/core/observability';
|
|
4
|
+
import type { ClientObservabilityProxy, CorrelationContext, ConfigSelector, ConfigSelectorOptions, FeedbackInput, FeedbackReplacementInput, FeedbackEvent, FeedbackReplacementEvent, FeedbackReviewStatusEvent, FeedbackReviewStatusInput, ObservabilityEntrypoint, ObservabilityInstance, RecordedTrace, ScoreInput, ScoreEvent } from '@mastra/core/observability';
|
|
5
5
|
import type { ObservabilityRegistryConfig } from './config.js';
|
|
6
6
|
/**
|
|
7
7
|
* Manages observability instances and selects their configurations for Mastra operations.
|
|
@@ -54,6 +54,10 @@ export declare class Observability extends MastraBase implements ObservabilityEn
|
|
|
54
54
|
correlationContext?: CorrelationContext;
|
|
55
55
|
feedback: FeedbackInput;
|
|
56
56
|
}): Promise<void>;
|
|
57
|
+
replaceFeedback(args: FeedbackReplacementInput): Promise<void>;
|
|
58
|
+
updateFeedbackReviewStatus(args: FeedbackReviewStatusInput): Promise<void>;
|
|
59
|
+
/** @internal Queue an HTTP-created record; flush/shutdown await delivery without holding the HTTP response open. */
|
|
60
|
+
__exportPersistedEvent(event: ScoreEvent | FeedbackEvent | FeedbackReplacementEvent | FeedbackReviewStatusEvent): Promise<void>;
|
|
57
61
|
/** Register a named observability instance, optionally marking it as default. */
|
|
58
62
|
registerInstance(name: string, instance: ObservabilityInstance, isDefault?: boolean): void;
|
|
59
63
|
/** Get a registered instance by name. */
|
package/dist/default.d.ts.map
CHANGED
|
@@ -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;AAG/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EACV,wBAAwB,EACxB,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACrB,aAAa,
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../src/default.ts"],"names":[],"mappings":"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"}
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-observability
|
|
|
3
3
|
description: Documentation for @mastra/observability. Use when working with @mastra/observability APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/observability"
|
|
6
|
-
version: "1.24.0-alpha.
|
|
6
|
+
version: "1.24.0-alpha.6"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -1,251 +1,261 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.24.0-alpha.
|
|
2
|
+
"version": "1.24.0-alpha.6",
|
|
3
3
|
"package": "@mastra/observability",
|
|
4
4
|
"exports": {
|
|
5
5
|
"BaseExporter": {
|
|
6
6
|
"types": "dist/exporters/base.d.ts",
|
|
7
7
|
"implementation": "dist/index.js",
|
|
8
|
-
"line":
|
|
8
|
+
"line": 4294
|
|
9
9
|
},
|
|
10
10
|
"BaseObservabilityEventBus": {
|
|
11
11
|
"types": "dist/bus/base.d.ts",
|
|
12
12
|
"implementation": "dist/index.js",
|
|
13
|
-
"line":
|
|
13
|
+
"line": 102
|
|
14
14
|
},
|
|
15
15
|
"BaseObservabilityInstance": {
|
|
16
16
|
"types": "dist/instances/base.d.ts",
|
|
17
17
|
"implementation": "dist/index.js",
|
|
18
|
-
"line":
|
|
18
|
+
"line": 6232
|
|
19
19
|
},
|
|
20
20
|
"BaseSpan": {
|
|
21
21
|
"types": "dist/spans/base.d.ts",
|
|
22
22
|
"implementation": "dist/index.js",
|
|
23
|
-
"line":
|
|
23
|
+
"line": 3576
|
|
24
24
|
},
|
|
25
25
|
"CardinalityFilter": {
|
|
26
26
|
"types": "dist/metrics/cardinality.d.ts",
|
|
27
27
|
"implementation": "dist/index.js",
|
|
28
|
-
"line":
|
|
28
|
+
"line": 2090
|
|
29
29
|
},
|
|
30
30
|
"CloudExporter": {
|
|
31
31
|
"types": "dist/exporters/cloud.d.ts",
|
|
32
32
|
"implementation": "dist/index.js",
|
|
33
|
-
"line":
|
|
33
|
+
"line": 8652
|
|
34
34
|
},
|
|
35
35
|
"ConsoleExporter": {
|
|
36
36
|
"types": "dist/exporters/console.d.ts",
|
|
37
37
|
"implementation": "dist/index.js",
|
|
38
|
-
"line":
|
|
38
|
+
"line": 8975
|
|
39
39
|
},
|
|
40
40
|
"DEFAULT_DEEP_CLEAN_OPTIONS": {
|
|
41
41
|
"types": "dist/spans/serialization.d.ts",
|
|
42
42
|
"implementation": "dist/index.js",
|
|
43
|
-
"line":
|
|
43
|
+
"line": 205
|
|
44
44
|
},
|
|
45
45
|
"DEFAULT_LIMITS": {
|
|
46
46
|
"types": "dist/client/proxy.d.ts",
|
|
47
47
|
"implementation": "dist/index.js",
|
|
48
|
-
"line":
|
|
48
|
+
"line": 7218
|
|
49
49
|
},
|
|
50
50
|
"DefaultExporter": {
|
|
51
51
|
"types": "dist/exporters/default.d.ts",
|
|
52
52
|
"implementation": "dist/index.js",
|
|
53
|
-
"line":
|
|
53
|
+
"line": 5054
|
|
54
54
|
},
|
|
55
55
|
"DefaultObservabilityInstance": {
|
|
56
56
|
"types": "dist/instances/default.d.ts",
|
|
57
57
|
"implementation": "dist/index.js",
|
|
58
|
-
"line":
|
|
58
|
+
"line": 10903
|
|
59
59
|
},
|
|
60
60
|
"DefaultSpan": {
|
|
61
61
|
"types": "dist/spans/default.d.ts",
|
|
62
62
|
"implementation": "dist/index.js",
|
|
63
|
-
"line":
|
|
63
|
+
"line": 4063
|
|
64
64
|
},
|
|
65
65
|
"JsonExporter": {
|
|
66
66
|
"types": "dist/exporters/test.d.ts",
|
|
67
67
|
"implementation": "dist/index.js",
|
|
68
|
-
"line":
|
|
68
|
+
"line": 10901
|
|
69
69
|
},
|
|
70
70
|
"LoggerContextImpl": {
|
|
71
71
|
"types": "dist/context/logger.d.ts",
|
|
72
72
|
"implementation": "dist/index.js",
|
|
73
|
-
"line":
|
|
73
|
+
"line": 952
|
|
74
74
|
},
|
|
75
75
|
"MastraPlatformExporter": {
|
|
76
76
|
"types": "dist/exporters/mastra-platform.d.ts",
|
|
77
77
|
"implementation": "dist/index.js",
|
|
78
|
-
"line":
|
|
78
|
+
"line": 9305
|
|
79
79
|
},
|
|
80
80
|
"MastraStorageExporter": {
|
|
81
81
|
"types": "dist/exporters/mastra-storage.d.ts",
|
|
82
82
|
"implementation": "dist/index.js",
|
|
83
|
-
"line":
|
|
83
|
+
"line": 5615
|
|
84
84
|
},
|
|
85
85
|
"MetricsContextImpl": {
|
|
86
86
|
"types": "dist/context/metrics.d.ts",
|
|
87
87
|
"implementation": "dist/index.js",
|
|
88
|
-
"line":
|
|
88
|
+
"line": 1016
|
|
89
89
|
},
|
|
90
90
|
"ModelSpanTracker": {
|
|
91
91
|
"types": "dist/model-tracing.d.ts",
|
|
92
92
|
"implementation": "dist/index.js",
|
|
93
|
-
"line":
|
|
93
|
+
"line": 2522
|
|
94
94
|
},
|
|
95
95
|
"NoOpSpan": {
|
|
96
96
|
"types": "dist/spans/no-op.d.ts",
|
|
97
97
|
"implementation": "dist/index.js",
|
|
98
|
-
"line":
|
|
98
|
+
"line": 4237
|
|
99
99
|
},
|
|
100
100
|
"OBSERVABILITY_CAPABILITIES_HEADER": {
|
|
101
101
|
"types": "dist/exporters/mastra-platform.d.ts",
|
|
102
102
|
"implementation": "dist/index.js",
|
|
103
|
-
"line":
|
|
103
|
+
"line": 9206
|
|
104
104
|
},
|
|
105
105
|
"Observability": {
|
|
106
106
|
"types": "dist/default.d.ts",
|
|
107
107
|
"implementation": "dist/index.js",
|
|
108
|
-
"line":
|
|
108
|
+
"line": 11239
|
|
109
109
|
},
|
|
110
110
|
"ObservabilityBus": {
|
|
111
111
|
"types": "dist/bus/observability-bus.d.ts",
|
|
112
112
|
"implementation": "dist/index.js",
|
|
113
|
-
"line":
|
|
113
|
+
"line": 582
|
|
114
114
|
},
|
|
115
115
|
"QUOTA_PAUSE_CAPABILITY": {
|
|
116
116
|
"types": "dist/exporters/mastra-platform.d.ts",
|
|
117
117
|
"implementation": "dist/index.js",
|
|
118
|
-
"line":
|
|
118
|
+
"line": 9207
|
|
119
|
+
},
|
|
120
|
+
"REDACTED_ERROR_MESSAGE": {
|
|
121
|
+
"types": "dist/spans/base.d.ts",
|
|
122
|
+
"implementation": "dist/index.js",
|
|
123
|
+
"line": 3437
|
|
119
124
|
},
|
|
120
125
|
"SamplingStrategyType": {
|
|
121
126
|
"types": "dist/config.d.ts",
|
|
122
127
|
"implementation": "dist/index.js",
|
|
123
|
-
"line":
|
|
128
|
+
"line": 751
|
|
124
129
|
},
|
|
125
130
|
"SensitiveDataFilter": {
|
|
126
131
|
"types": "dist/span_processors/sensitive-data-filter.d.ts",
|
|
127
132
|
"implementation": "dist/index.js",
|
|
128
|
-
"line":
|
|
133
|
+
"line": 11026
|
|
129
134
|
},
|
|
130
135
|
"TestExporter": {
|
|
131
136
|
"types": "dist/exporters/test.d.ts",
|
|
132
137
|
"implementation": "dist/index.js",
|
|
133
|
-
"line":
|
|
138
|
+
"line": 9916
|
|
134
139
|
},
|
|
135
140
|
"TraceData": {
|
|
136
141
|
"types": "dist/exporters/tracking.d.ts",
|
|
137
142
|
"implementation": "dist/index.js",
|
|
138
|
-
"line":
|
|
143
|
+
"line": 7371
|
|
139
144
|
},
|
|
140
145
|
"TrackingExporter": {
|
|
141
146
|
"types": "dist/exporters/tracking.d.ts",
|
|
142
147
|
"implementation": "dist/index.js",
|
|
143
|
-
"line":
|
|
148
|
+
"line": 7700
|
|
144
149
|
},
|
|
145
150
|
"buildExportedLog": {
|
|
146
151
|
"types": "dist/client/otlp.d.ts",
|
|
147
152
|
"implementation": "dist/index.js",
|
|
148
|
-
"line":
|
|
153
|
+
"line": 7135
|
|
149
154
|
},
|
|
150
155
|
"buildExportedSpan": {
|
|
151
156
|
"types": "dist/client/otlp.d.ts",
|
|
152
157
|
"implementation": "dist/index.js",
|
|
153
|
-
"line":
|
|
158
|
+
"line": 7117
|
|
154
159
|
},
|
|
155
160
|
"buildTracingOptions": {
|
|
156
161
|
"types": "dist/tracing-options.d.ts",
|
|
157
162
|
"implementation": "dist/index.js",
|
|
158
|
-
"line":
|
|
163
|
+
"line": 11580
|
|
159
164
|
},
|
|
160
165
|
"chainFormatters": {
|
|
161
166
|
"types": "dist/exporters/span-formatters.d.ts",
|
|
162
167
|
"implementation": "dist/index.js",
|
|
163
|
-
"line":
|
|
168
|
+
"line": 8466
|
|
164
169
|
},
|
|
165
170
|
"createClientObservabilityProxy": {
|
|
166
171
|
"types": "dist/client/proxy.d.ts",
|
|
167
172
|
"implementation": "dist/index.js",
|
|
168
|
-
"line":
|
|
173
|
+
"line": 7352
|
|
169
174
|
},
|
|
170
175
|
"decodeResourceLogs": {
|
|
171
176
|
"types": "dist/client/otlp.d.ts",
|
|
172
177
|
"implementation": "dist/index.js",
|
|
173
|
-
"line":
|
|
178
|
+
"line": 7054
|
|
174
179
|
},
|
|
175
180
|
"decodeResourceSpans": {
|
|
176
181
|
"types": "dist/client/otlp.d.ts",
|
|
177
182
|
"implementation": "dist/index.js",
|
|
178
|
-
"line":
|
|
183
|
+
"line": 7017
|
|
179
184
|
},
|
|
180
185
|
"deepClean": {
|
|
181
186
|
"types": "dist/spans/serialization.d.ts",
|
|
182
187
|
"implementation": "dist/index.js",
|
|
183
|
-
"line":
|
|
188
|
+
"line": 348
|
|
184
189
|
},
|
|
185
190
|
"formatBaggage": {
|
|
186
191
|
"types": "dist/client/w3c.d.ts",
|
|
187
192
|
"implementation": "dist/index.js",
|
|
188
|
-
"line":
|
|
193
|
+
"line": 7208
|
|
189
194
|
},
|
|
190
195
|
"formatTraceparent": {
|
|
191
196
|
"types": "dist/client/w3c.d.ts",
|
|
192
197
|
"implementation": "dist/index.js",
|
|
193
|
-
"line":
|
|
198
|
+
"line": 7171
|
|
194
199
|
},
|
|
195
200
|
"getExternalParentId": {
|
|
196
201
|
"types": "dist/spans/base.d.ts",
|
|
197
202
|
"implementation": "dist/index.js",
|
|
198
|
-
"line":
|
|
203
|
+
"line": 3557
|
|
199
204
|
},
|
|
200
205
|
"isSerializedMap": {
|
|
201
206
|
"types": "dist/spans/serialization.d.ts",
|
|
202
207
|
"implementation": "dist/index.js",
|
|
203
|
-
"line":
|
|
208
|
+
"line": 322
|
|
204
209
|
},
|
|
205
210
|
"mergeSerializationOptions": {
|
|
206
211
|
"types": "dist/spans/serialization.d.ts",
|
|
207
212
|
"implementation": "dist/index.js",
|
|
208
|
-
"line":
|
|
213
|
+
"line": 216
|
|
209
214
|
},
|
|
210
215
|
"observabilityConfigValueSchema": {
|
|
211
216
|
"types": "dist/config.d.ts",
|
|
212
217
|
"implementation": "dist/index.js",
|
|
213
|
-
"line":
|
|
218
|
+
"line": 831
|
|
214
219
|
},
|
|
215
220
|
"observabilityFeatures": {
|
|
216
221
|
"types": "dist/features.d.ts",
|
|
217
222
|
"implementation": "dist/index.js",
|
|
218
|
-
"line":
|
|
223
|
+
"line": 11561
|
|
219
224
|
},
|
|
220
225
|
"observabilityInstanceConfigSchema": {
|
|
221
226
|
"types": "dist/config.d.ts",
|
|
222
227
|
"implementation": "dist/index.js",
|
|
223
|
-
"line":
|
|
228
|
+
"line": 819
|
|
224
229
|
},
|
|
225
230
|
"observabilityRegistryConfigSchema": {
|
|
226
231
|
"types": "dist/config.d.ts",
|
|
227
232
|
"implementation": "dist/index.js",
|
|
228
|
-
"line":
|
|
233
|
+
"line": 851
|
|
229
234
|
},
|
|
230
235
|
"otlpSeverityToLogLevel": {
|
|
231
236
|
"types": "dist/client/otlp.d.ts",
|
|
232
237
|
"implementation": "dist/index.js",
|
|
233
|
-
"line":
|
|
238
|
+
"line": 7091
|
|
234
239
|
},
|
|
235
240
|
"parseBaggage": {
|
|
236
241
|
"types": "dist/client/w3c.d.ts",
|
|
237
242
|
"implementation": "dist/index.js",
|
|
238
|
-
"line":
|
|
243
|
+
"line": 7181
|
|
239
244
|
},
|
|
240
245
|
"parseTraceparent": {
|
|
241
246
|
"types": "dist/client/w3c.d.ts",
|
|
242
247
|
"implementation": "dist/index.js",
|
|
243
|
-
"line":
|
|
248
|
+
"line": 7157
|
|
244
249
|
},
|
|
245
250
|
"reconstructSerializedMap": {
|
|
246
251
|
"types": "dist/spans/serialization.d.ts",
|
|
247
252
|
"implementation": "dist/index.js",
|
|
248
|
-
"line":
|
|
253
|
+
"line": 325
|
|
254
|
+
},
|
|
255
|
+
"redactErrorInfo": {
|
|
256
|
+
"types": "dist/spans/base.d.ts",
|
|
257
|
+
"implementation": "dist/index.js",
|
|
258
|
+
"line": 3443
|
|
249
259
|
},
|
|
250
260
|
"routeToHandler": {
|
|
251
261
|
"types": "dist/bus/route-event.d.ts",
|
|
@@ -255,17 +265,17 @@
|
|
|
255
265
|
"samplingStrategySchema": {
|
|
256
266
|
"types": "dist/config.d.ts",
|
|
257
267
|
"implementation": "dist/index.js",
|
|
258
|
-
"line":
|
|
268
|
+
"line": 762
|
|
259
269
|
},
|
|
260
270
|
"serializationOptionsSchema": {
|
|
261
271
|
"types": "dist/config.d.ts",
|
|
262
272
|
"implementation": "dist/index.js",
|
|
263
|
-
"line":
|
|
273
|
+
"line": 777
|
|
264
274
|
},
|
|
265
275
|
"truncateString": {
|
|
266
276
|
"types": "dist/spans/serialization.d.ts",
|
|
267
277
|
"implementation": "dist/index.js",
|
|
268
|
-
"line":
|
|
278
|
+
"line": 235
|
|
269
279
|
}
|
|
270
280
|
},
|
|
271
281
|
"modules": {}
|
|
@@ -16,7 +16,7 @@ Unlike metrics and scores, feedback is usually supplied by a person or review wo
|
|
|
16
16
|
|
|
17
17
|
## Add feedback
|
|
18
18
|
|
|
19
|
-
Use `mastra.observability.addFeedback()`
|
|
19
|
+
Use `mastra.observability.addFeedback()` to annotate a trace or span from app code. The helper is optional on the observability entrypoint, so check that the active observability implementation supports it. See the [client SDK observability reference](https://mastra.ai/reference/client-js/observability) for all client methods.
|
|
20
20
|
|
|
21
21
|
```typescript
|
|
22
22
|
if (!mastra.observability.addFeedback) {
|
|
@@ -35,9 +35,9 @@ await mastra.observability.addFeedback({
|
|
|
35
35
|
})
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
Feedback goes to each configured exporter that supports it. Each exporter handles its own destination independently. A trace missing from local storage doesn't prevent feedback from reaching Platform or another exporter.
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
[`MastraStorageExporter`](https://mastra.ai/docs/observability/integrations/exporters/mastra-storage) looks up the trace or span in your configured storage before saving feedback. If the target remains unavailable after retries, it logs a warning and skips the local write. Call `mastra.observability.flush()` or `shutdown()` before your process exits to finish pending delivery.
|
|
41
41
|
|
|
42
42
|
## Find the trace for a message
|
|
43
43
|
|
|
@@ -185,11 +185,9 @@ The local runtime exposes the list route at `/api/observability/feedback` and an
|
|
|
185
185
|
|
|
186
186
|
## Export feedback to Mastra Platform
|
|
187
187
|
|
|
188
|
-
[`MastraPlatformExporter`](https://mastra.ai/reference/observability/tracing/exporters/mastra-platform-exporter)
|
|
188
|
+
[`MastraPlatformExporter`](https://mastra.ai/reference/observability/tracing/exporters/mastra-platform-exporter) sends feedback to Mastra Platform, which looks up the target trace or span when needed. Local trace storage isn't required. Add `MastraStorageExporter` only if you also want a local copy.
|
|
189
189
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
See [Observability on Mastra Platform](https://mastra.ai/docs/mastra-platform/observability) for the combined exporter configuration.
|
|
190
|
+
Studio sends feedback to the backend serving its trace reads. For HTTP creates handled by your OSS server, the server saves feedback locally and notifies configured exporters. Because exporter delivery is asynchronous, a successful HTTP response doesn't guarantee that the record is already visible at a remote destination. Direct storage writes bypass exporters.
|
|
193
191
|
|
|
194
192
|
## Export feedback to external platforms
|
|
195
193
|
|
|
@@ -33,7 +33,7 @@ await mastra.observability.addFeedback({
|
|
|
33
33
|
|
|
34
34
|
### `addFeedback(args)`
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
Sends feedback about a trace or span to configured exporters.
|
|
37
37
|
|
|
38
38
|
```typescript
|
|
39
39
|
await mastra.observability.addFeedback?.({
|
|
@@ -56,7 +56,9 @@ await mastra.observability.addFeedback?.({
|
|
|
56
56
|
|
|
57
57
|
**feedback** (`FeedbackInput`): Feedback payload to add.
|
|
58
58
|
|
|
59
|
-
Without `correlationContext`,
|
|
59
|
+
Without `correlationContext`, each exporter handles the target trace or span at its own destination. `MastraStorageExporter` resolves it from local storage. A failed local lookup doesn't block other exporters. `MastraPlatformExporter` doesn't require local storage. Use `flush()` or `shutdown()` to drain pending deliveries.
|
|
60
|
+
|
|
61
|
+
Local lookup requires the target span's parent chain through its root so feedback inherits the correct root tags. If any ancestor remains missing after retries, the storage exporter logs a warning and skips the local write. Other exporters still receive the feedback.
|
|
60
62
|
|
|
61
63
|
### `createFeedback(args)`
|
|
62
64
|
|
|
@@ -138,7 +140,7 @@ await mastraClient.deleteFeedback({
|
|
|
138
140
|
|
|
139
141
|
**resourceId** (`string`): Restricts the delete to records with this resource id.
|
|
140
142
|
|
|
141
|
-
|
|
143
|
+
The OSS HTTP route returns `{ success: boolean }`. `mastraClient.deleteFeedback()` returns `Promise<{ success: boolean } | { accepted: true }>` to also support Platform backends with queued batch deletion. An accepted response means cleanup is queued, and records can remain readable until cleanup runs. See [client deletion response handling](https://mastra.ai/reference/client-js/observability). The storage domain method returns `Promise<void>`. Requests with more than 1,000 ids return `400`, and a server running `@mastra/core` older than `1.66.0` returns `501`. ClickHouse vNext, PostgreSQL vNext, DuckDB, and the in-memory store implement deletion. Every other adapter, including LibSQL and MongoDB, throws `OBSERVABILITY_STORAGE_DELETE_FEEDBACK_NOT_IMPLEMENTED`.
|
|
142
144
|
|
|
143
145
|
On ClickHouse, deletion uses lightweight deletes on the main feedback events table to remove rows from reads, including OLAP queries, without guaranteeing immediate physical removal, so open-source deployments must configure an [observability retention period](https://mastra.ai/reference/storage/retention) to physically purge them. Each request is marked applied once its delete succeeds; if the delete fails, the request stays unapplied, doesn't block `updateFeedbackReviewStatus()` on the still-visible feedback, and you retry by calling `deleteFeedback()` again. `updateFeedbackReviewStatus()` also retries the delete and throws a not-found error if the retry succeeds, or saves the new status and throws the delete's error if it fails again. Open-source deployments have no background reconciler. ClickHouse applies a TTL to deletion requests only when all five signals have finite retention. See [ClickHouse native TTL](https://mastra.ai/reference/storage/retention). Delete APIs leave the separate delta cursor table untouched. Its rows contain identifiers rather than feedback payloads and expire within two days.
|
|
144
146
|
|
|
@@ -413,21 +415,62 @@ Use `FeedbackFilter` in `listFeedback()` and OLAP query `filters`.
|
|
|
413
415
|
|
|
414
416
|
**tags** (`string[]`): Filter by tags. Matching records must have all specified tags.
|
|
415
417
|
|
|
418
|
+
## Replace feedback
|
|
419
|
+
|
|
420
|
+
`PUT /api/observability/feedback/:feedbackId` accepts a full `{ feedback: { ... } }` replacement. Keep the original `feedbackId`, `traceId`, and `timestamp`, and include every field you want to retain. Omitted optional fields are cleared. The URL and body IDs must match. See [the client example](https://mastra.ai/reference/client-js/observability).
|
|
421
|
+
|
|
422
|
+
OSS writes to its configured storage before returning success and notifies supporting exporters independently. `contextMode` has the same meaning as on create. In `"resolve"` mode, the local trace or span must exist. A missing feedback record is created from the full replacement. Changing an existing record's trace or timestamp returns `409`.
|
|
423
|
+
|
|
424
|
+
In-memory, PostgreSQL vNext, DuckDB, and ClickHouse vNext storage support replacement. Check `capabilities.feedbackReplacement` on the server. Unsupported versions return `501`. Sequential retries of the original HTTP create don't undo a replacement. Direct storage `createFeedback()` calls retain upsert behavior. Pass `onConflict: 'ignore'` to keep an existing record.
|
|
425
|
+
|
|
426
|
+
ClickHouse support uses the existing schema without a migration. Concurrent writes from separate processes can race, so it doesn't guarantee ordering between overlapping creates and replacements. Serialize edits to the same feedback record when using this adapter.
|
|
427
|
+
|
|
428
|
+
To send a replacement to configured exporters without depending on local storage, use the observability entrypoint:
|
|
429
|
+
|
|
430
|
+
```typescript
|
|
431
|
+
await mastra.observability.replaceFeedback?.({
|
|
432
|
+
traceId: 'trace-123',
|
|
433
|
+
feedback: {
|
|
434
|
+
feedbackId: 'feedback-1',
|
|
435
|
+
timestamp: new Date('2026-11-11T12:00:00.123Z'),
|
|
436
|
+
feedbackType: 'thumbs',
|
|
437
|
+
value: -1,
|
|
438
|
+
},
|
|
439
|
+
})
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
Each exporter handles its destination independently. `MastraStorageExporter` resolves local span context when needed, and `MastraPlatformExporter` sends a PUT to Platform. Exporters without a replacement handler skip the event. `flush()` and `shutdown()` wait for pending deliveries.
|
|
443
|
+
|
|
444
|
+
## Updating review status
|
|
445
|
+
|
|
446
|
+
To change review status at configured exporter destinations, pass the feedback ID and either `"reviewed"` or `"needs-review"`:
|
|
447
|
+
|
|
448
|
+
```typescript
|
|
449
|
+
await mastra.observability.updateFeedbackReviewStatus?.({
|
|
450
|
+
feedbackId: 'feedback-123',
|
|
451
|
+
reviewStatus: 'reviewed',
|
|
452
|
+
})
|
|
453
|
+
await mastra.observability.flush()
|
|
454
|
+
```
|
|
455
|
+
|
|
456
|
+
Review updates go to each exporter that supports them, even when the feedback isn't stored locally. Call `flush()` or `shutdown()` to wait for pending deliveries.
|
|
457
|
+
|
|
416
458
|
## HTTP routes
|
|
417
459
|
|
|
418
460
|
These routes belong to a Mastra runtime and use its configured observability storage. They're separate from the [unversioned Mastra Platform Feedback API](https://mastra.ai/docs/mastra-platform/api), which doesn't provide a feedback creation route.
|
|
419
461
|
|
|
420
|
-
| Method | Path | Purpose
|
|
421
|
-
| -------- | ------------------------------------------------------- |
|
|
422
|
-
| `GET` | `/api/observability/feedback` | List feedback records
|
|
423
|
-
| `POST` | `/api/observability/feedback` | Create a feedback record
|
|
424
|
-
| `
|
|
425
|
-
| `DELETE` | `/api/observability/
|
|
426
|
-
| `
|
|
427
|
-
| `
|
|
428
|
-
| `POST` | `/api/observability/feedback/
|
|
429
|
-
| `POST` | `/api/observability/feedback/
|
|
430
|
-
| `POST` | `/api/observability/feedback/
|
|
462
|
+
| Method | Path | Purpose | Permission |
|
|
463
|
+
| -------- | ------------------------------------------------------- | ---------------------------------- | ---------------------- |
|
|
464
|
+
| `GET` | `/api/observability/feedback` | List feedback records | `observability:read` |
|
|
465
|
+
| `POST` | `/api/observability/feedback` | Create a feedback record | `observability:write` |
|
|
466
|
+
| `PUT` | `/api/observability/feedback/:feedbackId` | Replace a complete feedback record | `observability:write` |
|
|
467
|
+
| `DELETE` | `/api/observability/feedback` | Delete feedback records by id | `observability:delete` |
|
|
468
|
+
| `DELETE` | `/api/observability/scores` | Delete score records by id | `observability:delete` |
|
|
469
|
+
| `PATCH` | `/api/observability/feedback/:feedbackId/review-status` | Update review status | `observability:write` |
|
|
470
|
+
| `POST` | `/api/observability/feedback/aggregate` | Return one aggregate value | `observability:read` |
|
|
471
|
+
| `POST` | `/api/observability/feedback/breakdown` | Group feedback by dimensions | `observability:read` |
|
|
472
|
+
| `POST` | `/api/observability/feedback/timeseries` | Bucket feedback by interval | `observability:read` |
|
|
473
|
+
| `POST` | `/api/observability/feedback/percentiles` | Return percentile series | `observability:read` |
|
|
431
474
|
|
|
432
475
|
### List query parameters
|
|
433
476
|
|
|
@@ -9,7 +9,7 @@ Sends Tracing data to Langfuse for observability.
|
|
|
9
9
|
## Constructor
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
new LangfuseExporter(config
|
|
12
|
+
new LangfuseExporter(config?: LangfuseExporterConfig)
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## `LangfuseExporterConfig`
|
|
@@ -25,6 +25,7 @@ interface LangfuseExporterConfig extends BaseExporterConfig {
|
|
|
25
25
|
flushInterval?: number
|
|
26
26
|
environment?: string
|
|
27
27
|
release?: string
|
|
28
|
+
resourceAttributes?: DetectedResourceAttributes
|
|
28
29
|
}
|
|
29
30
|
```
|
|
30
31
|
|
|
@@ -33,6 +34,28 @@ Extends `BaseExporterConfig`, which includes:
|
|
|
33
34
|
- `logger?: IMastraLogger` - Logger instance
|
|
34
35
|
- `logLevel?: LogLevel | 'debug' | 'info' | 'warn' | 'error'` - Log level (default: INFO)
|
|
35
36
|
|
|
37
|
+
**publicKey** (`string`): Langfuse API key. Falls back to LANGFUSE_PUBLIC_KEY env var.
|
|
38
|
+
|
|
39
|
+
**secretKey** (`string`): Langfuse secret key. Falls back to LANGFUSE_SECRET_KEY env var.
|
|
40
|
+
|
|
41
|
+
**baseUrl** (`string`): Langfuse host URL. Falls back to LANGFUSE_BASE_URL env var. Default: https\://cloud.langfuse.com
|
|
42
|
+
|
|
43
|
+
**additionalHeaders** (`Record<string, string>`): Additional headers sent with requests to Langfuse.
|
|
44
|
+
|
|
45
|
+
**realtime** (`boolean`): Enable realtime mode - exports spans immediately instead of batching
|
|
46
|
+
|
|
47
|
+
**flushAt** (`number`): Maximum number of spans per OTEL export batch. Forwarded to the underlying LangfuseSpanProcessor.
|
|
48
|
+
|
|
49
|
+
**flushInterval** (`number`): Maximum time in seconds before pending spans are exported. Forwarded to the underlying LangfuseSpanProcessor.
|
|
50
|
+
|
|
51
|
+
**environment** (`string`): Environment tag for traces (e.g. production, staging). Shows in Langfuse UI for filtering.
|
|
52
|
+
|
|
53
|
+
**release** (`string`): Release tag for traces (e.g. git commit hash). Used for version tracking.
|
|
54
|
+
|
|
55
|
+
**resourceAttributes** (`DetectedResourceAttributes`): OpenTelemetry resource attributes, such as service.version. Values here override the defaults.
|
|
56
|
+
|
|
57
|
+
**logLevel** (`'debug' | 'info' | 'warn' | 'error'`): Level for the logger the exporter creates when no logger is passed (default: 'info'). It has no effect on a supplied logger. When the exporter is registered with Mastra, Mastra replaces this logger with the application logger.
|
|
58
|
+
|
|
36
59
|
## Properties
|
|
37
60
|
|
|
38
61
|
### `client`
|