@mastra/observability 1.16.4-alpha.0 → 1.16.4-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/CHANGELOG.md +15 -0
- package/dist/index.cjs +14 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/instances/base.d.ts +4 -0
- package/dist/instances/base.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3328,6 +3328,20 @@ var BaseObservabilityInstance = class extends MastraBase {
|
|
|
3328
3328
|
exportedSpan
|
|
3329
3329
|
};
|
|
3330
3330
|
this.emitTracingEvent(event);
|
|
3331
|
+
return;
|
|
3332
|
+
}
|
|
3333
|
+
this.releaseBridgeSpan(span);
|
|
3334
|
+
}
|
|
3335
|
+
/**
|
|
3336
|
+
* Release bridge state for a span that ended without being exported.
|
|
3337
|
+
*/
|
|
3338
|
+
releaseBridgeSpan(span) {
|
|
3339
|
+
const bridge = this.getBridge();
|
|
3340
|
+
if (!bridge?.releaseSpan) return;
|
|
3341
|
+
try {
|
|
3342
|
+
bridge.releaseSpan(span.id, span.traceId);
|
|
3343
|
+
} catch (error) {
|
|
3344
|
+
this.logger.error(`[Observability] Bridge releaseSpan error [spanId=${span.id}]`, error);
|
|
3331
3345
|
}
|
|
3332
3346
|
}
|
|
3333
3347
|
/**
|