localmetrics

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 21 Imported by: 3

Documentation

Overview

Package localmetrics provides a local server for metrics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupTestJaeger

func SetupTestJaeger(ctx context.Context, tb testing.TB, opts ...Option)

SetupTestJaeger creates a new test jaeger instance. If the test fails, the instance is kept alive for 5 minutes. we also allow a GLOBAL_jaeger env var to be set to a jaeger url to send all traces to in order to avoid having to boot for long running tests.

Types

type Option

type Option func(*config)

Option is a configuration option for the local server.

func WithKeepContainers

func WithKeepContainers(enabled bool) Option

WithKeepContainers keeps containers around after the test.

func WithPyroscopeEnabled

func WithPyroscopeEnabled(enabled bool) Option

WithPyroscopeEnabled enables pyroscope.

func WithPyroscopeJaeger

func WithPyroscopeJaeger(enabled bool) Option

WithPyroscopeJaeger enables pyroscope jaeger.

Jump to

Keyboard shortcuts

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