gen_ai.request.model
- The model requested (e.g., palmyra-x5
)gen_ai.prompt
- Array of prompts sent to the Writer modelgen_ai.completion
- Array of completions returned from Writergen_ai.usage.total_tokens
- Total tokens usedgen_ai.usage.prompt_tokens
- Number of tokens used for promptsgen_ai.usage.completion_tokens
- Number of tokens used for completionsEnvironment Variable | Required | Default | Description |
---|---|---|---|
WRITER_API_KEY | Required | None | Writer API key for authenticating API calls. Must be set for the application to function. |
TRACELOOP_API_KEY | Optional | None | If unset and TRACELOOP_BASE_URL is https://api.traceloop.com , the SDK generates a new API key in the Traceloop dashboard on first run. |
TRACELOOP_BASE_URL | Optional | https://api.traceloop.com | OpenTelemetry endpoint to connect to. If prefixed with http /https , uses OTLP/HTTP protocol; otherwise uses OTLP/GRPC. The SDK appends /v1/traces . |
TRACELOOP_HEADERS | Optional | None | Custom HTTP headers for authentication. If set, API key is ignored. |
TRACELOOP_TRACE_CONTENT | Optional | true | Enable/disable logging of prompts, completions, and embeddings to span attributes. |
TRACELOOP_TELEMETRY | Optional | true | Enable/disable anonymous telemetry data collection. |
Environment Variable | Description |
---|---|
TRACELOOP_BASE_URL | The OTLP endpoint URL for your observability provider |
TRACELOOP_HEADERS | Authentication headers (if required by your provider) |