View Source LoggerExporter.Exporters.Exporter behaviour (LoggerExporter v0.4.0)
Behaviour that should be implemented by exporters.
Example implementation in LoggerExporter.Exporters.LokiExporter
Link to this section Summary
Link to this section Callbacks
@callback body([LoggerExporter.Event.t()]) :: term()
Body to sent to the external service
The body will be encoded by the json library
@callback headers() :: Mint.Types.headers()
Headers
[{"Content-Type", "application/json"}] is added by default