otlpmetrichttp

package
v1.2.120 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenExporter

func OpenExporter(ctx context.Context, opts ...Option) (sdkmetric.Exporter, error)

OpenExporter opens a metric exporter specified by its metric exporter name and a exporter-specific data source name, usually consisting of at least a metric exporter name and connection information.

func OpenReader

func OpenReader(ctx context.Context, opts ...Option) (*sdkmetric.PeriodicReader, error)

OpenReader opens a metric reader specified by its metric exporter name and a exporter-specific data source name, usually consisting of at least a metric exporter name and connection information.

Types

type EmptyOption

type EmptyOption struct{}

EmptyOption does not alter the configuration. It can be embedded in another structure to build custom options.

This API is EXPERIMENTAL.

type Option

type Option interface {
	// contains filtered or unexported methods
}

A Option sets options.

func WithOptionExporterWrappers

func WithOptionExporterWrappers(v ...func(exporter sdkmetric.Exporter) sdkmetric.Exporter) Option

WithOptionExporterWrappers appends ExporterWrappers in option.

func WithOptionExporterWrappersReplace

func WithOptionExporterWrappersReplace(v ...func(exporter sdkmetric.Exporter) sdkmetric.Exporter) Option

WithOptionExporterWrappersReplace sets ExporterWrappers in option.

func WithOptionOtlpOptions

func WithOptionOtlpOptions(v ...otlpmetrichttp.Option) Option

WithOptionOtlpOptions appends OtlpOptions in option.

func WithOptionOtlpOptionsReplace

func WithOptionOtlpOptionsReplace(v ...otlpmetrichttp.Option) Option

WithOptionOtlpOptionsReplace sets OtlpOptions in option.

func WithOptionPeriodicReaderOptions

func WithOptionPeriodicReaderOptions(v ...sdkmetric.PeriodicReaderOption) Option

WithOptionPeriodicReaderOptions appends PeriodicReaderOptions in option.

func WithOptionPeriodicReaderOptionsReplace

func WithOptionPeriodicReaderOptionsReplace(v ...sdkmetric.PeriodicReaderOption) Option

WithOptionPeriodicReaderOptionsReplace sets PeriodicReaderOptions in option.

type OptionFunc

type OptionFunc func(*option)

OptionFunc wraps a function that modifies option into an implementation of the Option interface.

type URLOpener

type URLOpener struct {
	// Options specifies the options to pass to OpenExporter.
	Option option
}

URLOpener opens OTLP Metric HTTP URLs like "http://endpoint:4318?compression=gzip&temporality_selector=delta".

func (*URLOpener) OpenReaderURL

func (o *URLOpener) OpenReaderURL(ctx context.Context, u *url.URL) (sdkmetric.Reader, error)

OpenReaderURL opens a metric.Reader based on u.

func (*URLOpener) Scheme

func (o *URLOpener) Scheme() string

Scheme returns the scheme supported by this metric.

Jump to

Keyboard shortcuts

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