@lmnr-ai/lmnr 0.7.7 → 0.7.9
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/cli.d.mts +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +7 -1
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +7 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/{evaluations-BqX50nHw.d.mts → evaluations-CUQthK1O.d.mts} +1 -1
- package/dist/{evaluations-BqX50nHw.d.ts → evaluations-CUQthK1O.d.ts} +1 -1
- package/dist/index.d.mts +17 -2
- package/dist/index.d.ts +17 -2
- package/dist/index.js +114 -37
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +114 -37
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/cli.d.mts
CHANGED
package/dist/cli.d.ts
CHANGED
package/dist/cli.js
CHANGED
|
@@ -27,7 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
var import_commander = require("commander");
|
|
28
28
|
|
|
29
29
|
// package.json
|
|
30
|
-
var version = "0.7.
|
|
30
|
+
var version = "0.7.9";
|
|
31
31
|
|
|
32
32
|
// src/utils.ts
|
|
33
33
|
var import_api = require("@opentelemetry/api");
|
|
@@ -152,6 +152,9 @@ var LaminarContextManager = class {
|
|
|
152
152
|
if (!span) {
|
|
153
153
|
return context;
|
|
154
154
|
}
|
|
155
|
+
if (!span.isRecording() && span.spanContext().isRemote) {
|
|
156
|
+
return context;
|
|
157
|
+
}
|
|
155
158
|
try {
|
|
156
159
|
const isActive = this._activeSpans.has(span.spanContext().spanId);
|
|
157
160
|
if (isActive) {
|
|
@@ -188,6 +191,9 @@ var LaminarContextManager = class {
|
|
|
188
191
|
static clearContexts() {
|
|
189
192
|
this._asyncLocalStorage.enterWith([]);
|
|
190
193
|
}
|
|
194
|
+
static clearActiveSpans() {
|
|
195
|
+
this._activeSpans.clear();
|
|
196
|
+
}
|
|
191
197
|
static getContextStack() {
|
|
192
198
|
return this._asyncLocalStorage.getStore() || [];
|
|
193
199
|
}
|