Documentation
¶
Overview ¶
Package alerts raises ops alerts: things a human must act on. Every alert is emitted as one structured log line, which OpenObserve alert rules match:
level=ERROR msg="ops alert" alert_subject=… alert_message=…
plus whatever the context carries through logging.With (loan_id, loan_reference, trace_id). Delivery to Slack, Telegram and PagerDuty is OpenObserve's job, not the code's.
Index ¶
Constants ¶
View Source
const ( Message = "ops alert" AttrSubject = "alert_subject" AttrMessage = "alert_message" )
Message and attribute keys OpenObserve alert rules match on. Changing any of them silently breaks alerting.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogAlerter ¶
LogAlerter raises an alert as the canonical log line.
Click to show internal directories.
Click to hide internal directories.