bitfab 0.13.7 → 0.13.8

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/index.d.cts CHANGED
@@ -990,7 +990,7 @@ declare class BitfabFunction {
990
990
  /**
991
991
  * SDK version from package.json (injected at build time)
992
992
  */
993
- declare const __version__ = "0.13.7";
993
+ declare const __version__ = "0.13.8";
994
994
 
995
995
  /**
996
996
  * Constants for the Bitfab SDK.
package/dist/index.d.ts CHANGED
@@ -990,7 +990,7 @@ declare class BitfabFunction {
990
990
  /**
991
991
  * SDK version from package.json (injected at build time)
992
992
  */
993
- declare const __version__ = "0.13.7";
993
+ declare const __version__ = "0.13.8";
994
994
 
995
995
  /**
996
996
  * Constants for the Bitfab SDK.
package/dist/index.js CHANGED
@@ -17,13 +17,13 @@ import {
17
17
  SUPPORTED_PROVIDERS,
18
18
  getCurrentSpan,
19
19
  getCurrentTrace
20
- } from "./chunk-LUZVIGER.js";
20
+ } from "./chunk-4ANYHNQJ.js";
21
21
  import {
22
22
  BitfabError,
23
23
  DEFAULT_SERVICE_URL,
24
24
  __version__,
25
25
  flushTraces
26
- } from "./chunk-EGRWBJYR.js";
26
+ } from "./chunk-VFGUZWAV.js";
27
27
  export {
28
28
  Bitfab,
29
29
  BitfabClaudeAgentHandler,
package/dist/node.cjs CHANGED
@@ -90,7 +90,7 @@ var __version__;
90
90
  var init_version_generated = __esm({
91
91
  "src/version.generated.ts"() {
92
92
  "use strict";
93
- __version__ = "0.13.7";
93
+ __version__ = "0.13.8";
94
94
  }
95
95
  });
96
96
 
@@ -197,7 +197,9 @@ var init_http = __esm({
197
197
  )
198
198
  ),
199
199
  rawSpan: {},
200
- errors: [{ step: "json_serialize", error: serializationError }]
200
+ errors: [
201
+ { source: "sdk", step: "json_serialize", error: serializationError }
202
+ ]
201
203
  });
202
204
  }
203
205
  try {
@@ -2191,6 +2193,7 @@ var BitfabOpenAITracingProcessor = class {
2191
2193
  const jsonResult = span.toJSON();
2192
2194
  if (typeof jsonResult !== "object" || jsonResult === null) {
2193
2195
  errors.push({
2196
+ source: "sdk",
2194
2197
  step: "span.toJSON()",
2195
2198
  error: `Returned unexpected type: ${typeof jsonResult}`
2196
2199
  });
@@ -2200,6 +2203,7 @@ var BitfabOpenAITracingProcessor = class {
2200
2203
  }
2201
2204
  } catch (error) {
2202
2205
  errors.push({
2206
+ source: "sdk",
2203
2207
  step: "span.toJSON()",
2204
2208
  error: error instanceof Error ? error.message : String(error)
2205
2209
  });
@@ -2219,6 +2223,7 @@ var BitfabOpenAITracingProcessor = class {
2219
2223
  spanData.input = span.spanData?._input || [];
2220
2224
  } catch (error) {
2221
2225
  errors.push({
2226
+ source: "sdk",
2222
2227
  step: "access_input",
2223
2228
  error: error instanceof Error ? error.message : String(error)
2224
2229
  });
@@ -2227,6 +2232,7 @@ var BitfabOpenAITracingProcessor = class {
2227
2232
  spanData.response = span.spanData?._response || null;
2228
2233
  } catch (error) {
2229
2234
  errors.push({
2235
+ source: "sdk",
2230
2236
  step: "access_response",
2231
2237
  error: error instanceof Error ? error.message : String(error)
2232
2238
  });
@@ -3155,7 +3161,10 @@ var Bitfab = class {
3155
3161
  ...params.functionName !== void 0 && {
3156
3162
  function_name: params.functionName
3157
3163
  },
3158
- ...params.error !== void 0 && { error: params.error },
3164
+ ...params.error !== void 0 && {
3165
+ error: params.error,
3166
+ error_source: "code"
3167
+ },
3159
3168
  ...params.contexts && params.contexts.length > 0 && {
3160
3169
  contexts: params.contexts
3161
3170
  },