Module obs

Module obs 

Source
Expand description

Optional observability helpers for broker flows.

§Feature Flags

  • Enable tracing to emit structured spans named oauth2_broker.flow with the flow (grant) and stage (call site) fields.
  • Enable metrics to increment the oauth2_broker_flow_total counter for every attempt/success/failure, labeled by flow + outcome.

Structs§

FlowSpan
A span builder used by broker flows.
FlowSpanGuard
RAII guard returned by FlowSpan::entered.

Enums§

FlowKind
OAuth flow kinds observed by the broker.
FlowOutcome
Outcome labels recorded for each attempt.

Functions§

record_flow_outcome
Records a flow outcome via the global metrics recorder (when enabled).

Type Aliases§

InstrumentedFlow
Passthrough future type when tracing is disabled.