@mastra/clickhouse 1.26.0-alpha.1 → 1.26.0-alpha.2
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/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +8 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/observability/v-next/ddl.d.ts +3 -3
- package/dist/storage/domains/observability/v-next/ddl.d.ts.map +1 -1
- package/dist/storage/domains/observability/v-next/helpers.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2720,6 +2720,7 @@ CREATE TABLE IF NOT EXISTS ${TABLE_SPAN_EVENTS} (
|
|
|
2720
2720
|
isEvent Bool DEFAULT false,
|
|
2721
2721
|
startedAt DateTime64(3, 'UTC'),
|
|
2722
2722
|
endedAt DateTime64(3, 'UTC'),
|
|
2723
|
+
timeToFirstChunkMs Nullable(Float64),
|
|
2723
2724
|
|
|
2724
2725
|
-- Query-relevant flexible fields
|
|
2725
2726
|
tags Array(LowCardinality(String)) DEFAULT [],
|
|
@@ -2793,6 +2794,7 @@ CREATE TABLE IF NOT EXISTS ${TABLE_TRACE_ROOTS} (
|
|
|
2793
2794
|
isEvent Bool DEFAULT false,
|
|
2794
2795
|
startedAt DateTime64(3, 'UTC'),
|
|
2795
2796
|
endedAt DateTime64(3, 'UTC'),
|
|
2797
|
+
timeToFirstChunkMs Nullable(Float64),
|
|
2796
2798
|
|
|
2797
2799
|
-- Query-relevant flexible fields
|
|
2798
2800
|
tags Array(LowCardinality(String)) DEFAULT [],
|
|
@@ -2878,6 +2880,7 @@ CREATE TABLE IF NOT EXISTS ${TABLE_TRACE_BRANCHES} (
|
|
|
2878
2880
|
isEvent Bool DEFAULT false,
|
|
2879
2881
|
startedAt DateTime64(3, 'UTC'),
|
|
2880
2882
|
endedAt DateTime64(3, 'UTC'),
|
|
2883
|
+
timeToFirstChunkMs Nullable(Float64),
|
|
2881
2884
|
|
|
2882
2885
|
-- Query-relevant flexible fields
|
|
2883
2886
|
tags Array(LowCardinality(String)) DEFAULT [],
|
|
@@ -3683,7 +3686,10 @@ const ALL_MIGRATIONS = [
|
|
|
3683
3686
|
addBloomIndex(TABLE_METRIC_EVENTS, "idx_sessionId", "sessionId"),
|
|
3684
3687
|
addBloomIndex(TABLE_METRIC_EVENTS, "idx_requestId", "requestId"),
|
|
3685
3688
|
...LOG_SKIP_INDEX_COLUMNS.map((column) => addBloomIndex(TABLE_LOG_EVENTS, `idx_${column}`, column)),
|
|
3686
|
-
addBloomIndex(TABLE_DELETION_REQUESTS, "idx_predicateValues", "predicateValues")
|
|
3689
|
+
addBloomIndex(TABLE_DELETION_REQUESTS, "idx_predicateValues", "predicateValues"),
|
|
3690
|
+
addColumn(TABLE_TRACE_ROOTS, "timeToFirstChunkMs", "Nullable(Float64)"),
|
|
3691
|
+
addColumn(TABLE_TRACE_BRANCHES, "timeToFirstChunkMs", "Nullable(Float64)"),
|
|
3692
|
+
addColumn(TABLE_SPAN_EVENTS, "timeToFirstChunkMs", "Nullable(Float64)")
|
|
3687
3693
|
];
|
|
3688
3694
|
const ALL_TABLE_NAMES = [
|
|
3689
3695
|
TABLE_SPAN_EVENTS,
|
|
@@ -4132,6 +4138,7 @@ function spanRecordToRow(span) {
|
|
|
4132
4138
|
isEvent: span.isEvent,
|
|
4133
4139
|
startedAt: toISOString(span.startedAt),
|
|
4134
4140
|
endedAt: toISOString(endedAt),
|
|
4141
|
+
timeToFirstChunkMs: span.timeToFirstChunkMs ?? null,
|
|
4135
4142
|
tags: normalizeTags(span.tags),
|
|
4136
4143
|
metadataSearch: buildMetadataSearch(metadata),
|
|
4137
4144
|
metadataRaw: jsonEncode(metadata),
|