Configure OTel resource detection to automatically populate resource attributes

domain: opentelemetry.io · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Enable the resource detector for your deployment environment such as AWS, GCP, Azure, or Kubernetes in the OTel SDK or Collector configuration
  2. Map detected resource attributes to the OTel semantic convention resource attributes such as cloud.provider, k8s.pod.name, and host.id
  3. Override auto-detected values with explicit configuration where the detected values are incorrect or insufficient
  4. Verify resource attributes appear on spans and metrics in the backend by querying on service.name and deployment.environment
  5. Use the Collector's resourcedetection processor when instrumenting services that cannot modify their SDK configuration directly

Known gotchas

Related routes

Configure OpenTelemetry resource detection processors in the Collector to automatically populate cloud and Kubernetes resource attributes
opentelemetry.io · 5 steps · unrated
Manually create and nest spans with the OTel SDK to trace internal business logic beyond framework auto-instrumentation
opentelemetry.io · 6 steps · unrated
Configure the New Relic OTel integration to ingest OTLP data and map it to New Relic entities with correct service naming
docs.newrelic.com · 5 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans