Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OtelMetrics ¶
type OtelMetrics struct { Config *config.OpenTelemetryOptions Logger logger.Logger Meter api.Meter Echo *echo.Echo }
func NewOtelMetrics ¶
func NewOtelMetrics( config *config.OpenTelemetryOptions, logger logger.Logger, ) (*OtelMetrics, error)
NewOtelMetrics adds otel metrics https://github.com/open-telemetry/opentelemetry-go/blob/main/example/prometheus/main.go
func (*OtelMetrics) GracefulShutdown ¶
func (o *OtelMetrics) GracefulShutdown(ctx context.Context) error
func (*OtelMetrics) Run ¶
func (o *OtelMetrics) Run() error
Click to show internal directories.
Click to hide internal directories.