opentelemetrymetrics

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoOpMetricsExporter = "noop"
	OTLPMetricsExporter = "otlp"
)
View Source
const OTLPMeterGRPCOptionsKey = `group:"_otlpMeterGrpcOptions"`
View Source
const OTLPMeterHTTPOptionsKey = `group:"_otlpMeterHTTPOptions"`

Variables

This section is empty.

Functions

func LoadController

func LoadController(exp *otlpmetric.Exporter) *controller.Controller

func LoadNoOpMeterProvider

func LoadNoOpMeterProvider() metric.MeterProvider

func LoadOTLPMeterExporter

func LoadOTLPMeterExporter(client otlpmetric.Client) (*otlpmetric.Exporter, error)

func LoadOTLPMeterGRPCClient

func LoadOTLPMeterGRPCClient(options ...otlpmetricgrpc.Option) otlpmetric.Client

func LoadOTLPMeterHTTPClient

func LoadOTLPMeterHTTPClient(options ...otlpmetrichttp.Option) otlpmetric.Client

func MetricsControllerModule

func MetricsControllerModule() fx.Option

func MetricsModule

func MetricsModule(cfg MetricsModuleConfig) fx.Option

func NewStorageDecorator

func NewStorageDecorator(underlying storage.Store, counter metric.Int64Counter, revertsCounter metric.Int64Counter) *storageDecorator

func NoOpMeterModule

func NoOpMeterModule() fx.Option

func OTLPMeterGRPCClientModule

func OTLPMeterGRPCClientModule() fx.Option

func OTLPMeterHTTPClientModule

func OTLPMeterHTTPClientModule() fx.Option

func OTLPMeterModule

func OTLPMeterModule() fx.Option

func ProvideOTLPMeterGRPCClientOption

func ProvideOTLPMeterGRPCClientOption(provider interface{}) fx.Option

func ProvideOTLPMeterHTTPClientOption

func ProvideOTLPMeterHTTPClientOption(provider interface{}) fx.Option

func WrapStorageFactory

func WrapStorageFactory(underlying storage.Factory, mp metric.MeterProvider) *openTelemetryStorageFactory

Types

type MetricsModuleConfig

type MetricsModuleConfig struct {
	Exporter   string
	OTLPConfig *OTLPMetricsConfig
}

type OTLPMetricsConfig

type OTLPMetricsConfig struct {
	Mode     string
	Endpoint string
	Insecure bool
}

Jump to

Keyboard shortcuts

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