Back to godoc.org
go.opentelemetry.io/collector/observability/observabilitytest

package observabilitytest

v0.4.0
Latest Go to latest
Published: Jun 16, 2020 | License: Apache-2.0 | Module: go.opentelemetry.io/collector

Index

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

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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier