Documentation
¶
Index ¶
- func BeginExecutorOp(model, operation string) func()
- func InitPrometheus(service string)
- func InitTracer(ctx context.Context, serviceName string) (func(context.Context) error, error)
- func MetricsHandler() http.Handler
- func RecordExecutorOperation(model, operation, result string, seconds float64)
- func RecordOutboxPending(count int64)
- func RecordOutboxProcessed(status string, latencySeconds float64)
- func RegisterLokiHookIfConfigured(logger *logrus.Logger, service string)
- func ServiceName() string
- func Tracer() trace.Tracer
- type LokiHook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeginExecutorOp ¶
func BeginExecutorOp(model, operation string) func()
BeginExecutorOp increments the in-flight gauge for the given model/operation and returns a function that decrements it. Use with defer at the top of every executor entry point:
defer telemetry.BeginExecutorOp(modelName, "create")()
func InitPrometheus ¶
func InitPrometheus(service string)
func InitTracer ¶
func MetricsHandler ¶
func RecordExecutorOperation ¶
func RecordOutboxPending ¶
func RecordOutboxPending(count int64)
RecordOutboxPending updates the gauge of pending outbox jobs.
func RecordOutboxProcessed ¶
RecordOutboxProcessed increments the processed counter and records latency.
func ServiceName ¶
func ServiceName() string
Types ¶
Click to show internal directories.
Click to hide internal directories.