@bitfab/sdk 0.33.7 → 0.34.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/README.md CHANGED
@@ -104,6 +104,22 @@ pnpm add bitfab @openai/agents
104
104
 
105
105
  The `@openai/agents` package is an optional peer dependency - the SDK works fine without it unless you need tracing functionality.
106
106
 
107
+ ### With an OpenTelemetry Collector
108
+
109
+ Spans are batched and delivered through a private OpenTelemetry pipeline that
110
+ the SDK owns. Direct delivery to Bitfab is the default and needs no extra
111
+ configuration.
112
+
113
+ To route traces through an OTel Collector instead, set the receiver URL:
114
+
115
+ ```bash
116
+ BITFAB_OTEL_EXPORTER_ENDPOINT=http://localhost:4318
117
+ ```
118
+
119
+ The protobuf exporter Collector mode uses ships with the SDK and is code-split,
120
+ so it loads only when you set an endpoint. See [OpenTelemetry Transport
121
+ Architecture](https://docs.bitfab.ai/otel-architecture) for the full model.
122
+
107
123
  ## Local Development
108
124
 
109
125
  ```bash
@@ -261,6 +277,9 @@ When `executeLocally: false`, the SDK:
261
277
 
262
278
  - `BITFAB_URL`: The base URL for the Bitfab API (used if `serviceUrl` is not provided)
263
279
  - `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, etc.: LLM provider API keys (required for local execution)
280
+ - `BITFAB_OTEL_EXPORTER_ENDPOINT`: OTLP/HTTP Collector base URL; unset means batches go directly to Bitfab
281
+ - `BITFAB_OTEL_MAX_REQUEST_BYTES`: request-size target for exports (positive integer up to `3000000`)
282
+ - `BITFAB_OTEL_EXPORT_CONCURRENCY`: concurrent direct requests per export window (`1`-`64`, default `32`)
264
283
 
265
284
  ## Testing
266
285