Add custom functions to OP Custom Processor doc [WEB-9510]#37956
Open
Jackie-Robson wants to merge 1 commit into
Open
Add custom functions to OP Custom Processor doc [WEB-9510]#37956Jackie-Robson wants to merge 1 commit into
Jackie-Robson wants to merge 1 commit into
Conversation
Surface VRL functions/features recently added to Observability Pipelines in the Custom Processor reference (data/reference/functions.json): - shannon_entropy: add UTF-8 emoji (7 Unicode scalar values) example - parse_regex: add 'Parse using Regex with variables' example - parse_regex_all: add 'Parse using Regex with variables' example - encode_proto: add allow_lossy_string_coercion argument - to_entries: add function (Object category) - from_entries: add function (Object category) Definitions sourced from upstream vectordotdev/vrl stdlib.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do? What is the motivation?
Surfaces VRL functions/features that were recently added to Observability Pipelines in the OP Custom Processor reference. The page renders
data/reference/functions.json, so these are added there. Requested in WEB-9510 by the OP team; follows the same pattern as WEB-7892.Changes (all in
data/reference/functions.json):shannon_entropy— add "UTF-8 emoji (7 Unicode scalar values) with grapheme segmentation" exampleparse_regex— add "Parse using Regex with variables" exampleparse_regex_all— add "Parse using Regex with variables" exampleencode_proto— add the optionalallow_lossy_string_coercionargumentto_entries— add function (Object category)from_entries— add function (Object category)Definitions/examples were sourced from the upstream
vectordotdev/vrlstdlib to match canonical signatures and outputs.Merge readiness
AI assistance
Used Claude Code: located the rendering mechanism and prior-art commit, pulled authoritative definitions from upstream VRL stdlib, and made the JSON edits. Reviewed by me.
Additional notes
No new function category is introduced (all fall under existing String/Codec/Parse/Object groups), so
custom_processor.md's category list needs no change. JSON validated withpython3 -m json.tool.