oteltg

package
v0.0.0-...-d21987e Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 12 Imported by: 0

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