View Source API Reference Uinta v0.15.0
Modules
Uinta is a plugin for the default Elixir logger that lowers log volume while
maximizing log usefulness. It is not a logger backend, but rather includes
Uinta.Formatter
which will format logs on top of the default Elixir logger
backend.
The Uinta Formatter will wrap normal log statements in a JSON object. The log level, timestamp, and metadata will all be attached to it as parts of the object.
Installation
config :logger, :console, format: {Uinta.Formatter.Datadog, :format}
Features
Trace and Span id correlation
Takes trace ids and span ids in the OpenTelemetry format (as hex) and convert them into Datadog
format in the correct key. Logger.metadata must include the keys :trace_id
and :span_id
.
Be sure to add those two keys onto the allowlist in the :logger
config. See
Datadog's documentation
for more details.
No special handling, outputs everything as JSON. See Uinta.Formatter for more information.
Utilities for building a formatter
This plug combines the request and response logs into a single line. This brings many benefits including
Defines types