Skip to main content

Module telemetry

Module telemetry 

Source
Expand description

Types for carrying values selected from an operation’s input through to telemetry. Types for carrying values selected from an operation’s input through to telemetry.

Telemetry runs at the generic layer, where the operation input is type-erased and, during serialization, consumed before any result-bearing hook runs. After that point a value such as the target resource identifier survives only inside the serialized request. CapturedTelemetryAttributes is the bridge: generated code selects an input member once, before the input is consumed, and writes it here into the ConfigBag. Any downstream interceptor — and the built-in metrics implementation — can then read it via cfg.load.

This type lives in aws-smithy-types (a stable crate) deliberately: it carries no dependency on aws-smithy-observability and can therefore appear in stable, generated configuration without leaking a 0.x type.

It is off by default. When no input member is selected, nothing is captured and this value is absent from the ConfigBag.

Structs§

CapturedTelemetryAttributes
A set of string-keyed values selected from an operation’s input, carried through the ConfigBag for telemetry.
RequestedTelemetryAttributes
The operation-input member names a customer has opted in to for telemetry, split into two independent policies.