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 c5a3ad4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,11 @@ type Histogram interface {
With(labelValues ...string) Histogram
Observe(value float64)
}

// A Summary captures individual observations from an event or sample stream and
// summarizes them in a manner similar to traditional summary statistics: 1. sum
// of observations, 2. observation count, 3. rank estimations.
type Summary interface {
With(labelValues ...string) Summary
Observe(value float64)
}

0 comments on commit c5a3ad4

Please sign in to comment.