observabilitytest

package
v0.2.6-test Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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

func CheckValueViewReceiverDroppedSpans(receiverName string, value int) error

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

func CheckValueViewReceiverDroppedTimeSeries(receiverName string, value int) error

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

func CheckValueViewReceiverReceivedSpans(receiverName string, value int) error

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

func CheckValueViewReceiverReceivedTimeSeries(receiverName string, value int) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL