observability

package
v0.0.0-...-a7f2a9d Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetricsHandler

func MetricsHandler() gin.HandlerFunc

MetricsHandler returns a Gin handler for Prometheus metrics

func RecordDBMetrics

func RecordDBMetrics(operation string, duration float64)

RecordDBMetrics records database operation metrics

func RecordHTTPMetrics

func RecordHTTPMetrics(method, path string, statusCode int, duration float64)

RecordHTTPMetrics records HTTP request metrics

func SetupLogger

func SetupLogger(level string) zerolog.Logger

SetupLogger configures and returns a structured logger

func SetupMetrics

func SetupMetrics(version, commit, buildTime string)

SetupMetrics initializes Prometheus metrics

func SetupTracing

func SetupTracing()

SetupTracing initializes OpenTelemetry tracing

func StartSpan

func StartSpan(ctx context.Context, name string) (context.Context, trace.Span)

StartSpan starts a new trace span

Types

This section is empty.

Jump to

Keyboard shortcuts

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