Skip to content

Bloblang interpolation with custom binary plugin #2441

Answered by mihaitodor
Arenash13 asked this question in Q&A
Discussion options

You must be logged in to vote

is there a way to save a value in the processor and call it in the yaml file

Sure! You can set it in the metadata (if you don't want to modify or overwrite the message). See here: https://pkg.go.dev/github.com/benthosdev/benthos/[email protected]/public/service#Message.MetaSetMut Then you can access it in the config using the metadata() function or the @ operator (see here). Note that the meta() function is still available, but it always returns strings instead of whatever type the original value had.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Arenash13
Comment options

@mihaitodor
Comment options

Answer selected by Arenash13
@Arenash13
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2440 on March 25, 2024 18:14.