observability

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: AGPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeMetrics

func InitializeMetrics(db db.DB) error

func InitializeTracing

func InitializeTracing() error

func InjectRequestID

func InjectRequestID() gin.HandlerFunc

func InstrumentBun

func InstrumentBun(traces bool, metrics bool) bun.QueryHook

func MetricsMiddleware

func MetricsMiddleware() gin.HandlerFunc

func TracingMiddleware

func TracingMiddleware() gin.HandlerFunc

InstrumentGin is a middleware injecting tracing information based on the otelgin implementation found at https://github.com/open-telemetry/opentelemetry-go-contrib/blob/main/instrumentation/github.com/gin-gonic/gin/otelgin/gintrace.go

Types

This section is empty.

Jump to

Keyboard shortcuts

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