cli

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version, commit, date string) *cli.App

Types

type MetricExporter added in v0.4.0

type MetricExporter interface {
	metric.Exporter
}

MetricExporter is an interface that abstracts the functionality of both otlpmetricgrpc and otlpmetrichttp exporters.

func NewMetricExporter added in v0.4.0

func NewMetricExporter(ctx context.Context, protocol string, options interface{}) (MetricExporter, error)

NewMetricExporter creates a new MetricExporter based on the provided protocol. It accepts either otlpmetricgrpc.Option or otlpmetrichttp.Option as an argument. It returns an implementation of the MetricExporter interface.

Jump to

Keyboard shortcuts

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