-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(new_relic sink): Fix handling of dotted attribute names (#21305)
* Break up the test functions * Rework test comparison * Use `vrl::value!` to create log event values * Fix encoding of dotted field names through allowing nesting This converts log event into a logs API model simply by transmuting the type wrapper and dropping all arrays, which are not supported by the API. We could flatten out the keys, as this is what New Relic does internally, and we used to do that, but the flattening iterator accessed through `LogEvent::convert_to_fields` adds quotes to dotted fields names, which produces broken attributes in New Relic, and nesting objects is actually a (slightly) more efficient representation of the key names. * Drop redundant `model_map!` test macro
- Loading branch information
Showing
3 changed files
with
161 additions
and
144 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fixed a bug in the `new_relic` sinks that caused dotted attribute names to be encoded incorrectly with quotes. |
This file contains 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
Oops, something went wrong.