81 std::chrono::milliseconds
delay{0};
Definition authenticator.hpp:40
std::variant< RequestStartEvent, RequestEndEvent, RetryEvent, RefreshEvent, ConfigClampedEvent > TelemetryEvent
One §19.1 event.
Definition telemetry.hpp:124
Outcome
Why a request finished.
Definition telemetry.hpp:30
@ kFailure
The call failed, at any layer.
@ kSuccess
The call returned a usable response.
RefreshRole
Whether this caller performed a §9 refresh or waited on another thread's.
Definition telemetry.hpp:38
@ kFollower
This caller waited on another thread's refresh.
@ kLeader
This caller performed the refresh.
std::function< void(const TelemetryEvent &)> TelemetryHook
A caller-supplied telemetry sink (§19).
Definition telemetry.hpp:134
Emitted at client construction, once per caller-supplied setting the SDK clamped (§19....
Definition telemetry.hpp:106
std::string contract_reference
The §-reference for the limit, e.g. §17.1 rule 2.
Definition telemetry.hpp:114
std::string effective
The value actually in force, rendered.
Definition telemetry.hpp:112
std::string setting
The builder setting's name, e.g. decision_memo_ttl.
Definition telemetry.hpp:108
std::string requested
The value the caller asked for, rendered.
Definition telemetry.hpp:110
Emitted around a §9 single-flight refresh.
Definition telemetry.hpp:88
RefreshRole role
Definition telemetry.hpp:89
std::chrono::milliseconds duration
Definition telemetry.hpp:90
Emitted after a call completes, success or failure.
Definition telemetry.hpp:59
std::chrono::milliseconds duration
Wall-clock time this attempt took.
Definition telemetry.hpp:67
Outcome outcome
Definition telemetry.hpp:68
std::string operation
Definition telemetry.hpp:60
std::optional< long > status
HTTP status, or std::nullopt when the call never got a response.
Definition telemetry.hpp:65
std::string path_template
Definition telemetry.hpp:62
std::string method
Definition telemetry.hpp:61
int attempt
Definition telemetry.hpp:63
Emitted before an outbound call leaves the SDK.
Definition telemetry.hpp:46
std::string operation
Canonical operation name, e.g. check_access.
Definition telemetry.hpp:48
int attempt
1 for the first try, incrementing per §16 retry.
Definition telemetry.hpp:55
std::string method
HTTP method.
Definition telemetry.hpp:50
std::string path_template
The route CONSTANT — /api/v1/authz/check, never a URL with ids substituted in.
Definition telemetry.hpp:53
Emitted before each §16 retry wait.
Definition telemetry.hpp:76
std::string reason
A redacted description of the failure.
Definition telemetry.hpp:84
std::chrono::milliseconds delay
The wait about to be taken, after jitter and any Retry-After.
Definition telemetry.hpp:81
int attempt
The attempt that just failed.
Definition telemetry.hpp:79
std::string operation
Definition telemetry.hpp:77