Documentation ¶
Overview ¶
Package app implements OTEL, prometheus, graceful shutdown and other common application features for pfm projects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSpanNameFormatter ¶ added in v0.3.0
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics implement common basic metrics and infrastructure to it.
func (*Metrics) LogMiddleware ¶ added in v0.4.0
func (m *Metrics) LogMiddleware() middleware.Middleware
LogMiddleware adds logger via zctx.With to request context.
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
Click to show internal directories.
Click to hide internal directories.