metric

package
v0.0.0-...-58b8290 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider is a wrapper around the open telemetry metric provider

func NewProvider

func NewProvider(exporterEndPoint, serviceName string, exportFrequency time.Duration) *Provider

NewProvider creates a new instance of TraceProvider

func (*Provider) Start

func (p *Provider) Start(ctx context.Context) error

Start initializes an OTLP exporter, and configures the corresponding metrics provider

func (*Provider) Stop

func (p *Provider) Stop(ctx context.Context) error

Stop will flush any remaining metrics and shut down the exporter.

Jump to

Keyboard shortcuts

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