Nebo15 / logger_json

JSON logger formatter with support for Google Cloud, DataDog and other for Elixir.
https://nebo15.github.io/logger_json/
MIT License
237 stars 92 forks source link

Remap `duration_us` to spec-compliant fields for Elastic and DataDog formatters #132

Closed bvobart closed 1 month ago

bvobart commented 1 month ago

As mentioned in #124

duration_us is not a valid field in the Elastic Common Schema (the Elastic forum recommends using event.duration) and DataDog recommends using duration, so this PR remaps that.

coveralls commented 1 month ago

Coverage Status

coverage: 100.0%. remained the same when pulling a3fcfd8dfe98f86eba151c5b04e6d8ab483179bf on bvobart:master into 4667ec488af225690635f2f6ceaa3640c75c8a32 on Nebo15:master.