Documentation
¶
Overview ¶
Package app implements OTEL, prometheus, graceful shutdown and other common application features for go-faster projects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics implement common basic metrics and infrastructure to it.
func (*Metrics) MeterProvider ¶
func (m *Metrics) MeterProvider() metric.MeterProvider
func (*Metrics) TextMapPropagator ¶
func (m *Metrics) TextMapPropagator() propagation.TextMapPropagator
func (*Metrics) TracerProvider ¶
func (m *Metrics) TracerProvider() trace.TracerProvider
type Option ¶ added in v0.8.2
type Option interface {
// contains filtered or unexported methods
}
Option is a functional option for the application.
func WithMeterOptions ¶ added in v0.8.2
WithMeterOptions sets the default autometer options for the application.
func WithTracerOptions ¶ added in v0.8.2
func WithTracerOptions(opts ...autotracer.Option) Option
WithTracerOptions sets the default autotracer options for the application.
func WithZapConfig ¶ added in v0.8.2
WithZapConfig sets the default zap config for the application.
Click to show internal directories.
Click to hide internal directories.