@mastra/clickhouse 1.9.0-alpha.1 → 1.9.0
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 +13 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +17 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/observability/v-next/ddl.d.ts +13 -0
- package/dist/storage/domains/observability/v-next/ddl.d.ts.map +1 -1
- package/dist/storage/domains/observability/v-next/index.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -2889,6 +2889,14 @@ var DELTA_MV_NAMES = [
|
|
|
2889
2889
|
MV_SCORE_EVENTS_DELTA,
|
|
2890
2890
|
MV_FEEDBACK_EVENTS_DELTA
|
|
2891
2891
|
];
|
|
2892
|
+
var DELTA_CURSOR_COUNTER_NAMES = [
|
|
2893
|
+
"mastra_trace_roots_delta_cursor",
|
|
2894
|
+
"mastra_trace_branches_delta_cursor",
|
|
2895
|
+
"mastra_metric_events_delta_cursor",
|
|
2896
|
+
"mastra_log_events_delta_cursor",
|
|
2897
|
+
"mastra_score_events_delta_cursor",
|
|
2898
|
+
"mastra_feedback_events_delta_cursor"
|
|
2899
|
+
];
|
|
2892
2900
|
var BRANCH_SPAN_TYPE_VALUES = [
|
|
2893
2901
|
"agent_run",
|
|
2894
2902
|
"workflow_run",
|
|
@@ -7133,6 +7141,15 @@ var ObservabilityStorageClickhouseVNext = class extends ObservabilityStorage {
|
|
|
7133
7141
|
await this.#client.command({ query: entry.sql });
|
|
7134
7142
|
}
|
|
7135
7143
|
}
|
|
7144
|
+
if (this.#deltaCursorStrategy === "serial") {
|
|
7145
|
+
for (const counterName of DELTA_CURSOR_COUNTER_NAMES) {
|
|
7146
|
+
await this.#client.query({
|
|
7147
|
+
query: `SELECT generateSerialID({counterName:String}) AS cursorId`,
|
|
7148
|
+
query_params: { counterName },
|
|
7149
|
+
format: "JSONEachRow"
|
|
7150
|
+
});
|
|
7151
|
+
}
|
|
7152
|
+
}
|
|
7136
7153
|
} catch (error) {
|
|
7137
7154
|
if (error instanceof MastraError) {
|
|
7138
7155
|
throw error;
|