Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Address string
Insecure bool
Username string
Password string
ServiceName string
}
Config holds the metrics configuration.
type OTLPProvider ¶
type OTLPProvider struct {
embedded.MeterProvider
// contains filtered or unexported fields
}
OTLPProvider is a metrics provider which exports metrics to OTLP.
func NewOTLPProvider ¶
func NewOTLPProvider(ctx context.Context, cfg Config) (*OTLPProvider, error)
NewOTLPProvider creates a new OTLPProvider.
func (*OTLPProvider) Meter ¶
func (p *OTLPProvider) Meter(name string, options ...metric.MeterOption) metric.Meter
Meter returns a Meter with the given name and configured with options.
Click to show internal directories.
Click to hide internal directories.