Documentation ¶
Index ¶
- func CheckValueViewExporterDroppedLogRecords(receiverName string, exporterTagName string, value int) error
- func CheckValueViewExporterDroppedSpans(receiverName string, exporterTagName string, value int) error
- func CheckValueViewExporterDroppedTimeSeries(receiverName string, exporterTagName string, value int) error
- func CheckValueViewExporterReceivedLogRecords(receiverName string, exporterTagName string, value int) error
- func CheckValueViewExporterReceivedSpans(receiverName string, exporterTagName string, value int) error
- func CheckValueViewExporterReceivedTimeSeries(receiverName string, exporterTagName string, value int) error
- func CheckValueViewReceiverDroppedSpans(receiverName string, value int) error
- func CheckValueViewReceiverDroppedTimeSeries(receiverName string, value int) error
- func CheckValueViewReceiverReceivedSpans(receiverName string, value int) error
- func CheckValueViewReceiverReceivedTimeSeries(receiverName string, value int) error
- func SetupRecordedMetricsTest() (doneFn func())
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckValueViewExporterDroppedLogRecords ¶
func CheckValueViewExporterDroppedLogRecords(receiverName string, exporterTagName string, value int) error
CheckValueViewExporterDroppedLogRecords checks that for the current exported value in the ViewExporterDroppedLogRecords for {TagKeyReceiver: receiverName} is equal to "value". In tests that this function is called it is required to also call SetupRecordedMetricsTest as first thing.
func CheckValueViewExporterDroppedSpans ¶
func CheckValueViewExporterDroppedSpans(receiverName string, exporterTagName string, value int) error
CheckValueViewExporterDroppedSpans checks that for the current exported value in the ViewExporterDroppedSpans for {TagKeyReceiver: receiverName} is equal to "value". In tests that this function is called it is required to also call SetupRecordedMetricsTest as first thing.
func CheckValueViewExporterDroppedTimeSeries ¶
func CheckValueViewExporterDroppedTimeSeries(receiverName string, exporterTagName string, value int) error
CheckValueViewExporterDroppedTimeSeries checks that for the current exported value in the ViewExporterDroppedTimeSeries for {TagKeyReceiver: receiverName} is equal to "value". In tests that this function is called it is required to also call SetupRecordedMetricsTest as first thing.
func CheckValueViewExporterReceivedLogRecords ¶
func CheckValueViewExporterReceivedLogRecords(receiverName string, exporterTagName string, value int) error
CheckValueViewExporterReceivedLogRecords checks that for the current exported value in the ViewExporterReceivedLogRecords for {TagKeyReceiver: receiverName, TagKeyExporter: exporterTagName} is equal to "value". When this function is called it is required to also call SetupRecordedMetricsTest as first thing.
func CheckValueViewExporterReceivedSpans ¶
func CheckValueViewExporterReceivedSpans(receiverName string, exporterTagName string, value int) error
CheckValueViewExporterReceivedSpans checks that for the current exported value in the ViewExporterReceivedSpans for {TagKeyReceiver: receiverName, TagKeyExporter: exporterTagName} is equal to "value". When this function is called it is required to also call SetupRecordedMetricsTest as first thing.
func CheckValueViewExporterReceivedTimeSeries ¶
func CheckValueViewExporterReceivedTimeSeries(receiverName string, exporterTagName string, value int) error
CheckValueViewExporterReceivedTimeSeries checks that for the current exported value in the ViewExporterReceivedTimeSeries for {TagKeyReceiver: receiverName, TagKeyExporter: exporterTagName} is equal to "value". When this function is called it is required to also call SetupRecordedMetricsTest as first thing.
func CheckValueViewReceiverDroppedSpans ¶
CheckValueViewReceiverDroppedSpans checks that for the current exported value in the ViewReceiverDroppedSpans for {TagKeyReceiver: receiverName} is equal to "value". In tests that this function is called it is required to also call SetupRecordedMetricsTest as first thing.
func CheckValueViewReceiverDroppedTimeSeries ¶
CheckValueViewReceiverDroppedTimeSeries checks that for the current exported value in the ViewReceiverDroppedTimeSeries for {TagKeyReceiver: receiverName} is equal to "value". In tests that this function is called it is required to also call SetupRecordedMetricsTest as first thing.
func CheckValueViewReceiverReceivedSpans ¶
CheckValueViewReceiverReceivedSpans checks that for the current exported value in the ViewReceiverReceivedSpans for {TagKeyReceiver: receiverName, TagKeyExporter: exporterTagName} is equal to "value". In tests that this function is called it is required to also call SetupRecordedMetricsTest as first thing.
func CheckValueViewReceiverReceivedTimeSeries ¶
CheckValueViewReceiverReceivedTimeSeries checks that for the current exported value in the ViewReceiverReceivedTimeSeries for {TagKeyReceiver: receiverName, TagKeyExporter: exporterTagName} is equal to "value". In tests that this function is called it is required to also call SetupRecordedMetricsTest as first thing.
func SetupRecordedMetricsTest ¶
func SetupRecordedMetricsTest() (doneFn func())
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.