@mastra/duckdb 1.11.2-alpha.0 → 1.11.2-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.
@@ -3,7 +3,7 @@ name: mastra-duckdb
3
3
  description: Documentation for @mastra/duckdb. Use when working with @mastra/duckdb APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/duckdb"
6
- version: "1.11.2-alpha.0"
6
+ version: "1.11.2-alpha.1"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.11.2-alpha.0",
2
+ "version": "1.11.2-alpha.1",
3
3
  "package": "@mastra/duckdb",
4
4
  "exports": {},
5
5
  "modules": {}
package/dist/index.cjs CHANGED
@@ -550,7 +550,7 @@ var ObservabilityStorageDuckDB = class extends _mastra_core_storage.Observabilit
550
550
  async loadDelegate() {
551
551
  if (this.delegate) return this.delegate;
552
552
  if (this.unavailableError) return null;
553
- if (!this.loadPromise) this.loadPromise = Promise.resolve().then(() => require("./observability-DRS8TmSs.cjs")).then(({ ObservabilityStorageDuckDB }) => {
553
+ if (!this.loadPromise) this.loadPromise = Promise.resolve().then(() => require("./observability-By0tHYDZ.cjs")).then(({ ObservabilityStorageDuckDB }) => {
554
554
  const delegate = new ObservabilityStorageDuckDB({ db: this.db });
555
555
  this.delegate = delegate;
556
556
  return delegate;
package/dist/index.js CHANGED
@@ -549,7 +549,7 @@ var ObservabilityStorageDuckDB = class extends ObservabilityStorage {
549
549
  async loadDelegate() {
550
550
  if (this.delegate) return this.delegate;
551
551
  if (this.unavailableError) return null;
552
- if (!this.loadPromise) this.loadPromise = import("./observability-D4A1jrAF.js").then(({ ObservabilityStorageDuckDB }) => {
552
+ if (!this.loadPromise) this.loadPromise = import("./observability-DPpE45z0.js").then(({ ObservabilityStorageDuckDB }) => {
553
553
  const delegate = new ObservabilityStorageDuckDB({ db: this.db });
554
554
  this.delegate = delegate;
555
555
  return delegate;
@@ -4031,6 +4031,7 @@ async function insertSpanEvents(db, rows) {
4031
4031
  await db.execute(`INSERT INTO span_events (${COLUMNS_SQL}) VALUES ${tuples}`);
4032
4032
  }
4033
4033
  function createStartSpanRow(s) {
4034
+ const payloadOnEndRow = !!s.endedAt && !s.isEvent;
4034
4035
  return {
4035
4036
  eventType: "start",
4036
4037
  timestamp: s.startedAt,
@@ -4058,15 +4059,15 @@ function createStartSpanRow(s) {
4058
4059
  environment: s.environment ?? null,
4059
4060
  source: s.source ?? null,
4060
4061
  serviceName: s.serviceName ?? null,
4061
- attributes: s.attributes ?? null,
4062
- metadata: s.metadata ?? null,
4062
+ attributes: payloadOnEndRow ? null : s.attributes ?? null,
4063
+ metadata: payloadOnEndRow ? null : s.metadata ?? null,
4063
4064
  tags: s.tags == null ? null : normalizeTags(s.tags),
4064
4065
  scope: s.scope ?? null,
4065
4066
  links: null,
4066
- input: s.input ?? null,
4067
+ input: payloadOnEndRow ? null : s.input ?? null,
4067
4068
  output: null,
4068
4069
  error: null,
4069
- requestContext: s.requestContext ?? null
4070
+ requestContext: payloadOnEndRow ? null : s.requestContext ?? null
4070
4071
  };
4071
4072
  }
4072
4073
  function createEndSpanRow(s) {
@@ -5105,4 +5106,4 @@ var ObservabilityStorageDuckDB = class ObservabilityStorageDuckDB extends _mastr
5105
5106
  //#endregion
5106
5107
  exports.ObservabilityStorageDuckDB = ObservabilityStorageDuckDB;
5107
5108
 
5108
- //# sourceMappingURL=observability-DRS8TmSs.cjs.map
5109
+ //# sourceMappingURL=observability-By0tHYDZ.cjs.map