Skip to content

Commit

Permalink
Add note that the option is advisory
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole committed Oct 12, 2023
1 parent 67f421e commit 983a7c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions metric/instrument.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ func (o unitOpt) applyInt64ObservableGauge(c Int64ObservableGaugeConfig) Int64Ob
func WithUnit(u string) InstrumentOption { return unitOpt(u) }

// WithExplicitBucketBoundaries sets the instrument explicit bucket boundaries.
//
// This option is considered "advisory", and may be ignored by API implementations.
func WithExplicitBucketBoundaries(bounds ...float64) HistogramOption { return bucketOpt(bounds) }

type bucketOpt []float64
Expand Down

0 comments on commit 983a7c7

Please sign in to comment.