package testutils

import "github.com/uber/jaeger-lib/metrics/testutils"

Index

Functions

func AssertCounterMetrics

func AssertCounterMetrics(t *testing.T, f *metrics.LocalFactory, expectedMetrics ...ExpectedMetric)

AssertCounterMetrics checks if counter metrics exist.

func AssertGaugeMetrics

func AssertGaugeMetrics(t *testing.T, f *metrics.LocalFactory, expectedMetrics ...ExpectedMetric)

AssertGaugeMetrics checks if gauge metrics exist.

Types

type ExpectedMetric

type ExpectedMetric struct {
	Name  string
	Tags  map[string]string
	Value int
}

ExpectedMetric contains metrics under test.

Source Files

testutils.go

Version
v1.1.0
Published
Sep 10, 2017
Platform
windows/amd64
Imports
3 packages
Last checked
56 minutes ago

Tools for package owners.