Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadAll ¶ added in v0.24.0
func ReadAll( reader export.InstrumentationLibraryReader, kind aggregation.TemporalitySelector, apply func(instrumentation.Library, export.Record) error, ) error
ReadAll is a helper for tests that want a flat iterator over all metrics instead of a two-level iterator (instrumentation library, metric).
Types ¶
type MockClock ¶
type MockClock struct {
// contains filtered or unexported fields
}
MockClock is a Clock used for testing.
type MockTicker ¶
type MockTicker struct {
// contains filtered or unexported fields
}
MockTicker is a Ticker used for testing.
func (MockTicker) C ¶
func (t MockTicker) C() <-chan time.Time
C returns a channel that receives the current time when MockTicker ticks.
Click to show internal directories.
Click to hide internal directories.