@mastra/clickhouse 1.21.2-alpha.0 → 1.22.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/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/reference-storage-retention.md +1 -1
- package/dist/index.cjs +41 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +41 -3
- 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.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -6567,6 +6567,22 @@ const TRACE_FIELDS = {
|
|
|
6567
6567
|
sql: "r.resourceId",
|
|
6568
6568
|
parameterType: "String"
|
|
6569
6569
|
},
|
|
6570
|
+
runId: {
|
|
6571
|
+
sql: "r.runId",
|
|
6572
|
+
parameterType: "String"
|
|
6573
|
+
},
|
|
6574
|
+
sessionId: {
|
|
6575
|
+
sql: "r.sessionId",
|
|
6576
|
+
parameterType: "String"
|
|
6577
|
+
},
|
|
6578
|
+
userId: {
|
|
6579
|
+
sql: "r.userId",
|
|
6580
|
+
parameterType: "String"
|
|
6581
|
+
},
|
|
6582
|
+
organizationId: {
|
|
6583
|
+
sql: "r.organizationId",
|
|
6584
|
+
parameterType: "String"
|
|
6585
|
+
},
|
|
6570
6586
|
startedAt: {
|
|
6571
6587
|
sql: "r.startedAt",
|
|
6572
6588
|
parameterType: "DateTime64(3, 'UTC')"
|
|
@@ -6660,6 +6676,22 @@ const SPAN_FIELDS = {
|
|
|
6660
6676
|
rootEntityVersionId: {
|
|
6661
6677
|
sql: "s.rootEntityVersionId",
|
|
6662
6678
|
parameterType: "String"
|
|
6679
|
+
},
|
|
6680
|
+
runId: {
|
|
6681
|
+
sql: "s.runId",
|
|
6682
|
+
parameterType: "String"
|
|
6683
|
+
},
|
|
6684
|
+
sessionId: {
|
|
6685
|
+
sql: "s.sessionId",
|
|
6686
|
+
parameterType: "String"
|
|
6687
|
+
},
|
|
6688
|
+
userId: {
|
|
6689
|
+
sql: "s.userId",
|
|
6690
|
+
parameterType: "String"
|
|
6691
|
+
},
|
|
6692
|
+
organizationId: {
|
|
6693
|
+
sql: "s.organizationId",
|
|
6694
|
+
parameterType: "String"
|
|
6663
6695
|
}
|
|
6664
6696
|
};
|
|
6665
6697
|
const SCORE_FIELDS = {
|
|
@@ -6917,7 +6949,11 @@ function compileClickHouseTraceScope(selection, relationCollections, parameters,
|
|
|
6917
6949
|
entityName,
|
|
6918
6950
|
entityVersionId,
|
|
6919
6951
|
parentEntityVersionId,
|
|
6920
|
-
rootEntityVersionId
|
|
6952
|
+
rootEntityVersionId,
|
|
6953
|
+
runId,
|
|
6954
|
+
sessionId,
|
|
6955
|
+
userId,
|
|
6956
|
+
organizationId
|
|
6921
6957
|
FROM ${TABLE_SPAN_EVENTS}
|
|
6922
6958
|
WHERE isNotNull(traceId)
|
|
6923
6959
|
AND traceId IN (SELECT traceId FROM root_scope)${tenant}
|
|
@@ -8627,7 +8663,8 @@ var ObservabilityStorageClickhouseVNext = class extends ObservabilityStorage {
|
|
|
8627
8663
|
"trace-query-discovery",
|
|
8628
8664
|
"thread-query",
|
|
8629
8665
|
"trace-query-tenant-scope",
|
|
8630
|
-
"feedback"
|
|
8666
|
+
"feedback",
|
|
8667
|
+
"trace-query-context-ids"
|
|
8631
8668
|
];
|
|
8632
8669
|
return [
|
|
8633
8670
|
"metrics",
|
|
@@ -8644,7 +8681,8 @@ var ObservabilityStorageClickhouseVNext = class extends ObservabilityStorage {
|
|
|
8644
8681
|
"trace-query-discovery",
|
|
8645
8682
|
"thread-query",
|
|
8646
8683
|
"trace-query-tenant-scope",
|
|
8647
|
-
"feedback"
|
|
8684
|
+
"feedback",
|
|
8685
|
+
"trace-query-context-ids"
|
|
8648
8686
|
];
|
|
8649
8687
|
}
|
|
8650
8688
|
async createSpan(args) {
|