Documentation ¶
Overview ¶
Package oteltg provides OpenTelemetry instrumentation for gotd.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
Middleware is prometheus metrics middleware for Telegram.
func New ¶
func New(meterProvider metric.MeterProvider, tracerProvider trace.TracerProvider) (*Middleware, error)
New initializes and returns new prometheus middleware.
func (Middleware) Handle ¶
func (m Middleware) Handle(next tg.Invoker) telegram.InvokeFunc
Handle implements telegram.Middleware.
Click to show internal directories.
Click to hide internal directories.