Expand description
Optional observability helpers for broker flows.
§Feature Flags
- Enable
tracingto emit structured spans namedoauth2_broker.flowwith theflow(grant) andstage(call site) fields. - Enable
metricsto increment theoauth2_broker_flow_totalcounter for every attempt/success/failure, labeled byflow+outcome.
Structs§
- Flow
Span - A span builder used by broker flows.
- Flow
Span Guard - RAII guard returned by
FlowSpan::entered.
Enums§
- Flow
Kind - OAuth flow kinds observed by the broker.
- Flow
Outcome - Outcome labels recorded for each attempt.
Functions§
- record_
flow_ outcome - Records a flow outcome via the global metrics recorder (when enabled).
Type Aliases§
- Instrumented
Flow - Passthrough future type when tracing is disabled.