@mastra/pg 1.28.0-alpha.3 → 1.28.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/docs-deployment-workers.md +7 -2
- package/dist/docs/references/reference-storage-retention.md +1 -1
- package/dist/index.cjs +18 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -4
- 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
|
@@ -17381,6 +17381,10 @@ const TRACE_FIELDS = {
|
|
|
17381
17381
|
traceId: "r.\"traceId\"",
|
|
17382
17382
|
threadId: "r.\"threadId\"",
|
|
17383
17383
|
resourceId: "r.\"resourceId\"",
|
|
17384
|
+
runId: "r.\"runId\"",
|
|
17385
|
+
sessionId: "r.\"sessionId\"",
|
|
17386
|
+
userId: "r.\"userId\"",
|
|
17387
|
+
organizationId: "r.\"organizationId\"",
|
|
17384
17388
|
startedAt: "r.\"startedAt\"",
|
|
17385
17389
|
endedAt: "r.\"endedAt\"",
|
|
17386
17390
|
durationMs: durationMsSql("r.\"startedAt\"", "r.\"endedAt\""),
|
|
@@ -17405,7 +17409,11 @@ const SPAN_FIELDS = {
|
|
|
17405
17409
|
entityName: "s.\"entityName\"",
|
|
17406
17410
|
entityVersionId: "s.\"entityVersionId\"",
|
|
17407
17411
|
parentEntityVersionId: "s.\"parentEntityVersionId\"",
|
|
17408
|
-
rootEntityVersionId: "s.\"rootEntityVersionId\""
|
|
17412
|
+
rootEntityVersionId: "s.\"rootEntityVersionId\"",
|
|
17413
|
+
runId: "s.\"runId\"",
|
|
17414
|
+
sessionId: "s.\"sessionId\"",
|
|
17415
|
+
userId: "s.\"userId\"",
|
|
17416
|
+
organizationId: "s.\"organizationId\""
|
|
17409
17417
|
};
|
|
17410
17418
|
const SCORE_FIELDS = {
|
|
17411
17419
|
scorerId: "s.\"scorerId\"",
|
|
@@ -17721,7 +17729,11 @@ function compilePostgresTraceScope(schema, selection, relationCollections, scope
|
|
|
17721
17729
|
s."entityName",
|
|
17722
17730
|
s."entityVersionId",
|
|
17723
17731
|
s."parentEntityVersionId",
|
|
17724
|
-
s."rootEntityVersionId"
|
|
17732
|
+
s."rootEntityVersionId",
|
|
17733
|
+
s."runId",
|
|
17734
|
+
s."sessionId",
|
|
17735
|
+
s."userId",
|
|
17736
|
+
s."organizationId"
|
|
17725
17737
|
FROM ${spanTable} s
|
|
17726
17738
|
WHERE s."traceId" IS NOT NULL
|
|
17727
17739
|
AND s."traceId" IN (SELECT "traceId" FROM root_scope)
|
|
@@ -19064,7 +19076,8 @@ var ObservabilityStoragePostgresVNext = class ObservabilityStoragePostgresVNext
|
|
|
19064
19076
|
"trace-query-discovery",
|
|
19065
19077
|
"thread-query",
|
|
19066
19078
|
"trace-query-tenant-scope",
|
|
19067
|
-
"feedback"
|
|
19079
|
+
"feedback",
|
|
19080
|
+
"trace-query-context-ids"
|
|
19068
19081
|
];
|
|
19069
19082
|
return [
|
|
19070
19083
|
"metrics",
|
|
@@ -19081,7 +19094,8 @@ var ObservabilityStoragePostgresVNext = class ObservabilityStoragePostgresVNext
|
|
|
19081
19094
|
"trace-query-discovery",
|
|
19082
19095
|
"thread-query",
|
|
19083
19096
|
"trace-query-tenant-scope",
|
|
19084
|
-
"feedback"
|
|
19097
|
+
"feedback",
|
|
19098
|
+
"trace-query-context-ids"
|
|
19085
19099
|
];
|
|
19086
19100
|
}
|
|
19087
19101
|
async #run(op, fn, details) {
|