-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VRL test input isn't able to set event metadata #19639
Comments
I think I see the issue here. For the
Ends up returning
As it stands, it looks like there isn't a way to set metadata on input events using the |
@MartinEmrich as the contributor who added this feature, I'm just curious if you have thoughts. It would mean, rather than using It'd use |
At the moment, there seems to be no way to produce an event with non-trivial metadata for a unit test, which makes it hard to test configurations that have log_namespace = true. Reference: vectordotdev#19639.
@jszwedko Sure you mean me? I have no idea what this is about, I cannot remember a contribution touching his. |
Doh, I'm sorry @MartinEmrich . I meant to tag @MichaHoffmann instead who contributed #19107. @MichaHoffmann I'm curious for your thoughts on #19729 |
I dont really know the VRL api all that well i got to admit, but ignoring the mapped value and returning target feels somewhat weird structurally to me! Edit: But if tests pass I'm happy! |
… unit test source (#19729) * Enable population of event metadata by a VRL source At the moment, there seems to be no way to produce an event with non-trivial metadata for a unit test, which makes it hard to test configurations that have log_namespace = true. Reference: #19639. * Add changelog snippet * Fix changelog snippet name * Fix unit test transform name clash
Should be fixed by #19729. |
… unit test source (vectordotdev#19729) * Enable population of event metadata by a VRL source At the moment, there seems to be no way to produce an event with non-trivial metadata for a unit test, which makes it hard to test configurations that have log_namespace = true. Reference: vectordotdev#19639. * Add changelog snippet * Fix changelog snippet name * Fix unit test transform name clash
A note for the community
Problem
When running in Log Namespacing mode, there seems to be no way to set the input event's metadata. I tried using the VRL test event source and the
% = …
syntax inside the VRL code, but it appears to update the event, not the metadata.Configuration
Version
vector 0.35.0 (x86_64-apple-darwin e57c0c0 2024-01-08 14:42:10.103908779)
Debug Output
Example Data
No response
Additional Context
No response
References
No response
The text was updated successfully, but these errors were encountered: