Skip to content
semconv.com
↑↓ move↵ openUse with your agent →

rpc.response.header

Release candidatetemplate[string[]]as of v1.45.0

RPC response headers or metadata sent before the response payload, <key> being the normalized header name (lowercase), the value being the header values.

Instrumentations SHOULD require an explicit configuration of which headers are to be captured. Including all response headers can be a security risk - explicit configuration helps avoid leaking sensitive information.

For example, a header my-custom-key with value ["attribute_value"] SHOULD be recorded as the rpc.response.header.my-custom-key attribute with value ["attribute_value"]

The attribute value MUST consist of either multiple header 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 headers.

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 (6)

  • 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)

* required on that signal.

History

  1. v1.45.0

    Added as release_candidate.

Definition sourceRegistry docsJSONUse with your agent →