Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckExporterLogsViews

func CheckExporterLogsViews(t *testing.T, exporter string, acceptedLogRecords, droppedLogRecords int64)

    CheckExporterLogsViews checks that for the current exported values for logs exporter views match given values. When this function is called it is required to also call SetupRecordedMetricsTest as first thing.

    func CheckExporterMetricsViews

    func CheckExporterMetricsViews(t *testing.T, exporter string, acceptedMetricsPoints, droppedMetricsPoints int64)

      CheckExporterMetricsViews checks that for the current exported values for metrics exporter views match given values. When this function is called it is required to also call SetupRecordedMetricsTest as first thing.

      func CheckExporterTracesViews

      func CheckExporterTracesViews(t *testing.T, exporter string, acceptedSpans, droppedSpans int64)

        CheckExporterTracesViews checks that for the current exported values for trace exporter views match given values. When this function is called it is required to also call SetupRecordedMetricsTest as first thing.

        func CheckProcessorLogsViews

        func CheckProcessorLogsViews(t *testing.T, processor string, acceptedLogRecords, refusedLogRecords, droppedLogRecords int64)

          CheckProcessorLogsViews checks that for the current exported values for logs exporter views match given values. When this function is called it is required to also call SetupRecordedMetricsTest as first thing.

          func CheckProcessorMetricsViews

          func CheckProcessorMetricsViews(t *testing.T, processor string, acceptedMetricPoints, refusedMetricPoints, droppedMetricPoints int64)

            CheckProcessorMetricsViews checks that for the current exported values for metrics exporter views match given values. When this function is called it is required to also call SetupRecordedMetricsTest as first thing.

            func CheckProcessorTracesViews

            func CheckProcessorTracesViews(t *testing.T, processor string, acceptedSpans, refusedSpans, droppedSpans int64)

              CheckProcessorTracesViews checks that for the current exported values for trace exporter views match given values. When this function is called it is required to also call SetupRecordedMetricsTest as first thing.

              func CheckReceiverLogsViews

              func CheckReceiverLogsViews(t *testing.T, receiver, protocol string, acceptedLogRecords, droppedLogRecords int64)

                CheckReceiverLogsViews checks that for the current exported values for logs receiver views match given values. When this function is called it is required to also call SetupRecordedMetricsTest as first thing.

                func CheckReceiverMetricsViews

                func CheckReceiverMetricsViews(t *testing.T, receiver, protocol string, acceptedMetricPoints, droppedMetricPoints int64)

                  CheckReceiverMetricsViews checks that for the current exported values for metrics receiver views match given values. When this function is called it is required to also call SetupRecordedMetricsTest as first thing.

                  func CheckReceiverTracesViews

                  func CheckReceiverTracesViews(t *testing.T, receiver, protocol string, acceptedSpans, droppedSpans int64)

                    CheckReceiverTracesViews checks that for the current exported values for trace receiver views match given values. When this function is called it is required to also call SetupRecordedMetricsTest as first thing.

                    func CheckScraperMetricsViews

                    func CheckScraperMetricsViews(t *testing.T, receiver, scraper string, scrapedMetricPoints, erroredMetricPoints int64)

                      CheckScraperMetricsViews checks that for the current exported values for metrics scraper views match given values. When this function is called it is required to also call SetupRecordedMetricsTest as first thing.

                      func CheckValueForView

                      func CheckValueForView(t *testing.T, wantTags []tag.Tag, value int64, vName string)

                        CheckValueForView checks that for the current exported value in the view with the given name for {LegacyTagKeyReceiver: receiverName} is equal to "value".

                        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.

                          Source Files