@bitfab/sdk 0.33.7 → 0.34.0
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 +19 -0
- package/dist/chunk-4J36FZ4K.js +2299 -0
- package/dist/chunk-4J36FZ4K.js.map +1 -0
- package/dist/{chunk-DZJ5K75J.js → chunk-ESKBRHVG.js} +87 -604
- package/dist/chunk-ESKBRHVG.js.map +1 -0
- package/dist/index.cjs +2297 -1365
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +374 -28
- package/dist/index.d.ts +374 -28
- package/dist/index.js +5 -5
- package/dist/node.cjs +2287 -1355
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +5 -5
- package/dist/{replay-SRQI4QMY.js → replay-QFNYP7EY.js} +2 -2
- package/package.json +6 -1
- package/dist/chunk-DPV6PBWE.js +0 -916
- package/dist/chunk-DPV6PBWE.js.map +0 -1
- package/dist/chunk-DZJ5K75J.js.map +0 -1
- /package/dist/{replay-SRQI4QMY.js.map → replay-QFNYP7EY.js.map} +0 -0
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
|
|