oteltg

package
v0.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 12 Imported by: 1

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL