|
| 1 | +# OpenTelemetry Semantic Conventions |
| 2 | + |
| 3 | +Azure client libraries follow OpenTelemetry semantic conventions on distributed traces. |
| 4 | +In addition to general conventions described in the [azure-sdk repo](https://github.com/Azure/azure-sdk/blob/main/docs/observability/opentelemetry-conventions.md), some of the .NET libraries emit |
| 5 | +additional attributes on public API spans. Such attributes are described below. |
| 6 | + |
| 7 | +## Azure Application Configuration attributes |
| 8 | + |
| 9 | +| Attribute | Type | Description | Examples | Requirement Level | |
| 10 | +|---|---|---|---|---| |
| 11 | +| `az.appconfiguration.key` | string | Value of the Azure Application Configuration property [key](https://learn.microsoft.com/azure/azure-app-configuration/concept-key-value). | `AppName:Service1:ApiEndpoint` | Recommended | |
| 12 | + |
| 13 | +## Azure Cognitive Language Question Answering SDK attributes |
| 14 | + |
| 15 | +| Attribute | Type | Description | Examples | Requirement Level | |
| 16 | +|---|---|---|---|---| |
| 17 | +| `az.cognitivelanguage.deployment.name` | string | Name of the [Azure Questions Answering](https://learn.microsoft.com/azure/ai-services/language-service/question-answering/overview) deployment. | `production` | Recommended | |
| 18 | +| `az.cognitivelanguage.project.name` | string | Name of the [Azure Questions Answering](https://learn.microsoft.com/azure/ai-services/language-service/question-answering/overview) project. | `production` | Recommended | |
| 19 | + |
| 20 | +## Azure Digital Twins attributes |
| 21 | + |
| 22 | +| Attribute | Type | Description | Examples | Requirement Level | |
| 23 | +|---|---|---|---|---| |
| 24 | +| `az.digitaltwins.component.name` | string | The name of the digital twin component. | `thermostat` | Recommended | |
| 25 | +| `az.digitaltwins.event_route.id` | string | The [event route](https://learn.microsoft.com/azure/digital-twins/concepts-route-events) identifier used by the digital twin. | `6f8741b1` | Recommended | |
| 26 | +| `az.digitaltwins.job.id` | string | Digital twin job ID. | `test-job` | Recommended | |
| 27 | +| `az.digitaltwins.message.id` | string | A unique message identifier (in the scope of the digital twin ID) used to de-duplicate telemetry messages. | `a40896c5ab954ab1` | Recommended | |
| 28 | +| `az.digitaltwins.model.id` | string | The digital twin model ID. | `dtmi:example:Room23;1` | Recommended | |
| 29 | +| `az.digitaltwins.query` | string | Digital twin graph query. | `SELECT * FROM DIGITALTWINS WHERE Name = "DSouza"` | Recommended | |
| 30 | +| `az.digitaltwins.relationship.name` | string | The name of the relationship between twins. | `contains` | Recommended | |
| 31 | +| `az.digitaltwins.twin.id` | string | The unique identifier of a [digital twin](https://learn.microsoft.com/azure/digital-twins/concepts-twins-graph). | `edf41622` | Recommended | |
| 32 | + |
| 33 | +## Azure Key Vault attributes |
| 34 | + |
| 35 | +### Azure Key Vault Certificates attributes |
| 36 | + |
| 37 | +| Attribute | Type | Description | Examples | Requirement Level | |
| 38 | +|---|---|---|---|---| |
| 39 | +| `az.keyvault.certificate.issuer.name` | string | The Azure Key Vault certificate issuer name. | `issuer01` | Recommended | |
| 40 | +| `az.keyvault.certificate.name` | string | The Azure Key Vault certificate name. | `selfSignedCert01` | Recommended | |
| 41 | +| `az.keyvault.certificate.version` | string | The Azure Key Vault certificate version. | `c3d31d7b36c942ad83ef36fc0785a4fc` | Recommended | |
| 42 | + |
| 43 | +### Azure Key Vault Keys attributes |
| 44 | + |
| 45 | +| Attribute | Type | Description | Examples | Requirement Level | |
| 46 | +|---|---|---|---|---| |
| 47 | +| `az.keyvault.key.id` | string | The Azure Key Vault key ID (full URL). | `"https://myvault.vault.azure.net/keys/CreateSoftKeyTest/78deebed173b48e48f55abf87ed4cf71"` | Recommended | |
| 48 | +| `az.keyvault.key.name` | string | The Azure Key Vault key name. | `test-key` | Recommended | |
| 49 | +| `az.keyvault.key.version` | string | The Azure Key Vault key version. | `3d31e6e5c4c14eaf9be8d42c00225088` | Recommended | |
| 50 | + |
| 51 | +### Azure Key Vault Secrets attributes |
| 52 | + |
| 53 | +| Attribute | Type | Description | Examples | Requirement Level | |
| 54 | +|---|---|---|---|---| |
| 55 | +| `az.keyvault.secret.name` | string | The Azure Key Vault secret name. | `test-secret` | Recommended | |
| 56 | +| `az.keyvault.secret.version` | string | The Azure Key Vault secret version. | `4387e9f3d6e14c459867679a90fd0f79` | Recommended | |
| 57 | + |
| 58 | +### Azure Mixed Reality Remote Rendering attributes |
| 59 | + |
| 60 | +| Attribute | Type | Description | Examples | Requirement Level | |
| 61 | +|---|---|---|---|---| |
| 62 | +| `az.remoterendering.conversion.id` | string | A conversion ID uniquely identifying the conversion for the given [Azure Remote Rendering](https://learn.microsoft.com/windows/mixed-reality/develop/mixed-reality-cloud-services#azure-remote-rendering) account. | `contoso-conversion-6fae2bfb754e` | Recommended | |
| 63 | +| `az.remoterendering.session.id` | string | A session ID uniquely identifying the conversion for the given [Azure Remote Rendering](https://learn.microsoft.com/windows/mixed-reality/develop/mixed-reality-cloud-services#azure-remote-rendering) account. | `contoso-session-8c28813adc28` | Recommended | |
0 commit comments