View Source LoggerExporter.Exporters.Exporter behaviour (LoggerExporter v0.1.0)

Behaviour that should be implemented by exporters. Example implementation in LoggerExporter.Exporters.LokiExporter

Link to this section Summary

Callbacks

Body to sent to the external service

Headers

Link to this section Callbacks

Specs

body([LoggerExporter.Event.t()]) :: term()

Body to sent to the external service

The body will be encoded by the json library

Specs

headers() :: Mint.Types.headers()

Headers

[{"Content-Type", "application/json"}] is added by default