observability

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package observability defines tanGO's minimal backend-neutral metrics contract.

Index

Constants

View Source
const (
	MetricHTTPRequestDuration     = "tango_http_request_duration_seconds"
	MetricSchedulerJobInvocations = "tango_scheduler_job_invocations_total"
	MetricRealtimeRoomEvents      = "tango_realtime_room_events_total"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NopRecorder

type NopRecorder struct{}

NopRecorder discards every metric. Its zero value is ready for direct use.

func (NopRecorder) AddCounter

func (NopRecorder) AddCounter(string, int64, ...slog.Attr)

func (NopRecorder) ObserveHistogram

func (NopRecorder) ObserveHistogram(string, float64, ...slog.Attr)

type Recorder

type Recorder interface {
	AddCounter(name string, delta int64, attrs ...slog.Attr)
	ObserveHistogram(name string, value float64, attrs ...slog.Attr)
}

Recorder receives framework metrics. Implementations must be safe for concurrent use.

Jump to

Keyboard shortcuts

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