Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertMetric ¶
func AssertMetric(t *testing.T, metrics []metricdata.Metrics, expectedName string)
AssertMetric asserts that a metric with the given name is present in the list of metrics.
func AssertSpan ¶
AssertSpan asserts that the expected span is equal to the got span.
func SetupMetrics ¶
func SetupMetrics(ctx context.Context, t *testing.T) (ShutdownFunc, CollectMetricsFunc)
SetupMetrics sets up the metrics provider and reader for testing.
Types ¶
type CollectMetricsFunc ¶
type CollectMetricsFunc func(expected int) *metricdata.ResourceMetrics
type ShutdownFunc ¶
type ShutdownFunc func()
Click to show internal directories.
Click to hide internal directories.