Skip to content
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

fix(humio_metrics sink): dont use flatten for logs config fields #4924

Merged
merged 2 commits into from
Nov 9, 2020

Conversation

StephenWakely
Copy link
Contributor

@StephenWakely StephenWakely commented Nov 8, 2020

Closes #4903

There is a bug in Serde (here) whereby if you flatten fields from another struct it will not alias any fields from that struct.

So, I have had to copy the field from the Humio logs config rather that flatten them. The code is not as elegant, but until Serde fix that issue, there isn't much else to do. By the sounds of it, it is quite a hard bug to fix.

Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com>
Copy link
Member

@jszwedko jszwedko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 that is an unfortunate serde bug.

Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com>
@StephenWakely StephenWakely merged commit a58b819 into master Nov 9, 2020
@StephenWakely StephenWakely deleted the 4903_humio_host branch November 9, 2020 15:56
mengesb pushed a commit to jacobbraaten/vector that referenced this pull request Dec 9, 2020
…tordotdev#4924)

* Humio metrics cant use flatten as the alias field doesn't work

Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com>

* Fix fmt

Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com>
Signed-off-by: Brian Menges <brian.menges@anaplan.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

humio_metrics sink ignores host config
2 participants