Documentation ¶
Index ¶
- Variables
- func NewMeterProvider(ctx context.Context, options MeterProviderOptions) (*metric.MeterProvider, func())
- func NewReaders(ctx context.Context, options ReadersOptions) ([]metric.Reader, error)
- type Compression
- type Endpoint
- type ExportInterval
- type Exporter
- type Exporters
- type MeterProviderOptions
- type Protocol
- type ReadersOptions
Constants ¶
This section is empty.
Variables ¶
var ErrInvalidCompression = errors.New("not a valid Compression")
var ErrInvalidExporter = errors.New("not a valid Exporter")
var ErrInvalidProtocol = errors.New("not a valid Protocol")
Functions ¶
func NewMeterProvider ¶
func NewMeterProvider(ctx context.Context, options MeterProviderOptions) (*metric.MeterProvider, func())
func NewReaders ¶
Types ¶
type Compression ¶
type Compression string
Compression defines the compression type to use on OTLP. ENUM(none, gzip)
const ( // CompressionNone is a Compression of type none. CompressionNone Compression = "none" // CompressionGzip is a Compression of type gzip. CompressionGzip Compression = "gzip" )
func ParseCompression ¶
func ParseCompression(name string) (Compression, error)
ParseCompression attempts to convert a string to a Compression.
func (Compression) IsValid ¶
func (x Compression) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (Compression) String ¶
func (x Compression) String() string
String implements the Stringer interface.
type ExportInterval ¶
ExportInterval represents the interval between metric exports.
type Exporter ¶
type Exporter string
Exporter defines a metric exporter type responsible for delivering metric data to external receivers. ENUM(otlp, none, prometheus, logging)
const ( // ExporterOtlp is a Exporter of type otlp. ExporterOtlp Exporter = "otlp" // ExporterNone is a Exporter of type none. ExporterNone Exporter = "none" // ExporterPrometheus is a Exporter of type prometheus. ExporterPrometheus Exporter = "prometheus" // ExporterLogging is a Exporter of type logging. ExporterLogging Exporter = "logging" )
func ParseExporter ¶
ParseExporter attempts to convert a string to a Exporter.
type Exporters ¶
type Exporters []Exporter
Exporters is a slice of Exporter, representing a collection of metric exporters.
type MeterProviderOptions ¶
type Protocol ¶
type Protocol string
Protocol defines the encoding of telemetry data and the protocol used to exchange metric data between the client and the server. ENUM(grpc, http/protobuf)
func ParseProtocol ¶
ParseProtocol attempts to convert a string to a Protocol.
type ReadersOptions ¶
type ReadersOptions struct { Exporters Exporters Endpoint Endpoint Compression Compression ExportInterval ExportInterval Protocol Protocol }