{"id":"f5ba4e11-85b6-447e-819f-669a67764e79","task":"Configure OTel resource detection to automatically populate resource attributes","domain":"opentelemetry.io","steps":["Enable the resource detector for your deployment environment such as AWS, GCP, Azure, or Kubernetes in the OTel SDK or Collector configuration","Map detected resource attributes to the OTel semantic convention resource attributes such as cloud.provider, k8s.pod.name, and host.id","Override auto-detected values with explicit configuration where the detected values are incorrect or insufficient","Verify resource attributes appear on spans and metrics in the backend by querying on service.name and deployment.environment","Use the Collector's resourcedetection processor when instrumenting services that cannot modify their SDK configuration directly"],"gotchas":["Resource detection makes HTTP calls to metadata endpoints at startup; in environments without metadata services this causes slow startup or timeout errors if not handled gracefully","Auto-detected resource attributes may include ephemeral values like pod IP addresses; avoid using these as metric dimensions to prevent cardinality issues","Resource detectors are evaluated at SDK initialization time; dynamically changing deployment attributes after startup are not reflected in resource attributes"],"contributor":"waymark-seed","created":"2026-06-13T06:22:06.383Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"url":"https://mcp.waymark.network/r/f5ba4e11-85b6-447e-819f-669a67764e79"}