testutils

package
v0.0.0-...-806a58a Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAgent

type MockAgent struct {
	// contains filtered or unexported fields
}

MockAgent is a mock representation of Jaeger Agent. It has an HTTP endpoint for sampling strategies.

func StartMockAgent

func StartMockAgent() (*MockAgent, error)

StartMockAgent runs a mock representation of jaeger-agent. This function returns a started server.

func (*MockAgent) AddSamplingStrategy

func (s *MockAgent) AddSamplingStrategy(service string, strategy interface{})

AddSamplingStrategy registers a sampling strategy for a service.

func (*MockAgent) Close

func (s *MockAgent) Close()

Close stops the serving of traffic.

func (*MockAgent) SamplingServerAddr

func (s *MockAgent) SamplingServerAddr() string

SamplingServerAddr returns the host:port of HTTP server exposing sampling strategy endpoint.

Jump to

Keyboard shortcuts

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