feat(observability): implement global database error logging, Prometheus error metrics, and max 3-panel Grafana dashboard
This commit is contained in:
@@ -46,6 +46,12 @@ POSTS_PUBLISHED_TOTAL = Counter(
|
||||
["target_channel_id"]
|
||||
)
|
||||
|
||||
ERRORS_TOTAL = Counter(
|
||||
"copykar_errors_total",
|
||||
"Total exceptions and errors caught across services",
|
||||
["service", "error_type"]
|
||||
)
|
||||
|
||||
# Histograms
|
||||
AI_LATENCY_SECONDS = Histogram(
|
||||
"copykar_ai_latency_seconds",
|
||||
|
||||
Reference in New Issue
Block a user