add value length limit for ai statistics, truncate when over limit (#2729)

This commit is contained in:
rinfx
2025-08-11 11:12:03 +08:00
committed by GitHub
parent 33ce18df5a
commit f7813df1d7
3 changed files with 14 additions and 2 deletions

View File

@@ -24,6 +24,8 @@ Users can also expand observable values through configuration:
|----------------|-------|------|-----|------------------------|
| `attributes` | []Attribute | optional | - | Information that the user wants to record in log/span |
| `disable_openai_usage` | bool | optional | false | When using a non-OpenAI-compatible protocol, the support for model and token is non-standard. Setting the configuration to true can prevent errors. |
| `value_length_limit` | int | optional | 4000 | length limit for each value |
Attribute Configuration instructions: