telemetry

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func NewManager

func NewManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *Manager

NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Manager) EXPECT

func (_m *Manager) EXPECT() *Manager_Expecter

func (*Manager) Enabled

func (_m *Manager) Enabled() bool

Enabled provides a mock function with given fields:

func (*Manager) ForceFlush

func (_m *Manager) ForceFlush(ctx context.Context) error

ForceFlush provides a mock function with given fields: ctx

func (*Manager) Init

func (_m *Manager) Init() error

Init provides a mock function with given fields:

func (*Manager) MustInit

func (_m *Manager) MustInit() telemetry.Manager

MustInit provides a mock function with given fields:

func (*Manager) NewTracer

func (_m *Manager) NewTracer(name string, opts ...trace.TracerOption) trace.Tracer

NewTracer provides a mock function with given fields: name, opts

func (*Manager) Shutdown

func (_m *Manager) Shutdown(ctx context.Context) error

Shutdown provides a mock function with given fields: ctx

func (*Manager) Tracer

func (_m *Manager) Tracer() trace.Tracer

Tracer provides a mock function with given fields:

type Manager_Enabled_Call

type Manager_Enabled_Call struct {
	*mock.Call
}

Manager_Enabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Enabled'

func (*Manager_Enabled_Call) Return

func (*Manager_Enabled_Call) Run

func (_c *Manager_Enabled_Call) Run(run func()) *Manager_Enabled_Call

func (*Manager_Enabled_Call) RunAndReturn

func (_c *Manager_Enabled_Call) RunAndReturn(run func() bool) *Manager_Enabled_Call

type Manager_Expecter

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

func (*Manager_Expecter) Enabled

func (_e *Manager_Expecter) Enabled() *Manager_Enabled_Call

Enabled is a helper method to define mock.On call

func (*Manager_Expecter) ForceFlush

func (_e *Manager_Expecter) ForceFlush(ctx interface{}) *Manager_ForceFlush_Call

ForceFlush is a helper method to define mock.On call

  • ctx context.Context

func (*Manager_Expecter) Init

func (_e *Manager_Expecter) Init() *Manager_Init_Call

Init is a helper method to define mock.On call

func (*Manager_Expecter) MustInit

func (_e *Manager_Expecter) MustInit() *Manager_MustInit_Call

MustInit is a helper method to define mock.On call

func (*Manager_Expecter) NewTracer

func (_e *Manager_Expecter) NewTracer(name interface{}, opts ...interface{}) *Manager_NewTracer_Call

NewTracer is a helper method to define mock.On call

  • name string
  • opts ...trace.TracerOption

func (*Manager_Expecter) Shutdown

func (_e *Manager_Expecter) Shutdown(ctx interface{}) *Manager_Shutdown_Call

Shutdown is a helper method to define mock.On call

  • ctx context.Context

func (*Manager_Expecter) Tracer

func (_e *Manager_Expecter) Tracer() *Manager_Tracer_Call

Tracer is a helper method to define mock.On call

type Manager_ForceFlush_Call

type Manager_ForceFlush_Call struct {
	*mock.Call
}

Manager_ForceFlush_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ForceFlush'

func (*Manager_ForceFlush_Call) Return

func (*Manager_ForceFlush_Call) Run

func (*Manager_ForceFlush_Call) RunAndReturn

type Manager_Init_Call

type Manager_Init_Call struct {
	*mock.Call
}

Manager_Init_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Init'

func (*Manager_Init_Call) Return

func (_c *Manager_Init_Call) Return(_a0 error) *Manager_Init_Call

func (*Manager_Init_Call) Run

func (_c *Manager_Init_Call) Run(run func()) *Manager_Init_Call

func (*Manager_Init_Call) RunAndReturn

func (_c *Manager_Init_Call) RunAndReturn(run func() error) *Manager_Init_Call

type Manager_MustInit_Call

type Manager_MustInit_Call struct {
	*mock.Call
}

Manager_MustInit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MustInit'

func (*Manager_MustInit_Call) Return

func (*Manager_MustInit_Call) Run

func (_c *Manager_MustInit_Call) Run(run func()) *Manager_MustInit_Call

func (*Manager_MustInit_Call) RunAndReturn

func (_c *Manager_MustInit_Call) RunAndReturn(run func() telemetry.Manager) *Manager_MustInit_Call

type Manager_NewTracer_Call

type Manager_NewTracer_Call struct {
	*mock.Call
}

Manager_NewTracer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewTracer'

func (*Manager_NewTracer_Call) Return

func (*Manager_NewTracer_Call) Run

func (_c *Manager_NewTracer_Call) Run(run func(name string, opts ...trace.TracerOption)) *Manager_NewTracer_Call

func (*Manager_NewTracer_Call) RunAndReturn

type Manager_Shutdown_Call

type Manager_Shutdown_Call struct {
	*mock.Call
}

Manager_Shutdown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shutdown'

func (*Manager_Shutdown_Call) Return

func (*Manager_Shutdown_Call) Run

func (*Manager_Shutdown_Call) RunAndReturn

func (_c *Manager_Shutdown_Call) RunAndReturn(run func(context.Context) error) *Manager_Shutdown_Call

type Manager_Tracer_Call

type Manager_Tracer_Call struct {
	*mock.Call
}

Manager_Tracer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Tracer'

func (*Manager_Tracer_Call) Return

func (*Manager_Tracer_Call) Run

func (_c *Manager_Tracer_Call) Run(run func()) *Manager_Tracer_Call

func (*Manager_Tracer_Call) RunAndReturn

func (_c *Manager_Tracer_Call) RunAndReturn(run func() trace.Tracer) *Manager_Tracer_Call

type MetricsManager

type MetricsManager struct {
	mock.Mock
}

MetricsManager is an autogenerated mock type for the MetricsManager type

func NewMetricsManager

func NewMetricsManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *MetricsManager

NewMetricsManager creates a new instance of MetricsManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MetricsManager) Count

func (_m *MetricsManager) Count(metricName string, value int64, tags []string)

Count provides a mock function with given fields: metricName, value, tags

func (*MetricsManager) Distribution

func (_m *MetricsManager) Distribution(metricName string, value float64, tags []string)

Distribution provides a mock function with given fields: metricName, value, tags

func (*MetricsManager) EXPECT

func (*MetricsManager) Enabled

func (_m *MetricsManager) Enabled() bool

Enabled provides a mock function with given fields:

func (*MetricsManager) Gauge

func (_m *MetricsManager) Gauge(metricName string, value float64, tags []string)

Gauge provides a mock function with given fields: metricName, value, tags

func (*MetricsManager) Histogram

func (_m *MetricsManager) Histogram(metricName string, value float64, tags []string)

Histogram provides a mock function with given fields: metricName, value, tags

func (*MetricsManager) MustInit

func (_m *MetricsManager) MustInit() telemetry.MetricsManager

MustInit provides a mock function with given fields:

func (*MetricsManager) Start

Start provides a mock function with given fields: name

func (*MetricsManager) StartBy

func (_m *MetricsManager) StartBy(provider string, name string) telemetry.MetricPushAction

StartBy provides a mock function with given fields: provider, name

func (*MetricsManager) StartDefault

func (_m *MetricsManager) StartDefault(name string) telemetry.MetricPushAction

StartDefault provides a mock function with given fields: name

type MetricsManager_Count_Call

type MetricsManager_Count_Call struct {
	*mock.Call
}

MetricsManager_Count_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Count'

func (*MetricsManager_Count_Call) Return

func (*MetricsManager_Count_Call) Run

func (_c *MetricsManager_Count_Call) Run(run func(metricName string, value int64, tags []string)) *MetricsManager_Count_Call

func (*MetricsManager_Count_Call) RunAndReturn

func (_c *MetricsManager_Count_Call) RunAndReturn(run func(string, int64, []string)) *MetricsManager_Count_Call

type MetricsManager_Distribution_Call

type MetricsManager_Distribution_Call struct {
	*mock.Call
}

MetricsManager_Distribution_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Distribution'

func (*MetricsManager_Distribution_Call) Return

func (*MetricsManager_Distribution_Call) Run

func (_c *MetricsManager_Distribution_Call) Run(run func(metricName string, value float64, tags []string)) *MetricsManager_Distribution_Call

func (*MetricsManager_Distribution_Call) RunAndReturn

type MetricsManager_Enabled_Call

type MetricsManager_Enabled_Call struct {
	*mock.Call
}

MetricsManager_Enabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Enabled'

func (*MetricsManager_Enabled_Call) Return

func (*MetricsManager_Enabled_Call) Run

func (*MetricsManager_Enabled_Call) RunAndReturn

func (_c *MetricsManager_Enabled_Call) RunAndReturn(run func() bool) *MetricsManager_Enabled_Call

type MetricsManager_Expecter

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

func (*MetricsManager_Expecter) Count

func (_e *MetricsManager_Expecter) Count(metricName interface{}, value interface{}, tags interface{}) *MetricsManager_Count_Call

Count is a helper method to define mock.On call

  • metricName string
  • value int64
  • tags []string

func (*MetricsManager_Expecter) Distribution

func (_e *MetricsManager_Expecter) Distribution(metricName interface{}, value interface{}, tags interface{}) *MetricsManager_Distribution_Call

Distribution is a helper method to define mock.On call

  • metricName string
  • value float64
  • tags []string

func (*MetricsManager_Expecter) Enabled

Enabled is a helper method to define mock.On call

func (*MetricsManager_Expecter) Gauge

func (_e *MetricsManager_Expecter) Gauge(metricName interface{}, value interface{}, tags interface{}) *MetricsManager_Gauge_Call

Gauge is a helper method to define mock.On call

  • metricName string
  • value float64
  • tags []string

func (*MetricsManager_Expecter) Histogram

func (_e *MetricsManager_Expecter) Histogram(metricName interface{}, value interface{}, tags interface{}) *MetricsManager_Histogram_Call

Histogram is a helper method to define mock.On call

  • metricName string
  • value float64
  • tags []string

func (*MetricsManager_Expecter) MustInit

MustInit is a helper method to define mock.On call

func (*MetricsManager_Expecter) Start

func (_e *MetricsManager_Expecter) Start(name interface{}) *MetricsManager_Start_Call

Start is a helper method to define mock.On call

  • name string

func (*MetricsManager_Expecter) StartBy

func (_e *MetricsManager_Expecter) StartBy(provider interface{}, name interface{}) *MetricsManager_StartBy_Call

StartBy is a helper method to define mock.On call

  • provider string
  • name string

func (*MetricsManager_Expecter) StartDefault

func (_e *MetricsManager_Expecter) StartDefault(name interface{}) *MetricsManager_StartDefault_Call

StartDefault is a helper method to define mock.On call

  • name string

type MetricsManager_Gauge_Call

type MetricsManager_Gauge_Call struct {
	*mock.Call
}

MetricsManager_Gauge_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Gauge'

func (*MetricsManager_Gauge_Call) Return

func (*MetricsManager_Gauge_Call) Run

func (_c *MetricsManager_Gauge_Call) Run(run func(metricName string, value float64, tags []string)) *MetricsManager_Gauge_Call

func (*MetricsManager_Gauge_Call) RunAndReturn

func (_c *MetricsManager_Gauge_Call) RunAndReturn(run func(string, float64, []string)) *MetricsManager_Gauge_Call

type MetricsManager_Histogram_Call

type MetricsManager_Histogram_Call struct {
	*mock.Call
}

MetricsManager_Histogram_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Histogram'

func (*MetricsManager_Histogram_Call) Return

func (*MetricsManager_Histogram_Call) Run

func (_c *MetricsManager_Histogram_Call) Run(run func(metricName string, value float64, tags []string)) *MetricsManager_Histogram_Call

func (*MetricsManager_Histogram_Call) RunAndReturn

type MetricsManager_MustInit_Call

type MetricsManager_MustInit_Call struct {
	*mock.Call
}

MetricsManager_MustInit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MustInit'

func (*MetricsManager_MustInit_Call) Return

func (*MetricsManager_MustInit_Call) Run

func (*MetricsManager_MustInit_Call) RunAndReturn

type MetricsManager_StartBy_Call

type MetricsManager_StartBy_Call struct {
	*mock.Call
}

MetricsManager_StartBy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartBy'

func (*MetricsManager_StartBy_Call) Return

func (*MetricsManager_StartBy_Call) Run

func (_c *MetricsManager_StartBy_Call) Run(run func(provider string, name string)) *MetricsManager_StartBy_Call

func (*MetricsManager_StartBy_Call) RunAndReturn

type MetricsManager_StartDefault_Call

type MetricsManager_StartDefault_Call struct {
	*mock.Call
}

MetricsManager_StartDefault_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartDefault'

func (*MetricsManager_StartDefault_Call) Return

func (*MetricsManager_StartDefault_Call) Run

func (*MetricsManager_StartDefault_Call) RunAndReturn

type MetricsManager_Start_Call

type MetricsManager_Start_Call struct {
	*mock.Call
}

MetricsManager_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'

func (*MetricsManager_Start_Call) Return

func (*MetricsManager_Start_Call) Run

func (*MetricsManager_Start_Call) RunAndReturn

Jump to

Keyboard shortcuts

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