I've been working on developing a custom processor plugin for Benthos and encountered a scenario where accessing the component path information within the plugin would be incredibly useful. Specifically, I'm interested in retrieving the path similar to how it's represented in Benthos logs (e.g., processors.1.switch.1) for more contextual logging and processing within my plugin.
In a discussion with @Jeffail in Discord, it was suggested that this feature would require adding the component path information to the Resources type to be accessible by custom plugins.
I've been working on developing a custom processor plugin for Benthos and encountered a scenario where accessing the component path information within the plugin would be incredibly useful. Specifically, I'm interested in retrieving the path similar to how it's represented in Benthos logs (e.g., processors.1.switch.1) for more contextual logging and processing within my plugin.
In a discussion with @Jeffail in Discord, it was suggested that this feature would require adding the component path information to the Resources type to be accessible by custom plugins.