Skip to content

Commit 4ad3b8b

Browse files
authored
[SEMANTIC CONVENTIONS] Upgrade to semantic conventions 1.36.0 (#3527)
1 parent d017ae1 commit 4ad3b8b

19 files changed

+2646
-519
lines changed

api/include/opentelemetry/semconv/db_attributes.h

Lines changed: 0 additions & 185 deletions
Original file line numberDiff line numberDiff line change
@@ -137,151 +137,11 @@ static constexpr const char *kDbSystemName = "db.system.name";
137137

138138
namespace DbSystemNameValues
139139
{
140-
/**
141-
Some other SQL database. Fallback only.
142-
*/
143-
static constexpr const char *kOtherSql = "other_sql";
144-
145-
/**
146-
<a href="https://documentation.softwareag.com/?pf=adabas">Adabas (Adaptable Database System)</a>
147-
*/
148-
static constexpr const char *kSoftwareagAdabas = "softwareag.adabas";
149-
150-
/**
151-
<a href="https://www.actian.com/databases/ingres/">Actian Ingres</a>
152-
*/
153-
static constexpr const char *kActianIngres = "actian.ingres";
154-
155-
/**
156-
<a href="https://aws.amazon.com/pm/dynamodb/">Amazon DynamoDB</a>
157-
*/
158-
static constexpr const char *kAwsDynamodb = "aws.dynamodb";
159-
160-
/**
161-
<a href="https://aws.amazon.com/redshift/">Amazon Redshift</a>
162-
*/
163-
static constexpr const char *kAwsRedshift = "aws.redshift";
164-
165-
/**
166-
<a href="https://learn.microsoft.com/azure/cosmos-db">Azure Cosmos DB</a>
167-
*/
168-
static constexpr const char *kAzureCosmosdb = "azure.cosmosdb";
169-
170-
/**
171-
<a href="https://www.intersystems.com/products/cache/">InterSystems Caché</a>
172-
*/
173-
static constexpr const char *kIntersystemsCache = "intersystems.cache";
174-
175-
/**
176-
<a href="https://cassandra.apache.org/">Apache Cassandra</a>
177-
*/
178-
static constexpr const char *kCassandra = "cassandra";
179-
180-
/**
181-
<a href="https://clickhouse.com/">ClickHouse</a>
182-
*/
183-
static constexpr const char *kClickhouse = "clickhouse";
184-
185-
/**
186-
<a href="https://www.cockroachlabs.com/">CockroachDB</a>
187-
*/
188-
static constexpr const char *kCockroachdb = "cockroachdb";
189-
190-
/**
191-
<a href="https://www.couchbase.com/">Couchbase</a>
192-
*/
193-
static constexpr const char *kCouchbase = "couchbase";
194-
195-
/**
196-
<a href="https://couchdb.apache.org/">Apache CouchDB</a>
197-
*/
198-
static constexpr const char *kCouchdb = "couchdb";
199-
200-
/**
201-
<a href="https://db.apache.org/derby/">Apache Derby</a>
202-
*/
203-
static constexpr const char *kDerby = "derby";
204-
205-
/**
206-
<a href="https://www.elastic.co/elasticsearch">Elasticsearch</a>
207-
*/
208-
static constexpr const char *kElasticsearch = "elasticsearch";
209-
210-
/**
211-
<a href="https://www.firebirdsql.org/">Firebird</a>
212-
*/
213-
static constexpr const char *kFirebirdsql = "firebirdsql";
214-
215-
/**
216-
<a href="https://cloud.google.com/spanner">Google Cloud Spanner</a>
217-
*/
218-
static constexpr const char *kGcpSpanner = "gcp.spanner";
219-
220-
/**
221-
<a href="https://geode.apache.org/">Apache Geode</a>
222-
*/
223-
static constexpr const char *kGeode = "geode";
224-
225-
/**
226-
<a href="https://h2database.com/">H2 Database</a>
227-
*/
228-
static constexpr const char *kH2database = "h2database";
229-
230-
/**
231-
<a href="https://hbase.apache.org/">Apache HBase</a>
232-
*/
233-
static constexpr const char *kHbase = "hbase";
234-
235-
/**
236-
<a href="https://hive.apache.org/">Apache Hive</a>
237-
*/
238-
static constexpr const char *kHive = "hive";
239-
240-
/**
241-
<a href="https://hsqldb.org/">HyperSQL Database</a>
242-
*/
243-
static constexpr const char *kHsqldb = "hsqldb";
244-
245-
/**
246-
<a href="https://www.ibm.com/db2">IBM Db2</a>
247-
*/
248-
static constexpr const char *kIbmDb2 = "ibm.db2";
249-
250-
/**
251-
<a href="https://www.ibm.com/products/informix">IBM Informix</a>
252-
*/
253-
static constexpr const char *kIbmInformix = "ibm.informix";
254-
255-
/**
256-
<a href="https://www.ibm.com/products/netezza">IBM Netezza</a>
257-
*/
258-
static constexpr const char *kIbmNetezza = "ibm.netezza";
259-
260-
/**
261-
<a href="https://www.influxdata.com/">InfluxDB</a>
262-
*/
263-
static constexpr const char *kInfluxdb = "influxdb";
264-
265-
/**
266-
<a href="https://www.instantdb.com/">Instant</a>
267-
*/
268-
static constexpr const char *kInstantdb = "instantdb";
269-
270140
/**
271141
<a href="https://mariadb.org/">MariaDB</a>
272142
*/
273143
static constexpr const char *kMariadb = "mariadb";
274144

275-
/**
276-
<a href="https://memcached.org/">Memcached</a>
277-
*/
278-
static constexpr const char *kMemcached = "memcached";
279-
280-
/**
281-
<a href="https://www.mongodb.com/">MongoDB</a>
282-
*/
283-
static constexpr const char *kMongodb = "mongodb";
284-
285145
/**
286146
<a href="https://www.microsoft.com/sql-server">Microsoft SQL Server</a>
287147
*/
@@ -292,56 +152,11 @@ static constexpr const char *kMicrosoftSqlServer = "microsoft.sql_server";
292152
*/
293153
static constexpr const char *kMysql = "mysql";
294154

295-
/**
296-
<a href="https://neo4j.com/">Neo4j</a>
297-
*/
298-
static constexpr const char *kNeo4j = "neo4j";
299-
300-
/**
301-
<a href="https://opensearch.org/">OpenSearch</a>
302-
*/
303-
static constexpr const char *kOpensearch = "opensearch";
304-
305-
/**
306-
<a href="https://www.oracle.com/database/">Oracle Database</a>
307-
*/
308-
static constexpr const char *kOracleDb = "oracle.db";
309-
310155
/**
311156
<a href="https://www.postgresql.org/">PostgreSQL</a>
312157
*/
313158
static constexpr const char *kPostgresql = "postgresql";
314159

315-
/**
316-
<a href="https://redis.io/">Redis</a>
317-
*/
318-
static constexpr const char *kRedis = "redis";
319-
320-
/**
321-
<a href="https://www.sap.com/products/technology-platform/hana/what-is-sap-hana.html">SAP HANA</a>
322-
*/
323-
static constexpr const char *kSapHana = "sap.hana";
324-
325-
/**
326-
<a href="https://maxdb.sap.com/">SAP MaxDB</a>
327-
*/
328-
static constexpr const char *kSapMaxdb = "sap.maxdb";
329-
330-
/**
331-
<a href="https://www.sqlite.org/">SQLite</a>
332-
*/
333-
static constexpr const char *kSqlite = "sqlite";
334-
335-
/**
336-
<a href="https://www.teradata.com/">Teradata</a>
337-
*/
338-
static constexpr const char *kTeradata = "teradata";
339-
340-
/**
341-
<a href="https://trino.io/">Trino</a>
342-
*/
343-
static constexpr const char *kTrino = "trino";
344-
345160
} // namespace DbSystemNameValues
346161

347162
} // namespace db

api/include/opentelemetry/semconv/incubating/az_attributes.h

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,22 @@ namespace az
2020
{
2121

2222
/**
23-
<a
24-
href="https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers">Azure
25-
Resource Provider Namespace</a> as recognized by the client.
23+
Deprecated, use @code azure.resource_provider.namespace @endcode instead.
24+
25+
@deprecated
26+
{"note": "Replaced by @code azure.resource_provider.namespace @endcode.", "reason": "renamed",
27+
"renamed_to": "azure.resource_provider.namespace"}
2628
*/
27-
static constexpr const char *kAzNamespace = "az.namespace";
29+
OPENTELEMETRY_DEPRECATED static constexpr const char *kAzNamespace = "az.namespace";
2830

2931
/**
30-
The unique identifier of the service request. It's generated by the Azure service and returned
31-
with the response.
32+
Deprecated, use @code azure.service.request.id @endcode instead.
33+
34+
@deprecated
35+
{"note": "Replaced by @code azure.service.request.id @endcode.", "reason": "renamed",
36+
"renamed_to": "azure.service.request.id"}
3237
*/
33-
static constexpr const char *kAzServiceRequestId = "az.service_request_id";
38+
OPENTELEMETRY_DEPRECATED static constexpr const char *kAzServiceRequestId = "az.service_request_id";
3439

3540
} // namespace az
3641
} // namespace semconv

api/include/opentelemetry/semconv/incubating/azure_attributes.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,19 @@ static constexpr const char *kAzureCosmosdbRequestBodySize = "azure.cosmosdb.req
6262
static constexpr const char *kAzureCosmosdbResponseSubStatusCode =
6363
"azure.cosmosdb.response.sub_status_code";
6464

65+
/**
66+
<a
67+
href="https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers">Azure
68+
Resource Provider Namespace</a> as recognized by the client.
69+
*/
70+
static constexpr const char *kAzureResourceProviderNamespace = "azure.resource_provider.namespace";
71+
72+
/**
73+
The unique identifier of the service request. It's generated by the Azure service and returned
74+
with the response.
75+
*/
76+
static constexpr const char *kAzureServiceRequestId = "azure.service.request.id";
77+
6578
namespace AzureCosmosdbConnectionModeValues
6679
{
6780
/**

api/include/opentelemetry/semconv/incubating/cloud_attributes.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ static constexpr const char *kCloudRegion = "cloud.region";
7474
<li><strong>GCP:</strong> The <a
7575
href="https://cloud.google.com/iam/docs/full-resource-names">URI of the resource</a></li>
7676
<li><strong>Azure:</strong> The <a
77-
href="https://docs.microsoft.com/rest/api/resources/resources/get-by-id">Fully Qualified Resource
77+
href="https://learn.microsoft.com/rest/api/resources/resources/get-by-id">Fully Qualified Resource
7878
ID</a> of the invoked function, <em>not</em> the function app, having the form
7979
@code
8080
/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>
@@ -139,37 +139,37 @@ static constexpr const char *kAwsOpenshift = "aws_openshift";
139139
/**
140140
Azure Virtual Machines
141141
*/
142-
static constexpr const char *kAzureVm = "azure_vm";
142+
static constexpr const char *kAzureVm = "azure.vm";
143143

144144
/**
145145
Azure Container Apps
146146
*/
147-
static constexpr const char *kAzureContainerApps = "azure_container_apps";
147+
static constexpr const char *kAzureContainerApps = "azure.container_apps";
148148

149149
/**
150150
Azure Container Instances
151151
*/
152-
static constexpr const char *kAzureContainerInstances = "azure_container_instances";
152+
static constexpr const char *kAzureContainerInstances = "azure.container_instances";
153153

154154
/**
155155
Azure Kubernetes Service
156156
*/
157-
static constexpr const char *kAzureAks = "azure_aks";
157+
static constexpr const char *kAzureAks = "azure.aks";
158158

159159
/**
160160
Azure Functions
161161
*/
162-
static constexpr const char *kAzureFunctions = "azure_functions";
162+
static constexpr const char *kAzureFunctions = "azure.functions";
163163

164164
/**
165165
Azure App Service
166166
*/
167-
static constexpr const char *kAzureAppService = "azure_app_service";
167+
static constexpr const char *kAzureAppService = "azure.app_service";
168168

169169
/**
170170
Azure Red Hat OpenShift
171171
*/
172-
static constexpr const char *kAzureOpenshift = "azure_openshift";
172+
static constexpr const char *kAzureOpenshift = "azure.openshift";
173173

174174
/**
175175
Google Bare Metal Solution (BMS)

0 commit comments

Comments
 (0)