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,7 @@ description: AI可观测配置参考
|----------------|-------|------|-----|------------------------|
| `attributes` | []Attribute | 非必填 | - | 用户希望记录在log/span中的信息 |
| `disable_openai_usage` | bool | 非必填 | false | 非openai兼容协议时model、token的支持非标配置为true时可以避免报错 |
| `value_length_limit` | int | 非必填 | 4000 | 记录的单个value的长度限制 |
Attribute 配置说明: