dwctl 8.39.0

The Doubleword Control Layer - A self-hostable observability and analytics platform for LLM applications
1
2
3
4
5
6
7
8
9
10
11
12
//! Prometheus metrics recorder.

use crate::request_logging::serializers::HttpAnalyticsRow;

use async_trait::async_trait;

/// Trait for recording GenAI metrics from analytics data
#[async_trait]
pub trait MetricsRecorder: Send + Sync {
    /// Record metrics from a complete http_analytics table row
    async fn record_from_analytics(&self, row: &HttpAnalyticsRow);
}