Documentation ¶
Index ¶
- func OpenExporter(ctx context.Context, opts ...Option) (sdkmetric.Exporter, error)
- func OpenReader(ctx context.Context, opts ...Option) (*sdkmetric.PeriodicReader, error)
- type EmptyOption
- type Option
- func WithOptionExporterWrappers(v ...func(exporter sdkmetric.Exporter) sdkmetric.Exporter) Option
- func WithOptionExporterWrappersReplace(v ...func(exporter sdkmetric.Exporter) sdkmetric.Exporter) Option
- func WithOptionOtlpOptions(v ...otlpmetrichttp.Option) Option
- func WithOptionOtlpOptionsReplace(v ...otlpmetrichttp.Option) Option
- func WithOptionPeriodicReaderOptions(v ...sdkmetric.PeriodicReaderOption) Option
- func WithOptionPeriodicReaderOptionsReplace(v ...sdkmetric.PeriodicReaderOption) Option
- type OptionFunc
- type URLOpener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenExporter ¶
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 ¶
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 ¶
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 ¶
OpenReaderURL opens a metric.Reader based on u.