Skip to content

Commit fbf4286

Browse files
committed
chore: update custom_app schema
1 parent 73b03c9 commit fbf4286

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ target/
5656
/agent/src/ebpf/samples/rust/socket-tracer/src/ebpf.rs
5757
/agent/src/ebpf/.flamegraph.pl
5858
/agent/src/ebpf/kernel/*.tmp
59+
/.claude
5960

6061

6162

server/agent_config/custom_app.example.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ biz_field:
148148
value: xyz
149149
- key: ignore_case
150150
value: true
151+
- key: trim
152+
value: '"[]'
151153
- type: parse_dict_value
152154
settings:
153155
- key: keyword

server/agent_config/custom_app.schema.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,7 @@ $defs:
934934
- key_value_separator: Separator between key and value, default is "=".
935935
- keyword: Field(s) to search for.
936936
- ignore_case: Whether to ignore case.
937+
- trim: Trims the extracted result by removing matching leading and trailing characters. This works as a character set rather than a whole substring. For example, when `trim` is `abc`, `acdbddb` becomes `dbdd`.
937938
- `Parse Dict Value` (`parse_dict_value`): Parses the value as a dictionary, and outputs the value corresponding to the specified key. Supported configuration:
938939
- keyword: Field to search for.
939940
- type: Can only be string.
@@ -978,6 +979,7 @@ $defs:
978979
- key_value_separator:键值分隔符,默认为"="。
979980
- keyword:要查找的字段。
980981
- ignore_case:是否忽略大小写。
982+
- trim:对提取结果做首尾裁剪,去掉两端与该配置中任一字符相同的字符。这里按“字符集合”生效,而不是按整段子串生效。例如 `trim` 为 `abc` 时,`acdbddb` 会变成 `dbdd`。
981983
- `字典提取` (`parse_dict_value`):将值作为字典解析,并输出指定 key 对应的 value。支持配置为:
982984
- keyword:要查找的字段。
983985
- type:类型,只能为 string。

0 commit comments

Comments
 (0)