more otel
This commit is contained in:
1 parent
9620e3bfa6
commit
21f04d696b
88 files changed
+23419
-192
No files matched your search
@@ -26,3 +26,15 @@ type Store interface {
|
||||
GetHistory(ctx context.Context, limit int) ([]websocket.HistoryEntry, error)
|
||||
Search(ctx context.Context, opts SearchOptions, limit int) ([]websocket.HistoryEntry, error)
|
||||
}
|
||||
|
||||
// StatsQuerier is implemented by stores that can answer aggregate
|
||||
// time-series questions (currently ClickHouseStore). The stats HTTP
|
||||
// endpoints are only enabled when the configured store implements it.
|
||||
type StatsQuerier interface {
|
||||
// ErrorStats returns hourly/daily total and error entry counts.
|
||||
ErrorStats(ctx context.Context, service string, hours int, daily bool) ([]StatsPoint, error)
|
||||
// ReleaseSeries returns per-release error-count time series.
|
||||
ReleaseSeries(ctx context.Context, service string, hours int) (map[string][]StatsPoint, error)
|
||||
// Services lists distinct services seen in the rollup.
|
||||
Services(ctx context.Context) ([]string, error)
|
||||
}
|
||||
Reference in new issue
Block a user