netra-sdk 1.12.2 → 1.13.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 +1 -9
- package/dist/index.cjs +1024 -379
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1025 -380
- package/dist/index.js.map +1 -1
- package/package.json +11 -2
package/README.md
CHANGED
|
@@ -33,8 +33,6 @@ export NETRA_OTLP_ENDPOINT="https://api.getnetra.ai/telemetry"
|
|
|
33
33
|
export NETRA_API_KEY="your-api-key-here"
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
If the endpoint is not set, the SDK prints a warning at startup that names `NETRA_OTLP_ENDPOINT`. See [Logging](#-logging).
|
|
37
|
-
|
|
38
36
|
### Basic Setup
|
|
39
37
|
|
|
40
38
|
Initialize the Netra SDK at the start of your application (entry point). The `init()` method is async and waits for all instrumentations to be ready before returning:
|
|
@@ -123,6 +121,7 @@ The SDK supports automatic instrumentation for various providers and frameworks:
|
|
|
123
121
|
- Mistral AI
|
|
124
122
|
- Groq
|
|
125
123
|
- Together AI
|
|
124
|
+
- TypeSafe (Jev) - `systemOne` calls via the `@typesafe-ai/sdk` client
|
|
126
125
|
- Ollama
|
|
127
126
|
- Bedrock (AWS)
|
|
128
127
|
|
|
@@ -297,13 +296,6 @@ You can configure the SDK using environment variables:
|
|
|
297
296
|
| `NETRA_APP_NAME` | Name of your application |
|
|
298
297
|
| `NETRA_ENV` | Environment (e.g., prod, dev) |
|
|
299
298
|
| `NETRA_TRACE_CONTENT` | Capture prompt/completion content (default: true) |
|
|
300
|
-
| `NETRA_DEBUG` | Enable debug logging (default: false) |
|
|
301
|
-
|
|
302
|
-
## 📝 Logging
|
|
303
|
-
|
|
304
|
-
Outside debug mode the SDK keeps its internal logs quiet. Problems you have to fix are still printed through `console.warn` or `console.error`, with the `[Netra]` prefix. They include a missing `NETRA_OTLP_ENDPOINT` or `NETRA_API_KEY`, span batches that were dropped, invalid arguments to public methods, and failed Netra API calls.
|
|
305
|
-
|
|
306
|
-
To see the SDK's full internal logs, pass `debugMode: true` to `Netra.init()` or set `NETRA_DEBUG=true`.
|
|
307
299
|
|
|
308
300
|
## 🤝 License
|
|
309
301
|
|