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(elastic): encode duration_μs inserted by LoggerJSON.Plug as event.duration #129

Closed
wants to merge 2 commits into from

Conversation

bvobart
Copy link
Contributor

@bvobart bvobart commented Aug 14, 2024

Hi. While trying out LoggerJSON.Plug I noticed that it adds duration_μs as metadata, but this is not a valid field in the Elastic Common Schema, so here's a quick fix to remap that to event.duration as is also recommended on the Elastic forum

Note that similar changes might be necessary for the Google Cloud and Datadog formatters too.

@coveralls
Copy link

Coverage Status

coverage: 100.0%. remained the same
when pulling c9d41db on bvobart:master
into 2e72e28 on Nebo15:master.

@bvobart
Copy link
Contributor Author

bvobart commented Aug 17, 2024

@AndrewDryga This basically fixes the Elastic equivalent of #124 Would you mind reviewing? 😊

@AndrewDryga
Copy link
Member

Please see #124 (comment)

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.

3 participants