@bitfab/sdk 0.33.6 → 0.33.7

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.
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-DPV6PBWE.js";
18
18
 
19
19
  // src/version.generated.ts
20
- var __version__ = "0.33.6";
20
+ var __version__ = "0.33.7";
21
21
 
22
22
  // src/constants.ts
23
23
  var DEFAULT_SERVICE_URL = "https://bitfab.ai";
@@ -1751,7 +1751,9 @@ var BitfabLangGraphCallbackHandler = class {
1751
1751
  if (extraContexts && Object.keys(extraContexts).length > 0) {
1752
1752
  spanInfo.contexts.push(extraContexts);
1753
1753
  }
1754
- this.sendSpan(spanInfo);
1754
+ if (spanInfo.hidden !== true) {
1755
+ this.sendSpan(spanInfo);
1756
+ }
1755
1757
  if (runId === spanInfo.rootRunId) {
1756
1758
  const invocation = this.invocations.get(runId);
1757
1759
  this.sendTraceCompletion(spanInfo, invocation?.activeContext ?? null);
@@ -1775,9 +1777,6 @@ var BitfabLangGraphCallbackHandler = class {
1775
1777
  if (spanInfo.contexts.length > 0) {
1776
1778
  spanData.contexts = spanInfo.contexts;
1777
1779
  }
1778
- if (spanInfo.hidden) {
1779
- spanData.hidden = true;
1780
- }
1781
1780
  const rawSpan = {
1782
1781
  id: spanInfo.spanId,
1783
1782
  trace_id: spanInfo.traceId,
@@ -4060,4 +4059,4 @@ export {
4060
4059
  BitfabFunction,
4061
4060
  finalizers
4062
4061
  };
4063
- //# sourceMappingURL=chunk-JANSX65W.js.map
4062
+ //# sourceMappingURL=chunk-DZJ5K75J.js.map