@mastra/duckdb 1.15.0-alpha.1 → 1.15.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.
@@ -99,6 +99,7 @@ CREATE TABLE IF NOT EXISTS span_events (
99
99
  spanType VARCHAR,
100
100
  isEvent BOOLEAN,
101
101
  endedAt TIMESTAMP,
102
+ timeToFirstChunkMs DOUBLE,
102
103
 
103
104
  -- JSON fields
104
105
  attributes JSON,
@@ -370,6 +371,7 @@ const ALL_MIGRATIONS = [
370
371
  `ALTER TABLE span_events ADD COLUMN IF NOT EXISTS hasInputPayload BOOLEAN`,
371
372
  `ALTER TABLE span_events ADD COLUMN IF NOT EXISTS hasOutputPayload BOOLEAN`,
372
373
  `ALTER TABLE span_events ADD COLUMN IF NOT EXISTS hasErrorPayload BOOLEAN`,
374
+ `ALTER TABLE span_events ADD COLUMN IF NOT EXISTS timeToFirstChunkMs DOUBLE`,
373
375
  `ALTER TABLE metric_events ADD COLUMN IF NOT EXISTS cursorId BIGINT`,
374
376
  `ALTER TABLE metric_events ADD COLUMN IF NOT EXISTS entityVersionId VARCHAR`,
375
377
  `ALTER TABLE metric_events ADD COLUMN IF NOT EXISTS parentEntityVersionId VARCHAR`,
@@ -4457,6 +4459,7 @@ const COLUMNS_SQL = [
4457
4459
  "spanType",
4458
4460
  "isEvent",
4459
4461
  "endedAt",
4462
+ "timeToFirstChunkMs",
4460
4463
  "experimentId",
4461
4464
  "entityType",
4462
4465
  "entityId",
@@ -4944,6 +4947,7 @@ function toValuesTuple(row) {
4944
4947
  v(row.spanType),
4945
4948
  v(row.isEvent),
4946
4949
  v(row.endedAt),
4950
+ v(row.timeToFirstChunkMs),
4947
4951
  v(row.experimentId),
4948
4952
  v(row.entityType),
4949
4953
  v(row.entityId),
@@ -4996,6 +5000,7 @@ function createStartSpanRow(s) {
4996
5000
  spanType: s.spanType,
4997
5001
  isEvent: s.isEvent,
4998
5002
  endedAt: s.isEvent ? s.startedAt : null,
5003
+ timeToFirstChunkMs: s.timeToFirstChunkMs ?? null,
4999
5004
  experimentId: s.experimentId ?? null,
5000
5005
  entityType: s.entityType ?? null,
5001
5006
  entityId: s.entityId ?? null,
@@ -5044,6 +5049,7 @@ function createEndSpanRow(s) {
5044
5049
  spanType: s.spanType,
5045
5050
  isEvent: s.isEvent,
5046
5051
  endedAt: s.endedAt ?? null,
5052
+ timeToFirstChunkMs: s.timeToFirstChunkMs ?? null,
5047
5053
  experimentId: s.experimentId ?? null,
5048
5054
  entityType: s.entityType ?? null,
5049
5055
  entityId: s.entityId ?? null,
@@ -6080,4 +6086,4 @@ var ObservabilityStorageDuckDB = class ObservabilityStorageDuckDB extends Observ
6080
6086
  //#endregion
6081
6087
  export { ObservabilityStorageDuckDB };
6082
6088
 
6083
- //# sourceMappingURL=observability-DTTykJwa.js.map
6089
+ //# sourceMappingURL=observability-HUYFWVy-.js.map