org.opentelemetry.resource
Declares static OpenTelemetry resource attributes (service.name, service.namespace). Tooling can derive OTEL_RESOURCE_ATTRIBUTES from these fields without duplicating identity metadata in environment configuration. service.version is intentionally omitted — consumers SHOULD derive it from identity.version at runtime.
- Namespace:
org.opentelemetry.resource - Owner: community — convention for OpenTelemetry service resource attributes
- Status: proposed
- Docs: https://opentelemetry.io/docs/specs/semconv/resource/
Illustrative fragment — not a complete projectfile document. Consumers MUST round-trip unknown namespaces even when no shape is published.
---# SPDX-FileCopyrightText: 2026 Damián Búho <damian.buho@proton.me>## SPDX-License-Identifier: CC-BY-4.0# SPDX-License-Identifier: MIT
# Shape: org.opentelemetry.resource extension namespace# Illustrative fragment — not a complete projectfile document.# See registry.yaml for ownership and status.
org: opentelemetry: resource: service-name: my-api # OPTIONAL maps to OTel resource attribute service.name service-namespace: org.example # OPTIONAL maps to OTel resource attribute service.namespace # service.version is intentionally absent — derive it from identity.version at runtime[org.opentelemetry.resource]service-name = "my-api"service-namespace = "org.example"{ "org": { "opentelemetry": { "resource": { "service-name": "my-api", "service-namespace": "org.example" } } }}