Change LogEvent::insert
function to return a Result<Option<Value>>
#21213
Labels
type: tech debt
A code change that does not add user value.
This is an idea for improving the insertion API. I noticed that
insert
silently fails when inserting inserting special paths likea-b
. See the following test for example:Changing the return type to
vector_common::Result<Option<Value>>
would require the user to handle a failed insertion. This can prevent subtle bugs. However, this would require a lot of refactoring.Edit: This is actually only relevant when the
string_path
VRL crate feature is enabled. This feature is off by default.The text was updated successfully, but these errors were encountered: