span attribute

A typed key and value recorded on a span, such as http.route="/checkout", that explains what the work did.

In more detail

Attributes keep their type in OTLP: a boolean stays a boolean and a number stays a number, so telemetry backends can filter and aggregate reliably. Unlike metric labels, attributes may hold per-request detail such as an order ID, but never secrets or personal data.

Example

{"key": "http.response.status_code", "value": {"intValue": "500"}}

Related terms

Taught in

References