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.
coverage: 100.0%. remained the same
when pulling c9d41dbf33fa84478b8daefc82e6af768eb84dd3 on bvobart:master
into 2e72e28185c17e842f4653daa0d556ea92479810 on Nebo15:master.
Hi. While trying out
LoggerJSON.Plug
I noticed that it addsduration_μs
as metadata, but this is not a valid field in the Elastic Common Schema, so here's a quick fix to remap that toevent.duration
as is also recommended on the Elastic forumNote that similar changes might be necessary for the Google Cloud and Datadog formatters too.