Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MetricExporter ¶ added in v0.4.0
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.
Click to show internal directories.
Click to hide internal directories.