rpc.response.trailer
RPC response trailers or metadata sent after the response payload, <key> being the normalized trailer name (lowercase), the value being the trailer values.
Instrumentations SHOULD require an explicit configuration of which trailers are to be captured. Including all response trailers can be a security risk - explicit configuration helps avoid leaking sensitive information.
For example, a trailer my-custom-key with value ["attribute_value"] SHOULD be recorded as
the rpc.response.trailer.my-custom-key attribute with value ["attribute_value"]
The attribute value MUST consist of either multiple trailer values as an array of strings or a single-item array containing a possibly comma-concatenated string, depending on the way the RPC library provides access to trailers.
Values that the RPC system exposes as binary data, or that are otherwise not valid UTF-8 strings, SHOULD be base64-encoded when recorded.
Examples
- ["attribute_value"]
Used by
spans (8)
- span.rpc.call.client (opt-in)
- span.rpc.call.server (opt-in)
- rpc.call.client (opt-in)
- rpc.call.server (opt-in)
- rpc.call.client (opt-in)
- rpc.call.server (opt-in)
- rpc.call.client (opt-in)
- rpc.call.server (opt-in)
* required on that signal.
History
Added as release_candidate.