Wrap yourDocumentation Index
Fetch the complete documentation index at: https://docs.lumiqtrace.com/llms.txt
Use this file to discover all available pages before exploring further.
BedrockRuntimeClient with wrapBedrock() to trace all model invocations through the Bedrock API.
Installation
Setup
Example
What gets captured
| Field | Details |
|---|---|
| Model | Bedrock model ID (e.g. anthropic.claude-sonnet-4-6-v1) |
| Input tokens | Parsed from the model response body |
| Output tokens | Parsed from the model response body |
| Cost | Calculated from token counts and Bedrock pricing |
| Latency | Total invocation duration |
Token extraction requires the model response body to include usage metadata. All Anthropic and Llama models on Bedrock return this. Check your model’s response schema if tokens show as zero.