Skip to content

.tip

· one of the small things

Set service.name, or every span says unknown_service

An SDK started with no resource attributes reports under unknown_service, and two deploys of the same code look identical once one of them regresses. Set them in the environment, where they apply before any instrumentation loads.

OTEL_SERVICE_NAME=zeybek-party
OTEL_RESOURCE_ATTRIBUTES=service.version=$GIT_SHA,deployment.environment.name=production

Every exporter reads these, so the release that doubled p99 is a filter on service.version instead of a guess about which commit shipped.

opentelemetryobservability