@mastra/clickhouse 1.29.0-alpha.0 → 1.29.0-alpha.1
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 +32 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +32 -13
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/observability/v-next/index.d.ts +1 -1
- package/dist/storage/domains/observability/v-next/index.d.ts.map +1 -1
- package/dist/storage/domains/observability/v-next/trace-query.d.ts +2 -0
- package/dist/storage/domains/observability/v-next/trace-query.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-clickhouse
|
|
|
3
3
|
description: Documentation for @mastra/clickhouse. Use when working with @mastra/clickhouse APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/clickhouse"
|
|
6
|
-
version: "1.29.0-alpha.
|
|
6
|
+
version: "1.29.0-alpha.1"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
package/dist/index.cjs
CHANGED
|
@@ -6938,6 +6938,8 @@ const timingFeatures = [
|
|
|
6938
6938
|
...timeToFirstTokenSupported ? ["trace-query-time-to-first-token"] : [],
|
|
6939
6939
|
...timeToFirstTokenSupported && timeToFirstTokenSortSupported ? ["trace-query-time-to-first-token-sort"] : []
|
|
6940
6940
|
];
|
|
6941
|
+
/** Core before the fields rejects their trace and span predicates, so the feature is only declared when core plans them. */
|
|
6942
|
+
const contextFieldFeatures = "requestId" in (_mastra_core_storage.TRACE_QUERY_FIELD_REGISTRY?.trace ?? {}) ? ["trace-query-context-fields"] : [];
|
|
6941
6943
|
/**
|
|
6942
6944
|
* Outcome fields follow the same rule: core before them rejects their predicates and strict rows,
|
|
6943
6945
|
* so they are only returned and declared when core knows them.
|
|
@@ -6983,6 +6985,18 @@ const TRACE_FIELDS = {
|
|
|
6983
6985
|
sql: "r.organizationId",
|
|
6984
6986
|
parameterType: "String"
|
|
6985
6987
|
},
|
|
6988
|
+
requestId: {
|
|
6989
|
+
sql: "r.requestId",
|
|
6990
|
+
parameterType: "String"
|
|
6991
|
+
},
|
|
6992
|
+
serviceName: {
|
|
6993
|
+
sql: "r.serviceName",
|
|
6994
|
+
parameterType: "String"
|
|
6995
|
+
},
|
|
6996
|
+
experimentId: {
|
|
6997
|
+
sql: "r.experimentId",
|
|
6998
|
+
parameterType: "String"
|
|
6999
|
+
},
|
|
6986
7000
|
startedAt: {
|
|
6987
7001
|
sql: "r.startedAt",
|
|
6988
7002
|
parameterType: "DateTime64(3, 'UTC')"
|
|
@@ -7136,6 +7150,18 @@ const SPAN_FIELDS = {
|
|
|
7136
7150
|
organizationId: {
|
|
7137
7151
|
sql: "s.organizationId",
|
|
7138
7152
|
parameterType: "String"
|
|
7153
|
+
},
|
|
7154
|
+
requestId: {
|
|
7155
|
+
sql: "s.requestId",
|
|
7156
|
+
parameterType: "String"
|
|
7157
|
+
},
|
|
7158
|
+
serviceName: {
|
|
7159
|
+
sql: "s.serviceName",
|
|
7160
|
+
parameterType: "String"
|
|
7161
|
+
},
|
|
7162
|
+
experimentId: {
|
|
7163
|
+
sql: "s.experimentId",
|
|
7164
|
+
parameterType: "String"
|
|
7139
7165
|
}
|
|
7140
7166
|
};
|
|
7141
7167
|
const SPAN_QUERY_FIELDS = {
|
|
@@ -7160,18 +7186,6 @@ const SPAN_QUERY_FIELDS = {
|
|
|
7160
7186
|
sql: "s.resourceId",
|
|
7161
7187
|
parameterType: "String"
|
|
7162
7188
|
},
|
|
7163
|
-
requestId: {
|
|
7164
|
-
sql: "s.requestId",
|
|
7165
|
-
parameterType: "String"
|
|
7166
|
-
},
|
|
7167
|
-
serviceName: {
|
|
7168
|
-
sql: "s.serviceName",
|
|
7169
|
-
parameterType: "String"
|
|
7170
|
-
},
|
|
7171
|
-
experimentId: {
|
|
7172
|
-
sql: "s.experimentId",
|
|
7173
|
-
parameterType: "String"
|
|
7174
|
-
},
|
|
7175
7189
|
environment: {
|
|
7176
7190
|
sql: "s.environment",
|
|
7177
7191
|
parameterType: "String"
|
|
@@ -7525,7 +7539,10 @@ function compileClickHouseTraceScope(selection, relationCollections, parameters,
|
|
|
7525
7539
|
runId,
|
|
7526
7540
|
sessionId,
|
|
7527
7541
|
userId,
|
|
7528
|
-
organizationId
|
|
7542
|
+
organizationId,
|
|
7543
|
+
requestId,
|
|
7544
|
+
serviceName,
|
|
7545
|
+
experimentId
|
|
7529
7546
|
FROM ${TABLE_SPAN_EVENTS}
|
|
7530
7547
|
WHERE isNotNull(traceId)
|
|
7531
7548
|
AND traceId IN (${options.spanExistence && options.oneRootPerTrace ? windowTraces(bound) : "SELECT traceId FROM root_scope"})${tenant}${options.spanExistence ? "" : `
|
|
@@ -10474,6 +10491,7 @@ var ObservabilityStorageClickhouseVNext = class extends _mastra_core_storage.Obs
|
|
|
10474
10491
|
"trace-query-tenant-scope",
|
|
10475
10492
|
"feedback",
|
|
10476
10493
|
"trace-query-context-ids",
|
|
10494
|
+
...contextFieldFeatures,
|
|
10477
10495
|
...timingFeatures,
|
|
10478
10496
|
...outcomeFeatures,
|
|
10479
10497
|
"trace-query-root-span-fields",
|
|
@@ -10501,6 +10519,7 @@ var ObservabilityStorageClickhouseVNext = class extends _mastra_core_storage.Obs
|
|
|
10501
10519
|
"trace-query-tenant-scope",
|
|
10502
10520
|
"feedback",
|
|
10503
10521
|
"trace-query-context-ids",
|
|
10522
|
+
...contextFieldFeatures,
|
|
10504
10523
|
...timingFeatures,
|
|
10505
10524
|
...outcomeFeatures,
|
|
10506
10525
|
"trace-query-root-span-fields",
|