Skip to main content

Module sinks

Module sinks 

Source
Expand description

The event sinks razeri ships, implemented against the same public traits a third-party sink uses — nothing here has access a plugin author lacks.

SinkTypeWrites to
stdout::StdoutSinkstdoutthe error output, one line of JSON per event
jsonl::JsonlSinkjsonla file, one line of JSON appended per event

Neither is submitted for auto-discovery, so a registry built with_auto_discovered() holds neither: a program registers the one it wants, or builds it with create_sink from an EventSinkConfig. No sink here sends events to an HTTP endpoint.

Modules§

jsonl
JSONL file sink — appends events as newline-delimited JSON.
stdout
Stdout event sink — writes events as JSON to stderr.

Structs§

EventSinkConfig
Sink configuration entry — matches the agent YAML schema.

Functions§

create_sink
Create a concrete EventSink from a config entry.