Skip to content

Commit

Permalink
use TemporalitySelector (#3050)
Browse files Browse the repository at this point in the history
Signed-off-by: Petrie <[email protected]>

Co-authored-by: Aaron Clawson <[email protected]>
  • Loading branch information
Petrie and MadVikingGod authored Aug 2, 2022
1 parent 0cc8a3b commit dbdcfc9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sdk/metric/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (

type reader struct {
producer producer
temporalityFunc func(view.InstrumentKind) metricdata.Temporality
temporalityFunc TemporalitySelector
aggregationFunc AggregationSelector
collectFunc func(context.Context) (metricdata.ResourceMetrics, error)
forceFlushFunc func(context.Context) error
Expand Down
4 changes: 2 additions & 2 deletions sdk/metric/manual_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type manualReader struct {
producer atomic.Value
shutdownOnce sync.Once

temporalitySelector func(view.InstrumentKind) metricdata.Temporality
temporalitySelector TemporalitySelector
aggregationSelector AggregationSelector
}

Expand Down Expand Up @@ -112,7 +112,7 @@ func (mr *manualReader) Collect(ctx context.Context) (metricdata.ResourceMetrics

// manualReaderConfig contains configuration options for a ManualReader.
type manualReaderConfig struct {
temporalitySelector func(view.InstrumentKind) metricdata.Temporality
temporalitySelector TemporalitySelector
aggregationSelector AggregationSelector
}

Expand Down
4 changes: 2 additions & 2 deletions sdk/metric/periodic_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const (
type periodicReaderConfig struct {
interval time.Duration
timeout time.Duration
temporalitySelector func(view.InstrumentKind) metricdata.Temporality
temporalitySelector TemporalitySelector
aggregationSelector AggregationSelector
}

Expand Down Expand Up @@ -141,7 +141,7 @@ type periodicReader struct {
timeout time.Duration
exporter Exporter

temporalitySelector func(view.InstrumentKind) metricdata.Temporality
temporalitySelector TemporalitySelector
aggregationSelector AggregationSelector

wg sync.WaitGroup
Expand Down

0 comments on commit dbdcfc9

Please sign in to comment.