@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.
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{observability-DRS8TmSs.cjs → observability-By0tHYDZ.cjs} +6 -5
- package/dist/{observability-DRS8TmSs.cjs.map → observability-By0tHYDZ.cjs.map} +1 -1
- package/dist/{observability-D4A1jrAF.js → observability-DPpE45z0.js} +6 -5
- package/dist/{observability-D4A1jrAF.js.map → observability-DPpE45z0.js.map} +1 -1
- package/dist/storage/domains/observability/tracing.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/docs/SKILL.md
CHANGED
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-
|
|
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-
|
|
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-
|
|
5109
|
+
//# sourceMappingURL=observability-By0tHYDZ.cjs.map
|