Skip to content

Commit

Permalink
feat: adding a Summary type in metrics package
Browse files Browse the repository at this point in the history
  • Loading branch information
ncostamagna committed Jan 13, 2025
1 parent 78fbbce commit 2beca5e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,12 @@ type Histogram interface {
With(labelValues ...string) Histogram
Observe(value float64)
}

// Summary describes a metric that provides a statistical summary of observations,
// focusing on quantiles and percentiles. An example is tracking HTTP response times,
// allowing for analysis of performance metrics. The Summary interface enables
// collection of observations with associated label values.
type Summary interface {
With(labelValues ...string) Summary
Observe(value float64)
}

0 comments on commit 2beca5e

Please sign in to comment.