Documentation
¶
Overview ¶
Package telemetry provides Prometheus metrics and OpenTelemetry tracing infrastructure for the Sequify server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
// HTTP
HTTPRequestDuration *prometheus.HistogramVec
HTTPRequestsTotal *prometheus.CounterVec
// WebSocket
WSActiveConnections prometheus.Gauge
WSConnectionsTotal *prometheus.CounterVec
WSMessagesTotal *prometheus.CounterVec
// Agent
AgentIntentTotal *prometheus.CounterVec
AgentIntentDuration *prometheus.HistogramVec
AgentActiveIntents prometheus.Gauge
// LLM
LLMRequestDuration *prometheus.HistogramVec
LLMTokensTotal *prometheus.CounterVec
LLMErrorsTotal *prometheus.CounterVec
// Tool
ToolExecutionDuration *prometheus.HistogramVec
ToolExecutionTotal *prometheus.CounterVec
// Queue
QueueDepth *prometheus.GaugeVec
QueueTasksTotal *prometheus.CounterVec
}
Metrics holds all application metrics registered to a custom registry.
func NewMetrics ¶
func NewMetrics(reg prometheus.Registerer) *Metrics
NewMetrics creates and registers all 15 application metrics to the given registry. Uses promauto.With(reg) for testable registration with a custom registry.
type Telemetry ¶
type Telemetry struct {
Registry *prometheus.Registry
Metrics *Metrics
TracerProvider *sdktrace.TracerProvider
}
Telemetry combines Prometheus metrics and OpenTelemetry tracing.
Click to show internal directories.
Click to hide internal directories.