Documentation ¶
Index ¶
- func CheckExporterLogs(t *testing.T, exporter config.ComponentID, ...)
- func CheckExporterMetrics(t *testing.T, exporter config.ComponentID, ...)
- func CheckExporterTraces(t *testing.T, exporter config.ComponentID, acceptedSpans, droppedSpans int64)
- func CheckProcessorLogs(t *testing.T, processor config.ComponentID, ...)
- func CheckProcessorMetrics(t *testing.T, processor config.ComponentID, ...)
- func CheckProcessorTraces(t *testing.T, processor config.ComponentID, ...)
- func CheckReceiverLogs(t *testing.T, receiver config.ComponentID, protocol string, ...)
- func CheckReceiverMetrics(t *testing.T, receiver config.ComponentID, protocol string, ...)
- func CheckReceiverTraces(t *testing.T, receiver config.ComponentID, protocol string, ...)
- func CheckScraperMetrics(t *testing.T, receiver config.ComponentID, scraper config.ComponentID, ...)
- func SetupRecordedMetricsTest() (func(), error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckExporterLogs ¶ added in v0.25.0
func CheckExporterLogs(t *testing.T, exporter config.ComponentID, acceptedLogRecords, droppedLogRecords int64)
CheckExporterLogs checks that for the current exported values for logs exporter metrics match given values. When this function is called it is required to also call SetupRecordedMetricsTest as first thing.
func CheckExporterMetrics ¶ added in v0.25.0
func CheckExporterMetrics(t *testing.T, exporter config.ComponentID, acceptedMetricsPoints, droppedMetricsPoints int64)
CheckExporterMetrics checks that for the current exported values for metrics exporter metrics match given values. When this function is called it is required to also call SetupRecordedMetricsTest as first thing.
func CheckExporterTraces ¶ added in v0.25.0
func CheckExporterTraces(t *testing.T, exporter config.ComponentID, acceptedSpans, droppedSpans int64)
CheckExporterTraces checks that for the current exported values for trace exporter metrics match given values. When this function is called it is required to also call SetupRecordedMetricsTest as first thing.
func CheckProcessorLogs ¶ added in v0.25.0
func CheckProcessorLogs(t *testing.T, processor config.ComponentID, acceptedLogRecords, refusedLogRecords, droppedLogRecords int64)
CheckProcessorLogs checks that for the current exported values for logs exporter metrics match given values. When this function is called it is required to also call SetupRecordedMetricsTest as first thing.
func CheckProcessorMetrics ¶ added in v0.25.0
func CheckProcessorMetrics(t *testing.T, processor config.ComponentID, acceptedMetricPoints, refusedMetricPoints, droppedMetricPoints int64)
CheckProcessorMetrics checks that for the current exported values for metrics exporter metrics match given values. When this function is called it is required to also call SetupRecordedMetricsTest as first thing.
func CheckProcessorTraces ¶ added in v0.25.0
func CheckProcessorTraces(t *testing.T, processor config.ComponentID, acceptedSpans, refusedSpans, droppedSpans int64)
CheckProcessorTraces checks that for the current exported values for trace exporter metrics match given values. When this function is called it is required to also call SetupRecordedMetricsTest as first thing.
func CheckReceiverLogs ¶ added in v0.25.0
func CheckReceiverLogs(t *testing.T, receiver config.ComponentID, protocol string, acceptedLogRecords, droppedLogRecords int64)
CheckReceiverLogs checks that for the current exported values for logs receiver metrics match given values. When this function is called it is required to also call SetupRecordedMetricsTest as first thing.
func CheckReceiverMetrics ¶ added in v0.25.0
func CheckReceiverMetrics(t *testing.T, receiver config.ComponentID, protocol string, acceptedMetricPoints, droppedMetricPoints int64)
CheckReceiverMetrics checks that for the current exported values for metrics receiver metrics match given values. When this function is called it is required to also call SetupRecordedMetricsTest as first thing.
func CheckReceiverTraces ¶ added in v0.25.0
func CheckReceiverTraces(t *testing.T, receiver config.ComponentID, protocol string, acceptedSpans, droppedSpans int64)
CheckReceiverTraces checks that for the current exported values for trace receiver metrics match given values. When this function is called it is required to also call SetupRecordedMetricsTest as first thing.
func CheckScraperMetrics ¶ added in v0.25.0
func CheckScraperMetrics(t *testing.T, receiver config.ComponentID, scraper config.ComponentID, scrapedMetricPoints, erroredMetricPoints int64)
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 SetupRecordedMetricsTest as first thing.
func SetupRecordedMetricsTest ¶
func SetupRecordedMetricsTest() (func(), error)
SetupRecordedMetricsTest does setup the testing environment to check the metrics recorded by receivers, producers or exporters. The returned function should be deferred.
Types ¶
This section is empty.