Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckScraperMetrics
deprecated
added in
v0.25.0
func CheckScraperMetrics(tts TestTelemetry, receiver component.ID, scraper component.ID, scrapedMetricPoints, erroredMetricPoints int64) error
CheckScraperMetrics checks that for the current exported values for metrics scraper metrics match given values. When this function is called it is required to also call SetupTelemetry as first thing.
Deprecated: [0.93.0] Use TestTelemetry.CheckScraperMetrics instead
Types ¶
type TestTelemetry
deprecated
added in
v0.37.0
type TestTelemetry = componenttest.TestTelemetry
Deprecated: [0.93.0] Use componenttest.TestTelemetry instead
func SetupTelemetry
deprecated
added in
v0.37.0
func SetupTelemetry(id component.ID) (TestTelemetry, error)
SetupTelemetry does setup the testing environment to check the metrics recorded by receivers, producers or exporters. The caller must pass the ID of the component that intends to test, so the CreateSettings and Check methods will use. The caller should defer a call to Shutdown the returned TestTelemetry.
Deprecated: [0.93.0] Use componenttest.SetupTelemetry instead