db_attributes.h 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212
  1. /*
  2. * Copyright The OpenTelemetry Authors
  3. * SPDX-License-Identifier: Apache-2.0
  4. */
  5. /*
  6. * DO NOT EDIT, this is an Auto-generated file from:
  7. * buildscripts/semantic-convention/templates/registry/semantic_attributes-h.j2
  8. */
  9. #pragma once
  10. #include "opentelemetry/common/macros.h"
  11. #include "opentelemetry/version.h"
  12. OPENTELEMETRY_BEGIN_NAMESPACE
  13. namespace semconv
  14. {
  15. namespace db
  16. {
  17. /**
  18. Deprecated, use @code cassandra.consistency.level @endcode instead.
  19. @deprecated
  20. {"note": "Replaced by @code cassandra.consistency.level @endcode.", "reason": "renamed",
  21. "renamed_to": "cassandra.consistency.level"}
  22. */
  23. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbCassandraConsistencyLevel =
  24. "db.cassandra.consistency_level";
  25. /**
  26. Deprecated, use @code cassandra.coordinator.dc @endcode instead.
  27. @deprecated
  28. {"note": "Replaced by @code cassandra.coordinator.dc @endcode.", "reason": "renamed",
  29. "renamed_to": "cassandra.coordinator.dc"}
  30. */
  31. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbCassandraCoordinatorDc =
  32. "db.cassandra.coordinator.dc";
  33. /**
  34. Deprecated, use @code cassandra.coordinator.id @endcode instead.
  35. @deprecated
  36. {"note": "Replaced by @code cassandra.coordinator.id @endcode.", "reason": "renamed",
  37. "renamed_to": "cassandra.coordinator.id"}
  38. */
  39. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbCassandraCoordinatorId =
  40. "db.cassandra.coordinator.id";
  41. /**
  42. Deprecated, use @code cassandra.query.idempotent @endcode instead.
  43. @deprecated
  44. {"note": "Replaced by @code cassandra.query.idempotent @endcode.", "reason": "renamed",
  45. "renamed_to": "cassandra.query.idempotent"}
  46. */
  47. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbCassandraIdempotence =
  48. "db.cassandra.idempotence";
  49. /**
  50. Deprecated, use @code cassandra.page.size @endcode instead.
  51. @deprecated
  52. {"note": "Replaced by @code cassandra.page.size @endcode.", "reason": "renamed", "renamed_to":
  53. "cassandra.page.size"}
  54. */
  55. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbCassandraPageSize =
  56. "db.cassandra.page_size";
  57. /**
  58. Deprecated, use @code cassandra.speculative_execution.count @endcode instead.
  59. @deprecated
  60. {"note": "Replaced by @code cassandra.speculative_execution.count @endcode.", "reason": "renamed",
  61. "renamed_to": "cassandra.speculative_execution.count"}
  62. */
  63. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbCassandraSpeculativeExecutionCount =
  64. "db.cassandra.speculative_execution_count";
  65. /**
  66. Deprecated, use @code db.collection.name @endcode instead.
  67. @deprecated
  68. {"note": "Replaced by @code db.collection.name @endcode.", "reason": "renamed", "renamed_to":
  69. "db.collection.name"}
  70. */
  71. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbCassandraTable = "db.cassandra.table";
  72. /**
  73. The name of the connection pool; unique within the instrumented application. In case the
  74. connection pool implementation doesn't provide a name, instrumentation SHOULD use a combination of
  75. parameters that would make the name unique, for example, combining attributes @code server.address
  76. @endcode, @code server.port @endcode, and @code db.namespace @endcode, formatted as @code
  77. server.address:server.port/db.namespace @endcode. Instrumentations that generate connection pool
  78. name following different patterns SHOULD document it.
  79. */
  80. static constexpr const char *kDbClientConnectionPoolName = "db.client.connection.pool.name";
  81. /**
  82. The state of a connection in the pool
  83. */
  84. static constexpr const char *kDbClientConnectionState = "db.client.connection.state";
  85. /**
  86. Deprecated, use @code db.client.connection.pool.name @endcode instead.
  87. @deprecated
  88. {"note": "Replaced by @code db.client.connection.pool.name @endcode.", "reason": "renamed",
  89. "renamed_to": "db.client.connection.pool.name"}
  90. */
  91. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbClientConnectionsPoolName =
  92. "db.client.connections.pool.name";
  93. /**
  94. Deprecated, use @code db.client.connection.state @endcode instead.
  95. @deprecated
  96. {"note": "Replaced by @code db.client.connection.state @endcode.", "reason": "renamed",
  97. "renamed_to": "db.client.connection.state"}
  98. */
  99. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbClientConnectionsState =
  100. "db.client.connections.state";
  101. /**
  102. The name of a collection (table, container) within the database.
  103. <p>
  104. It is RECOMMENDED to capture the value as provided by the application
  105. without attempting to do any case normalization.
  106. <p>
  107. The collection name SHOULD NOT be extracted from @code db.query.text @endcode,
  108. when the database system supports query text with multiple collections
  109. in non-batch operations.
  110. <p>
  111. For batch operations, if the individual operations are known to have the same
  112. collection name then that collection name SHOULD be used.
  113. */
  114. static constexpr const char *kDbCollectionName = "db.collection.name";
  115. /**
  116. Deprecated, use @code server.address @endcode, @code server.port @endcode attributes instead.
  117. @deprecated
  118. {"note": "Replaced by @code server.address @endcode and @code server.port @endcode.\n", "reason":
  119. "uncategorized"}
  120. */
  121. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbConnectionString = "db.connection_string";
  122. /**
  123. Deprecated, use @code azure.client.id @endcode instead.
  124. @deprecated
  125. {"note": "Replaced by @code azure.client.id @endcode.", "reason": "renamed", "renamed_to":
  126. "azure.client.id"}
  127. */
  128. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbCosmosdbClientId = "db.cosmosdb.client_id";
  129. /**
  130. Deprecated, use @code azure.cosmosdb.connection.mode @endcode instead.
  131. @deprecated
  132. {"note": "Replaced by @code azure.cosmosdb.connection.mode @endcode.", "reason": "renamed",
  133. "renamed_to": "azure.cosmosdb.connection.mode"}
  134. */
  135. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbCosmosdbConnectionMode =
  136. "db.cosmosdb.connection_mode";
  137. /**
  138. Deprecated, use @code cosmosdb.consistency.level @endcode instead.
  139. @deprecated
  140. {"note": "Replaced by @code azure.cosmosdb.consistency.level @endcode.", "reason": "renamed",
  141. "renamed_to": "azure.cosmosdb.consistency.level"}
  142. */
  143. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbCosmosdbConsistencyLevel =
  144. "db.cosmosdb.consistency_level";
  145. /**
  146. Deprecated, use @code db.collection.name @endcode instead.
  147. @deprecated
  148. {"note": "Replaced by @code db.collection.name @endcode.", "reason": "renamed", "renamed_to":
  149. "db.collection.name"}
  150. */
  151. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbCosmosdbContainer =
  152. "db.cosmosdb.container";
  153. /**
  154. Deprecated, no replacement at this time.
  155. @deprecated
  156. {"note": "Removed, no replacement at this time.\n", "reason": "obsoleted"}
  157. */
  158. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbCosmosdbOperationType =
  159. "db.cosmosdb.operation_type";
  160. /**
  161. Deprecated, use @code azure.cosmosdb.operation.contacted_regions @endcode instead.
  162. @deprecated
  163. {"note": "Replaced by @code azure.cosmosdb.operation.contacted_regions @endcode.", "reason":
  164. "renamed", "renamed_to": "azure.cosmosdb.operation.contacted_regions"}
  165. */
  166. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbCosmosdbRegionsContacted =
  167. "db.cosmosdb.regions_contacted";
  168. /**
  169. Deprecated, use @code azure.cosmosdb.operation.request_charge @endcode instead.
  170. @deprecated
  171. {"note": "Replaced by @code azure.cosmosdb.operation.request_charge @endcode.", "reason":
  172. "renamed", "renamed_to": "azure.cosmosdb.operation.request_charge"}
  173. */
  174. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbCosmosdbRequestCharge =
  175. "db.cosmosdb.request_charge";
  176. /**
  177. Deprecated, use @code azure.cosmosdb.request.body.size @endcode instead.
  178. @deprecated
  179. {"note": "Replaced by @code azure.cosmosdb.request.body.size @endcode.", "reason": "renamed",
  180. "renamed_to": "azure.cosmosdb.request.body.size"}
  181. */
  182. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbCosmosdbRequestContentLength =
  183. "db.cosmosdb.request_content_length";
  184. /**
  185. Deprecated, use @code db.response.status_code @endcode instead.
  186. @deprecated
  187. {"note": "Replaced by @code db.response.status_code @endcode.", "reason": "renamed", "renamed_to":
  188. "db.response.status_code"}
  189. */
  190. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbCosmosdbStatusCode =
  191. "db.cosmosdb.status_code";
  192. /**
  193. Deprecated, use @code azure.cosmosdb.response.sub_status_code @endcode instead.
  194. @deprecated
  195. {"note": "Replaced by @code azure.cosmosdb.response.sub_status_code @endcode.", "reason":
  196. "renamed", "renamed_to": "azure.cosmosdb.response.sub_status_code"}
  197. */
  198. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbCosmosdbSubStatusCode =
  199. "db.cosmosdb.sub_status_code";
  200. /**
  201. Deprecated, use @code db.namespace @endcode instead.
  202. @deprecated
  203. {"note": "Replaced by @code db.namespace @endcode.", "reason": "renamed", "renamed_to":
  204. "db.namespace"}
  205. */
  206. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbElasticsearchClusterName =
  207. "db.elasticsearch.cluster.name";
  208. /**
  209. Deprecated, use @code elasticsearch.node.name @endcode instead.
  210. @deprecated
  211. {"note": "Replaced by @code elasticsearch.node.name @endcode.", "reason": "renamed", "renamed_to":
  212. "elasticsearch.node.name"}
  213. */
  214. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbElasticsearchNodeName =
  215. "db.elasticsearch.node.name";
  216. /**
  217. Deprecated, use @code db.operation.parameter @endcode instead.
  218. @deprecated
  219. {"note": "Replaced by @code db.operation.parameter @endcode.", "reason": "renamed", "renamed_to":
  220. "db.operation.parameter"}
  221. */
  222. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbElasticsearchPathParts =
  223. "db.elasticsearch.path_parts";
  224. /**
  225. Deprecated, no general replacement at this time. For Elasticsearch, use @code
  226. db.elasticsearch.node.name @endcode instead.
  227. @deprecated
  228. {"note": "Removed, no general replacement at this time. For Elasticsearch, use @code
  229. db.elasticsearch.node.name @endcode instead.\n", "reason": "obsoleted"}
  230. */
  231. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbInstanceId = "db.instance.id";
  232. /**
  233. Removed, no replacement at this time.
  234. @deprecated
  235. {"note": "Removed, no replacement at this time.\n", "reason": "obsoleted"}
  236. */
  237. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbJdbcDriverClassname =
  238. "db.jdbc.driver_classname";
  239. /**
  240. Deprecated, use @code db.collection.name @endcode instead.
  241. @deprecated
  242. {"note": "Replaced by @code db.collection.name @endcode.", "reason": "renamed", "renamed_to":
  243. "db.collection.name"}
  244. */
  245. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbMongodbCollection =
  246. "db.mongodb.collection";
  247. /**
  248. Deprecated, SQL Server instance is now populated as a part of @code db.namespace @endcode
  249. attribute.
  250. @deprecated
  251. {"note": "Removed, no replacement at this time.", "reason": "obsoleted"}
  252. */
  253. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbMssqlInstanceName =
  254. "db.mssql.instance_name";
  255. /**
  256. Deprecated, use @code db.namespace @endcode instead.
  257. @deprecated
  258. {"note": "Replaced by @code db.namespace @endcode.", "reason": "renamed", "renamed_to":
  259. "db.namespace"}
  260. */
  261. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbName = "db.name";
  262. /**
  263. The name of the database, fully qualified within the server address and port.
  264. <p>
  265. If a database system has multiple namespace components, they SHOULD be concatenated from the most
  266. general to the most specific namespace component, using @code | @endcode as a separator between
  267. the components. Any missing components (and their associated separators) SHOULD be omitted.
  268. Semantic conventions for individual database systems SHOULD document what @code db.namespace
  269. @endcode means in the context of that system. It is RECOMMENDED to capture the value as provided
  270. by the application without attempting to do any case normalization.
  271. */
  272. static constexpr const char *kDbNamespace = "db.namespace";
  273. /**
  274. Deprecated, use @code db.operation.name @endcode instead.
  275. @deprecated
  276. {"note": "Replaced by @code db.operation.name @endcode.", "reason": "renamed", "renamed_to":
  277. "db.operation.name"}
  278. */
  279. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbOperation = "db.operation";
  280. /**
  281. The number of queries included in a batch operation.
  282. <p>
  283. Operations are only considered batches when they contain two or more operations, and so @code
  284. db.operation.batch.size @endcode SHOULD never be @code 1 @endcode.
  285. */
  286. static constexpr const char *kDbOperationBatchSize = "db.operation.batch.size";
  287. /**
  288. The name of the operation or command being executed.
  289. <p>
  290. It is RECOMMENDED to capture the value as provided by the application
  291. without attempting to do any case normalization.
  292. <p>
  293. The operation name SHOULD NOT be extracted from @code db.query.text @endcode,
  294. when the database system supports query text with multiple operations
  295. in non-batch operations.
  296. <p>
  297. If spaces can occur in the operation name, multiple consecutive spaces
  298. SHOULD be normalized to a single space.
  299. <p>
  300. For batch operations, if the individual operations are known to have the same operation name
  301. then that operation name SHOULD be used prepended by @code BATCH @endcode,
  302. otherwise @code db.operation.name @endcode SHOULD be @code BATCH @endcode or some other database
  303. system specific term if more applicable.
  304. */
  305. static constexpr const char *kDbOperationName = "db.operation.name";
  306. /**
  307. A database operation parameter, with @code <key> @endcode being the parameter name, and the
  308. attribute value being a string representation of the parameter value. <p> For example, a
  309. client-side maximum number of rows to read from the database MAY be recorded as the @code
  310. db.operation.parameter.max_rows @endcode attribute. <p>
  311. @code db.query.text @endcode parameters SHOULD be captured using @code db.query.parameter.<key>
  312. @endcode instead of @code db.operation.parameter.<key> @endcode.
  313. */
  314. static constexpr const char *kDbOperationParameter = "db.operation.parameter";
  315. /**
  316. A database query parameter, with @code <key> @endcode being the parameter name, and the attribute
  317. value being a string representation of the parameter value. <p> If a query parameter has no name
  318. and instead is referenced only by index, then @code <key> @endcode SHOULD be the 0-based index.
  319. <p>
  320. @code db.query.parameter.<key> @endcode SHOULD match
  321. up with the parameterized placeholders present in @code db.query.text @endcode.
  322. <p>
  323. @code db.query.parameter.<key> @endcode SHOULD NOT be captured on batch operations.
  324. <p>
  325. Examples:
  326. <ul>
  327. <li>For a query @code SELECT * FROM users where username = %s @endcode with the parameter @code
  328. "jdoe" @endcode, the attribute @code db.query.parameter.0 @endcode SHOULD be set to @code "jdoe"
  329. @endcode.</li> <li>For a query @code "SELECT * FROM users WHERE username = %(username)s; @endcode
  330. with parameter
  331. @code username = "jdoe" @endcode, the attribute @code db.query.parameter.username @endcode SHOULD
  332. be set to @code "jdoe" @endcode.</li>
  333. </ul>
  334. */
  335. static constexpr const char *kDbQueryParameter = "db.query.parameter";
  336. /**
  337. Low cardinality summary of a database query.
  338. <p>
  339. The query summary describes a class of database queries and is useful
  340. as a grouping key, especially when analyzing telemetry for database
  341. calls involving complex queries.
  342. <p>
  343. Summary may be available to the instrumentation through
  344. instrumentation hooks or other means. If it is not available, instrumentations
  345. that support query parsing SHOULD generate a summary following
  346. <a href="/docs/database/database-spans.md#generating-a-summary-of-the-query">Generating query
  347. summary</a> section.
  348. */
  349. static constexpr const char *kDbQuerySummary = "db.query.summary";
  350. /**
  351. The database query being executed.
  352. <p>
  353. For sanitization see <a
  354. href="/docs/database/database-spans.md#sanitization-of-dbquerytext">Sanitization of @code
  355. db.query.text @endcode</a>. For batch operations, if the individual operations are known to have
  356. the same query text then that query text SHOULD be used, otherwise all of the individual query
  357. texts SHOULD be concatenated with separator @code ; @endcode or some other database system
  358. specific separator if more applicable. Parameterized query text SHOULD NOT be sanitized. Even
  359. though parameterized query text can potentially have sensitive data, by using a parameterized
  360. query the user is giving a strong signal that any sensitive data will be passed as parameter
  361. values, and the benefit to observability of capturing the static part of the query text by default
  362. outweighs the risk.
  363. */
  364. static constexpr const char *kDbQueryText = "db.query.text";
  365. /**
  366. Deprecated, use @code db.namespace @endcode instead.
  367. @deprecated
  368. {"note": "Replaced by @code db.namespace @endcode.", "reason": "renamed", "renamed_to":
  369. "db.namespace"}
  370. */
  371. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbRedisDatabaseIndex =
  372. "db.redis.database_index";
  373. /**
  374. Number of rows returned by the operation.
  375. */
  376. static constexpr const char *kDbResponseReturnedRows = "db.response.returned_rows";
  377. /**
  378. Database response status code.
  379. <p>
  380. The status code returned by the database. Usually it represents an error code, but may also
  381. represent partial success, warning, or differentiate between various types of successful outcomes.
  382. Semantic conventions for individual database systems SHOULD document what @code
  383. db.response.status_code @endcode means in the context of that system.
  384. */
  385. static constexpr const char *kDbResponseStatusCode = "db.response.status_code";
  386. /**
  387. Deprecated, use @code db.collection.name @endcode instead.
  388. @deprecated
  389. {"note": "Replaced by @code db.collection.name @endcode, but only if not extracting the value from
  390. @code db.query.text @endcode.", "reason": "uncategorized"}
  391. */
  392. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbSqlTable = "db.sql.table";
  393. /**
  394. The database statement being executed.
  395. @deprecated
  396. {"note": "Replaced by @code db.query.text @endcode.", "reason": "renamed", "renamed_to":
  397. "db.query.text"}
  398. */
  399. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbStatement = "db.statement";
  400. /**
  401. The name of a stored procedure within the database.
  402. <p>
  403. It is RECOMMENDED to capture the value as provided by the application
  404. without attempting to do any case normalization.
  405. <p>
  406. For batch operations, if the individual operations are known to have the same
  407. stored procedure name then that stored procedure name SHOULD be used.
  408. */
  409. static constexpr const char *kDbStoredProcedureName = "db.stored_procedure.name";
  410. /**
  411. Deprecated, use @code db.system.name @endcode instead.
  412. @deprecated
  413. {"note": "Replaced by @code db.system.name @endcode.", "reason": "renamed", "renamed_to":
  414. "db.system.name"}
  415. */
  416. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbSystem = "db.system";
  417. /**
  418. The database management system (DBMS) product as identified by the client instrumentation.
  419. <p>
  420. The actual DBMS may differ from the one identified by the client. For example, when using
  421. PostgreSQL client libraries to connect to a CockroachDB, the @code db.system.name @endcode is set
  422. to @code postgresql @endcode based on the instrumentation's best knowledge.
  423. */
  424. static constexpr const char *kDbSystemName = "db.system.name";
  425. /**
  426. Deprecated, no replacement at this time.
  427. @deprecated
  428. {"note": "Removed, no replacement at this time.", "reason": "obsoleted"}
  429. */
  430. OPENTELEMETRY_DEPRECATED static constexpr const char *kDbUser = "db.user";
  431. namespace DbCassandraConsistencyLevelValues
  432. {
  433. /**
  434. none
  435. */
  436. static constexpr const char *kAll = "all";
  437. /**
  438. none
  439. */
  440. static constexpr const char *kEachQuorum = "each_quorum";
  441. /**
  442. none
  443. */
  444. static constexpr const char *kQuorum = "quorum";
  445. /**
  446. none
  447. */
  448. static constexpr const char *kLocalQuorum = "local_quorum";
  449. /**
  450. none
  451. */
  452. static constexpr const char *kOne = "one";
  453. /**
  454. none
  455. */
  456. static constexpr const char *kTwo = "two";
  457. /**
  458. none
  459. */
  460. static constexpr const char *kThree = "three";
  461. /**
  462. none
  463. */
  464. static constexpr const char *kLocalOne = "local_one";
  465. /**
  466. none
  467. */
  468. static constexpr const char *kAny = "any";
  469. /**
  470. none
  471. */
  472. static constexpr const char *kSerial = "serial";
  473. /**
  474. none
  475. */
  476. static constexpr const char *kLocalSerial = "local_serial";
  477. } // namespace DbCassandraConsistencyLevelValues
  478. namespace DbClientConnectionStateValues
  479. {
  480. /**
  481. none
  482. */
  483. static constexpr const char *kIdle = "idle";
  484. /**
  485. none
  486. */
  487. static constexpr const char *kUsed = "used";
  488. } // namespace DbClientConnectionStateValues
  489. namespace DbClientConnectionsStateValues
  490. {
  491. /**
  492. none
  493. */
  494. static constexpr const char *kIdle = "idle";
  495. /**
  496. none
  497. */
  498. static constexpr const char *kUsed = "used";
  499. } // namespace DbClientConnectionsStateValues
  500. namespace DbCosmosdbConnectionModeValues
  501. {
  502. /**
  503. Gateway (HTTP) connection.
  504. */
  505. static constexpr const char *kGateway = "gateway";
  506. /**
  507. Direct connection.
  508. */
  509. static constexpr const char *kDirect = "direct";
  510. } // namespace DbCosmosdbConnectionModeValues
  511. namespace DbCosmosdbConsistencyLevelValues
  512. {
  513. /**
  514. none
  515. */
  516. static constexpr const char *kStrong = "Strong";
  517. /**
  518. none
  519. */
  520. static constexpr const char *kBoundedStaleness = "BoundedStaleness";
  521. /**
  522. none
  523. */
  524. static constexpr const char *kSession = "Session";
  525. /**
  526. none
  527. */
  528. static constexpr const char *kEventual = "Eventual";
  529. /**
  530. none
  531. */
  532. static constexpr const char *kConsistentPrefix = "ConsistentPrefix";
  533. } // namespace DbCosmosdbConsistencyLevelValues
  534. namespace DbCosmosdbOperationTypeValues
  535. {
  536. /**
  537. none
  538. */
  539. static constexpr const char *kBatch = "batch";
  540. /**
  541. none
  542. */
  543. static constexpr const char *kCreate = "create";
  544. /**
  545. none
  546. */
  547. static constexpr const char *kDelete = "delete";
  548. /**
  549. none
  550. */
  551. static constexpr const char *kExecute = "execute";
  552. /**
  553. none
  554. */
  555. static constexpr const char *kExecuteJavascript = "execute_javascript";
  556. /**
  557. none
  558. */
  559. static constexpr const char *kInvalid = "invalid";
  560. /**
  561. none
  562. */
  563. static constexpr const char *kHead = "head";
  564. /**
  565. none
  566. */
  567. static constexpr const char *kHeadFeed = "head_feed";
  568. /**
  569. none
  570. */
  571. static constexpr const char *kPatch = "patch";
  572. /**
  573. none
  574. */
  575. static constexpr const char *kQuery = "query";
  576. /**
  577. none
  578. */
  579. static constexpr const char *kQueryPlan = "query_plan";
  580. /**
  581. none
  582. */
  583. static constexpr const char *kRead = "read";
  584. /**
  585. none
  586. */
  587. static constexpr const char *kReadFeed = "read_feed";
  588. /**
  589. none
  590. */
  591. static constexpr const char *kReplace = "replace";
  592. /**
  593. none
  594. */
  595. static constexpr const char *kUpsert = "upsert";
  596. } // namespace DbCosmosdbOperationTypeValues
  597. namespace DbSystemValues
  598. {
  599. /**
  600. Some other SQL database. Fallback only. See notes.
  601. */
  602. static constexpr const char *kOtherSql = "other_sql";
  603. /**
  604. Adabas (Adaptable Database System)
  605. */
  606. static constexpr const char *kAdabas = "adabas";
  607. /**
  608. Deprecated, use @code intersystems_cache @endcode instead.
  609. */
  610. static constexpr const char *kCache = "cache";
  611. /**
  612. InterSystems Caché
  613. */
  614. static constexpr const char *kIntersystemsCache = "intersystems_cache";
  615. /**
  616. Apache Cassandra
  617. */
  618. static constexpr const char *kCassandra = "cassandra";
  619. /**
  620. ClickHouse
  621. */
  622. static constexpr const char *kClickhouse = "clickhouse";
  623. /**
  624. Deprecated, use @code other_sql @endcode instead.
  625. */
  626. static constexpr const char *kCloudscape = "cloudscape";
  627. /**
  628. CockroachDB
  629. */
  630. static constexpr const char *kCockroachdb = "cockroachdb";
  631. /**
  632. Deprecated, no replacement at this time.
  633. */
  634. static constexpr const char *kColdfusion = "coldfusion";
  635. /**
  636. Microsoft Azure Cosmos DB
  637. */
  638. static constexpr const char *kCosmosdb = "cosmosdb";
  639. /**
  640. Couchbase
  641. */
  642. static constexpr const char *kCouchbase = "couchbase";
  643. /**
  644. CouchDB
  645. */
  646. static constexpr const char *kCouchdb = "couchdb";
  647. /**
  648. IBM Db2
  649. */
  650. static constexpr const char *kDb2 = "db2";
  651. /**
  652. Apache Derby
  653. */
  654. static constexpr const char *kDerby = "derby";
  655. /**
  656. Amazon DynamoDB
  657. */
  658. static constexpr const char *kDynamodb = "dynamodb";
  659. /**
  660. EnterpriseDB
  661. */
  662. static constexpr const char *kEdb = "edb";
  663. /**
  664. Elasticsearch
  665. */
  666. static constexpr const char *kElasticsearch = "elasticsearch";
  667. /**
  668. FileMaker
  669. */
  670. static constexpr const char *kFilemaker = "filemaker";
  671. /**
  672. Firebird
  673. */
  674. static constexpr const char *kFirebird = "firebird";
  675. /**
  676. Deprecated, use @code other_sql @endcode instead.
  677. */
  678. static constexpr const char *kFirstsql = "firstsql";
  679. /**
  680. Apache Geode
  681. */
  682. static constexpr const char *kGeode = "geode";
  683. /**
  684. H2
  685. */
  686. static constexpr const char *kH2 = "h2";
  687. /**
  688. SAP HANA
  689. */
  690. static constexpr const char *kHanadb = "hanadb";
  691. /**
  692. Apache HBase
  693. */
  694. static constexpr const char *kHbase = "hbase";
  695. /**
  696. Apache Hive
  697. */
  698. static constexpr const char *kHive = "hive";
  699. /**
  700. HyperSQL DataBase
  701. */
  702. static constexpr const char *kHsqldb = "hsqldb";
  703. /**
  704. InfluxDB
  705. */
  706. static constexpr const char *kInfluxdb = "influxdb";
  707. /**
  708. Informix
  709. */
  710. static constexpr const char *kInformix = "informix";
  711. /**
  712. Ingres
  713. */
  714. static constexpr const char *kIngres = "ingres";
  715. /**
  716. InstantDB
  717. */
  718. static constexpr const char *kInstantdb = "instantdb";
  719. /**
  720. InterBase
  721. */
  722. static constexpr const char *kInterbase = "interbase";
  723. /**
  724. MariaDB
  725. */
  726. static constexpr const char *kMariadb = "mariadb";
  727. /**
  728. SAP MaxDB
  729. */
  730. static constexpr const char *kMaxdb = "maxdb";
  731. /**
  732. Memcached
  733. */
  734. static constexpr const char *kMemcached = "memcached";
  735. /**
  736. MongoDB
  737. */
  738. static constexpr const char *kMongodb = "mongodb";
  739. /**
  740. Microsoft SQL Server
  741. */
  742. static constexpr const char *kMssql = "mssql";
  743. /**
  744. Deprecated, Microsoft SQL Server Compact is discontinued.
  745. */
  746. static constexpr const char *kMssqlcompact = "mssqlcompact";
  747. /**
  748. MySQL
  749. */
  750. static constexpr const char *kMysql = "mysql";
  751. /**
  752. Neo4j
  753. */
  754. static constexpr const char *kNeo4j = "neo4j";
  755. /**
  756. Netezza
  757. */
  758. static constexpr const char *kNetezza = "netezza";
  759. /**
  760. OpenSearch
  761. */
  762. static constexpr const char *kOpensearch = "opensearch";
  763. /**
  764. Oracle Database
  765. */
  766. static constexpr const char *kOracle = "oracle";
  767. /**
  768. Pervasive PSQL
  769. */
  770. static constexpr const char *kPervasive = "pervasive";
  771. /**
  772. PointBase
  773. */
  774. static constexpr const char *kPointbase = "pointbase";
  775. /**
  776. PostgreSQL
  777. */
  778. static constexpr const char *kPostgresql = "postgresql";
  779. /**
  780. Progress Database
  781. */
  782. static constexpr const char *kProgress = "progress";
  783. /**
  784. Redis
  785. */
  786. static constexpr const char *kRedis = "redis";
  787. /**
  788. Amazon Redshift
  789. */
  790. static constexpr const char *kRedshift = "redshift";
  791. /**
  792. Cloud Spanner
  793. */
  794. static constexpr const char *kSpanner = "spanner";
  795. /**
  796. SQLite
  797. */
  798. static constexpr const char *kSqlite = "sqlite";
  799. /**
  800. Sybase
  801. */
  802. static constexpr const char *kSybase = "sybase";
  803. /**
  804. Teradata
  805. */
  806. static constexpr const char *kTeradata = "teradata";
  807. /**
  808. Trino
  809. */
  810. static constexpr const char *kTrino = "trino";
  811. /**
  812. Vertica
  813. */
  814. static constexpr const char *kVertica = "vertica";
  815. } // namespace DbSystemValues
  816. namespace DbSystemNameValues
  817. {
  818. /**
  819. Some other SQL database. Fallback only.
  820. */
  821. static constexpr const char *kOtherSql = "other_sql";
  822. /**
  823. <a href="https://documentation.softwareag.com/?pf=adabas">Adabas (Adaptable Database System)</a>
  824. */
  825. static constexpr const char *kSoftwareagAdabas = "softwareag.adabas";
  826. /**
  827. <a href="https://www.actian.com/databases/ingres/">Actian Ingres</a>
  828. */
  829. static constexpr const char *kActianIngres = "actian.ingres";
  830. /**
  831. <a href="https://aws.amazon.com/pm/dynamodb/">Amazon DynamoDB</a>
  832. */
  833. static constexpr const char *kAwsDynamodb = "aws.dynamodb";
  834. /**
  835. <a href="https://aws.amazon.com/redshift/">Amazon Redshift</a>
  836. */
  837. static constexpr const char *kAwsRedshift = "aws.redshift";
  838. /**
  839. <a href="https://learn.microsoft.com/azure/cosmos-db">Azure Cosmos DB</a>
  840. */
  841. static constexpr const char *kAzureCosmosdb = "azure.cosmosdb";
  842. /**
  843. <a href="https://www.intersystems.com/products/cache/">InterSystems Caché</a>
  844. */
  845. static constexpr const char *kIntersystemsCache = "intersystems.cache";
  846. /**
  847. <a href="https://cassandra.apache.org/">Apache Cassandra</a>
  848. */
  849. static constexpr const char *kCassandra = "cassandra";
  850. /**
  851. <a href="https://clickhouse.com/">ClickHouse</a>
  852. */
  853. static constexpr const char *kClickhouse = "clickhouse";
  854. /**
  855. <a href="https://www.cockroachlabs.com/">CockroachDB</a>
  856. */
  857. static constexpr const char *kCockroachdb = "cockroachdb";
  858. /**
  859. <a href="https://www.couchbase.com/">Couchbase</a>
  860. */
  861. static constexpr const char *kCouchbase = "couchbase";
  862. /**
  863. <a href="https://couchdb.apache.org/">Apache CouchDB</a>
  864. */
  865. static constexpr const char *kCouchdb = "couchdb";
  866. /**
  867. <a href="https://db.apache.org/derby/">Apache Derby</a>
  868. */
  869. static constexpr const char *kDerby = "derby";
  870. /**
  871. <a href="https://www.elastic.co/elasticsearch">Elasticsearch</a>
  872. */
  873. static constexpr const char *kElasticsearch = "elasticsearch";
  874. /**
  875. <a href="https://www.firebirdsql.org/">Firebird</a>
  876. */
  877. static constexpr const char *kFirebirdsql = "firebirdsql";
  878. /**
  879. <a href="https://cloud.google.com/spanner">Google Cloud Spanner</a>
  880. */
  881. static constexpr const char *kGcpSpanner = "gcp.spanner";
  882. /**
  883. <a href="https://geode.apache.org/">Apache Geode</a>
  884. */
  885. static constexpr const char *kGeode = "geode";
  886. /**
  887. <a href="https://h2database.com/">H2 Database</a>
  888. */
  889. static constexpr const char *kH2database = "h2database";
  890. /**
  891. <a href="https://hbase.apache.org/">Apache HBase</a>
  892. */
  893. static constexpr const char *kHbase = "hbase";
  894. /**
  895. <a href="https://hive.apache.org/">Apache Hive</a>
  896. */
  897. static constexpr const char *kHive = "hive";
  898. /**
  899. <a href="https://hsqldb.org/">HyperSQL Database</a>
  900. */
  901. static constexpr const char *kHsqldb = "hsqldb";
  902. /**
  903. <a href="https://www.ibm.com/db2">IBM Db2</a>
  904. */
  905. static constexpr const char *kIbmDb2 = "ibm.db2";
  906. /**
  907. <a href="https://www.ibm.com/products/informix">IBM Informix</a>
  908. */
  909. static constexpr const char *kIbmInformix = "ibm.informix";
  910. /**
  911. <a href="https://www.ibm.com/products/netezza">IBM Netezza</a>
  912. */
  913. static constexpr const char *kIbmNetezza = "ibm.netezza";
  914. /**
  915. <a href="https://www.influxdata.com/">InfluxDB</a>
  916. */
  917. static constexpr const char *kInfluxdb = "influxdb";
  918. /**
  919. <a href="https://www.instantdb.com/">Instant</a>
  920. */
  921. static constexpr const char *kInstantdb = "instantdb";
  922. /**
  923. <a href="https://mariadb.org/">MariaDB</a>
  924. */
  925. static constexpr const char *kMariadb = "mariadb";
  926. /**
  927. <a href="https://memcached.org/">Memcached</a>
  928. */
  929. static constexpr const char *kMemcached = "memcached";
  930. /**
  931. <a href="https://www.mongodb.com/">MongoDB</a>
  932. */
  933. static constexpr const char *kMongodb = "mongodb";
  934. /**
  935. <a href="https://www.microsoft.com/sql-server">Microsoft SQL Server</a>
  936. */
  937. static constexpr const char *kMicrosoftSqlServer = "microsoft.sql_server";
  938. /**
  939. <a href="https://www.mysql.com/">MySQL</a>
  940. */
  941. static constexpr const char *kMysql = "mysql";
  942. /**
  943. <a href="https://neo4j.com/">Neo4j</a>
  944. */
  945. static constexpr const char *kNeo4j = "neo4j";
  946. /**
  947. <a href="https://opensearch.org/">OpenSearch</a>
  948. */
  949. static constexpr const char *kOpensearch = "opensearch";
  950. /**
  951. <a href="https://www.oracle.com/database/">Oracle Database</a>
  952. */
  953. static constexpr const char *kOracleDb = "oracle.db";
  954. /**
  955. <a href="https://www.postgresql.org/">PostgreSQL</a>
  956. */
  957. static constexpr const char *kPostgresql = "postgresql";
  958. /**
  959. <a href="https://redis.io/">Redis</a>
  960. */
  961. static constexpr const char *kRedis = "redis";
  962. /**
  963. <a href="https://www.sap.com/products/technology-platform/hana/what-is-sap-hana.html">SAP HANA</a>
  964. */
  965. static constexpr const char *kSapHana = "sap.hana";
  966. /**
  967. <a href="https://maxdb.sap.com/">SAP MaxDB</a>
  968. */
  969. static constexpr const char *kSapMaxdb = "sap.maxdb";
  970. /**
  971. <a href="https://www.sqlite.org/">SQLite</a>
  972. */
  973. static constexpr const char *kSqlite = "sqlite";
  974. /**
  975. <a href="https://www.teradata.com/">Teradata</a>
  976. */
  977. static constexpr const char *kTeradata = "teradata";
  978. /**
  979. <a href="https://trino.io/">Trino</a>
  980. */
  981. static constexpr const char *kTrino = "trino";
  982. } // namespace DbSystemNameValues
  983. } // namespace db
  984. } // namespace semconv
  985. OPENTELEMETRY_END_NAMESPACE