You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -179,6 +183,8 @@ Strands traces include rich attributes that provide context for each operation:
179
183
|`gen_ai.usage.completion_tokens`| Total tokens used for completions |
180
184
|`gen_ai.usage.output_tokens`| Total tokens used for completions (duplicate) |
181
185
|`gen_ai.usage.total_tokens`| Total token usage |
186
+
|`gen_ai.usage.cache_read_input_tokens`| Number of input tokens read from cache (Note: Not all model providers support cache tokens. This defaults to 0 in that case) |
187
+
|`gen_ai.usage.cache_write_input_tokens`| Number of input tokens written to cache (Note: Not all model providers support cache tokens. This defaults to 0 in that case) |
182
188
183
189
### Cycle-Level Attributes
184
190
@@ -209,6 +215,8 @@ Strands traces include rich attributes that provide context for each operation:
209
215
|`gen_ai.usage.completion_tokens`| Total tokens used for completions |
210
216
|`gen_ai.usage.output_tokens`| Total tokens used for completions (duplicate) |
211
217
|`gen_ai.usage.total_tokens`| Total token usage |
218
+
|`gen_ai.usage.cache_read_input_tokens`| Number of input tokens read from cache (Note: Not all model providers support cache tokens. This defaults to 0 in that case) |
219
+
|`gen_ai.usage.cache_write_input_tokens`| Number of input tokens written to cache (Note: Not all model providers support cache tokens. This defaults to 0 in that case) |
0 commit comments