Documentation ¶
Overview ¶
Package telemetrytest provides a mock implementation of the telemetry client for testing purposes
Index ¶
- type MockClient
- func (c *MockClient) ApplyOps(_ ...telemetry.Option)
- func (c *MockClient) Count(_ telemetry.Namespace, _ string, _ float64, _ []string, _ bool)
- func (c *MockClient) Gauge(_ telemetry.Namespace, _ string, _ float64, _ []string, _ bool)
- func (c *MockClient) ProductStart(namespace telemetry.Namespace, configuration []telemetry.Configuration)
- func (c *MockClient) ProductStop(namespace telemetry.Namespace)
- func (c *MockClient) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct { Started bool Configuration []telemetry.Configuration Integrations []string ProfilerEnabled bool AsmEnabled bool // contains filtered or unexported fields }
MockClient implements Client and is used for testing purposes outside of the telemetry package, e.g. the tracer and profiler.
func (*MockClient) ApplyOps ¶
func (c *MockClient) ApplyOps(_ ...telemetry.Option)
ApplyOps is NOOP for the mock client.
func (*MockClient) ProductStart ¶
func (c *MockClient) ProductStart(namespace telemetry.Namespace, configuration []telemetry.Configuration)
ProductStart starts and adds configuration data to the mock client.
func (*MockClient) ProductStop ¶
func (c *MockClient) ProductStop(namespace telemetry.Namespace)
ProductStop signals a product has stopped and disables that product in the mock client. ProductStop is NOOP for the tracer namespace, since the tracer is not considered a product.
Click to show internal directories.
Click to hide internal directories.