Skip to content

Commit

Permalink
update ottlfuncs readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Yigithan Karabulut committed Dec 7, 2024
1 parent c245d02 commit fa3e9b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/ottl/ottlfuncs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,8 @@ The `truncate_all` function truncates all string values in a `pcommon.Map` so th

`target` is a path expression to a `pcommon.Map` type field. `limit` is a non-negative integer.

If truncating at exactly the length results in a broken UTF-8 encoding, `truncate_all` will be truncated before the last UTF-8 character begins.

The map will be mutated such that the number of characters in all string values is less than or equal to the limit. Non-string values are ignored.

Examples:
Expand Down

0 comments on commit fa3e9b2

Please sign in to comment.