---
title: "Application Observability resource attributes | Grafana Cloud documentation"
description: "The recommended OpenTelemetry resource attributes for Application Observability."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Application Observability resource attributes

Application Observability adds OpenTelemetry resource attributes to logs, spans, and metrics emitted by your application to enrich your data with contextual metadata.

These [service resource attributes](https://opentelemetry.io/docs/reference/specification/resource/semantic_conventions/#service) allow you to filter your metrics and traces effectively:

Expand table

| Attribute              | Description                                                           |
|------------------------|-----------------------------------------------------------------------|
| service.namespace      | An optional namespace for `service.name`                              |
| service.name           | The application name                                                  |
| deployment.environment | Name of the deployment environment (`staging` or `production`)        |
| service.instance.id    | The unique instance, e.g. the pod name                                |
| service.version        | The application version, to see if a new version has introduced a bug |

OpenTelemetry logs and metrics are stored in Loki and Prometheus respectively. Both Loki and Prometheus use `job` and `instance` labels according the [OpenTelemetry compatibility specification with Prometheus and OpenMetrics](https://opentelemetry.io/docs/reference/specification/compatibility/prometheus_and_openmetrics/#resource-attributes-1):

Expand table

| Label    | Filled with attribute (if it is found)                                                       |
|----------|----------------------------------------------------------------------------------------------|
| job      | `${service.namespace}/${service.name}` (if `service.namespace` is defined) or `service.name` |
| instance | `service.instance.id`                                                                        |
