@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 CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { E as Evaluation } from './evaluations-BqX50nHw.mjs';
2
+ import { E as Evaluation } from './evaluations-CUQthK1O.mjs';
3
3
  import '@anthropic-ai/sdk';
4
4
  import '@aws-sdk/client-bedrock-runtime';
5
5
  import '@azure/openai';
package/dist/cli.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { E as Evaluation } from './evaluations-BqX50nHw.js';
2
+ import { E as Evaluation } from './evaluations-CUQthK1O.js';
3
3
  import '@anthropic-ai/sdk';
4
4
  import '@aws-sdk/client-bedrock-runtime';
5
5
  import '@azure/openai';
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.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
  }