Intermediate By Samson Tanimawo, PhD Published Sep 3, 2026 5 min read

OTel Tracing Attributes Cheat Sheet

Stop inventing your own keys. The semantic conventions that backends already understand, the ones that actually move the needle on debugging, and the cardinality rules that keep your bill sane.

HTTP

The HTTP conventions are the most stable and the most useful. Auto-instrumentation libraries set most of these for you, verify they actually fire before adding more.

RPC & gRPC

For gRPC, the conventions exist; for proprietary RPC, follow the same shape. Don't invent.

Database

Database spans are the highest-value tracing investment. Latency lives here; the attributes below are what make queries findable.

Messaging

Producer and consumer spans share a trace via context propagation in headers. The conventions below make Kafka, RabbitMQ, SQS all look the same in your backend.

Custom attribute rules

You'll need custom attributes. The rules below keep them readable and prevent the registry-of-doom.

Cardinality discipline

Your trace bill is mostly cardinality. Every unique combination of attribute values is a row in the backend's index. Discipline here is the difference between $200/month and $20k/month.