@mastra/pg 1.32.0-alpha.1 → 1.32.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/index.js CHANGED
@@ -16010,6 +16010,11 @@ const SPAN_EVENT_COLUMNS = [
16010
16010
  name: "endedAt",
16011
16011
  type: "timestamptz"
16012
16012
  },
16013
+ {
16014
+ name: "timeToFirstChunkMs",
16015
+ type: "double precision",
16016
+ nullable: true
16017
+ },
16013
16018
  {
16014
16019
  name: "tags",
16015
16020
  type: "text[]",
@@ -16744,6 +16749,11 @@ function additiveColumns(schema) {
16744
16749
  column,
16745
16750
  ddl: `ALTER TABLE ${qualifiedTable(schema, TABLE_SPAN_EVENTS)} ADD COLUMN IF NOT EXISTS "${column}" text`
16746
16751
  })),
16752
+ {
16753
+ table: TABLE_SPAN_EVENTS,
16754
+ column: "timeToFirstChunkMs",
16755
+ ddl: `ALTER TABLE ${qualifiedTable(schema, TABLE_SPAN_EVENTS)} ADD COLUMN IF NOT EXISTS "timeToFirstChunkMs" double precision`
16756
+ },
16747
16757
  {
16748
16758
  table: TABLE_FEEDBACK_EVENTS,
16749
16759
  column: "reviewStatus",
@@ -17465,6 +17475,7 @@ function spanRecordToRow(span) {
17465
17475
  isPending,
17466
17476
  startedAt: toIsoOrDate(span.startedAt),
17467
17477
  endedAt: toIsoOrDate(endedAt),
17478
+ timeToFirstChunkMs: span.timeToFirstChunkMs ?? null,
17468
17479
  tags: normalizeTags(span.tags),
17469
17480
  metadataSearch: buildMetadataSearch(metadata),
17470
17481
  metadataRaw: jsonField(metadata),