traceutils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestServer

func NewTestServer(t *testing.T, callback func(ptrace.Traces)) string

NewTestServer creates a new server for testing, where received traces will call the callback function. The returned string is the address where traces can be sent using OTLP.

func PrometheusExporter

func PrometheusExporter(reg prometheus.Registerer) (otelmetric.Reader, error)

This function is used by both production code and unit tests. It makes sure that uint tests use the same conventions for metric readers as production code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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