Skip to main content

Module telemetry

Module telemetry 

Source
Expand description

The process’s logs and traces: tracing events rendered as readable lines or, with COMINDLY_LOG_FORMAT=json, one JSON object per line; spans sent over OTLP when configured.

Structs§

Guard
Lines
Renders events as comindly’s log lines, with the request and job they happened in.

Functions§

flush
Sends what is queued for export; for when the process is about to exit.
init
Set up logging (and OTLP export when OTEL_EXPORTER_OTLP_ENDPOINT is set) for this process, to stdout when stdout, else stderr. Keep the guard until the process ends.
logs
Whether lines of kind are logged.
parse_skip
A comma-separated list of kinds.
set_logs
Log or drop kind from now on.
skipped
The kinds not logged, comma-separated, as COMINDLY_LOG_SKIP takes them.
write
Write one log line to the process’s log stream: stdout on a server, stderr elsewhere.