What are semantic conventions and resource attributes?
IntermediateConceptTracing & OpenTelemetry
Answer
Semantic conventions standardise attribute names so dashboards and backends work across languages: http.request.method, http.response.status_code, url.path, db.system, messaging.system, rpc.service.
Resource attributes describe who produced the telemetry and apply to every span, metric and log from that process:
export OTEL_SERVICE_NAME=checkout
export OTEL_RESOURCE_ATTRIBUTES=service.version=1.4.2,deployment.environment.name=prod,service.namespace=shop
service.name is the single most important one: without it everything shows as unknown_service. The k8sattributes processor adds k8s.namespace.name, k8s.pod.name, k8s.deployment.name. Note that the HTTP conventions were renamed when they went stable (old http.status_code became http.response.status_code), so mixed SDK versions can split your queries.
More on Tracing & OpenTelemetry
What is distributed tracing, and what are a trace, a span and a span context?BeginnerWhat fields does an OpenTelemetry span carry?BeginnerWhat are span kinds and why do they matter?IntermediateWhat does the W3C `traceparent` header look like?IntermediateWhat is baggage, and how is it different from span attributes?IntermediateWhat is OpenTelemetry and what are its main parts?Beginner