opentelemetry-semantic_conventions 1.11.0 → 1.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (239) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +2 -2
  3. data/CHANGELOG.md +4 -0
  4. data/lib/opentelemetry/semantic_conventions/resource.rb +258 -4
  5. data/lib/opentelemetry/semantic_conventions/trace.rb +432 -5
  6. data/lib/opentelemetry/semantic_conventions/version.rb +1 -1
  7. data/lib/opentelemetry/semantic_conventions.rb +13 -1
  8. data/lib/opentelemetry/semconv/aspnetcore/attributes.rb +97 -0
  9. data/lib/opentelemetry/semconv/aspnetcore/metrics.rb +83 -0
  10. data/lib/opentelemetry/semconv/aspnetcore.rb +22 -0
  11. data/lib/opentelemetry/semconv/client/attributes.rb +53 -0
  12. data/lib/opentelemetry/semconv/client.rb +21 -0
  13. data/lib/opentelemetry/semconv/code/attributes.rb +92 -0
  14. data/lib/opentelemetry/semconv/code.rb +21 -0
  15. data/lib/opentelemetry/semconv/db/attributes.rb +174 -0
  16. data/lib/opentelemetry/semconv/db/metrics.rb +36 -0
  17. data/lib/opentelemetry/semconv/db.rb +22 -0
  18. data/lib/opentelemetry/semconv/dotnet/attributes.rb +40 -0
  19. data/lib/opentelemetry/semconv/dotnet/metrics.rb +181 -0
  20. data/lib/opentelemetry/semconv/dotnet.rb +22 -0
  21. data/lib/opentelemetry/semconv/error/attributes.rb +61 -0
  22. data/lib/opentelemetry/semconv/error.rb +21 -0
  23. data/lib/opentelemetry/semconv/exception/attributes.rb +64 -0
  24. data/lib/opentelemetry/semconv/exception.rb +21 -0
  25. data/lib/opentelemetry/semconv/http/attributes.rb +164 -0
  26. data/lib/opentelemetry/semconv/http/metrics.rb +39 -0
  27. data/lib/opentelemetry/semconv/http.rb +22 -0
  28. data/lib/opentelemetry/semconv/incubating/android/attributes.rb +58 -0
  29. data/lib/opentelemetry/semconv/incubating/android.rb +21 -0
  30. data/lib/opentelemetry/semconv/incubating/app/attributes.rb +103 -0
  31. data/lib/opentelemetry/semconv/incubating/app.rb +21 -0
  32. data/lib/opentelemetry/semconv/incubating/artifact/attributes.rb +117 -0
  33. data/lib/opentelemetry/semconv/incubating/artifact.rb +21 -0
  34. data/lib/opentelemetry/semconv/incubating/aspnetcore/attributes.rb +113 -0
  35. data/lib/opentelemetry/semconv/incubating/aspnetcore/metrics.rb +99 -0
  36. data/lib/opentelemetry/semconv/incubating/aspnetcore.rb +22 -0
  37. data/lib/opentelemetry/semconv/incubating/aws/attributes.rb +551 -0
  38. data/lib/opentelemetry/semconv/incubating/aws.rb +21 -0
  39. data/lib/opentelemetry/semconv/incubating/az/attributes.rb +53 -0
  40. data/lib/opentelemetry/semconv/incubating/az.rb +21 -0
  41. data/lib/opentelemetry/semconv/incubating/azure/attributes.rb +115 -0
  42. data/lib/opentelemetry/semconv/incubating/azure/metrics.rb +41 -0
  43. data/lib/opentelemetry/semconv/incubating/azure.rb +22 -0
  44. data/lib/opentelemetry/semconv/incubating/browser/attributes.rb +77 -0
  45. data/lib/opentelemetry/semconv/incubating/browser.rb +21 -0
  46. data/lib/opentelemetry/semconv/incubating/cassandra/attributes.rb +78 -0
  47. data/lib/opentelemetry/semconv/incubating/cassandra.rb +21 -0
  48. data/lib/opentelemetry/semconv/incubating/cicd/attributes.rb +201 -0
  49. data/lib/opentelemetry/semconv/incubating/cicd/metrics.rb +61 -0
  50. data/lib/opentelemetry/semconv/incubating/cicd.rb +22 -0
  51. data/lib/opentelemetry/semconv/incubating/client/attributes.rb +59 -0
  52. data/lib/opentelemetry/semconv/incubating/client.rb +21 -0
  53. data/lib/opentelemetry/semconv/incubating/cloud/attributes.rb +105 -0
  54. data/lib/opentelemetry/semconv/incubating/cloud.rb +21 -0
  55. data/lib/opentelemetry/semconv/incubating/cloudevents/attributes.rb +80 -0
  56. data/lib/opentelemetry/semconv/incubating/cloudevents.rb +21 -0
  57. data/lib/opentelemetry/semconv/incubating/cloudfoundry/attributes.rb +190 -0
  58. data/lib/opentelemetry/semconv/incubating/cloudfoundry.rb +21 -0
  59. data/lib/opentelemetry/semconv/incubating/code/attributes.rb +155 -0
  60. data/lib/opentelemetry/semconv/incubating/code.rb +21 -0
  61. data/lib/opentelemetry/semconv/incubating/container/attributes.rb +197 -0
  62. data/lib/opentelemetry/semconv/incubating/container/metrics.rb +74 -0
  63. data/lib/opentelemetry/semconv/incubating/container.rb +22 -0
  64. data/lib/opentelemetry/semconv/incubating/cpu/attributes.rb +50 -0
  65. data/lib/opentelemetry/semconv/incubating/cpu/metrics.rb +49 -0
  66. data/lib/opentelemetry/semconv/incubating/cpu.rb +22 -0
  67. data/lib/opentelemetry/semconv/incubating/cpython/attributes.rb +42 -0
  68. data/lib/opentelemetry/semconv/incubating/cpython/metrics.rb +52 -0
  69. data/lib/opentelemetry/semconv/incubating/cpython.rb +22 -0
  70. data/lib/opentelemetry/semconv/incubating/db/attributes.rb +615 -0
  71. data/lib/opentelemetry/semconv/incubating/db/metrics.rb +156 -0
  72. data/lib/opentelemetry/semconv/incubating/db.rb +22 -0
  73. data/lib/opentelemetry/semconv/incubating/deployment/attributes.rb +84 -0
  74. data/lib/opentelemetry/semconv/incubating/deployment.rb +21 -0
  75. data/lib/opentelemetry/semconv/incubating/destination/attributes.rb +54 -0
  76. data/lib/opentelemetry/semconv/incubating/destination.rb +21 -0
  77. data/lib/opentelemetry/semconv/incubating/device/attributes.rb +88 -0
  78. data/lib/opentelemetry/semconv/incubating/device.rb +21 -0
  79. data/lib/opentelemetry/semconv/incubating/disk/attributes.rb +40 -0
  80. data/lib/opentelemetry/semconv/incubating/disk.rb +21 -0
  81. data/lib/opentelemetry/semconv/incubating/dns/attributes.rb +52 -0
  82. data/lib/opentelemetry/semconv/incubating/dns/metrics.rb +36 -0
  83. data/lib/opentelemetry/semconv/incubating/dns.rb +22 -0
  84. data/lib/opentelemetry/semconv/incubating/dotnet/attributes.rb +44 -0
  85. data/lib/opentelemetry/semconv/incubating/dotnet/metrics.rb +221 -0
  86. data/lib/opentelemetry/semconv/incubating/dotnet.rb +22 -0
  87. data/lib/opentelemetry/semconv/incubating/elasticsearch/attributes.rb +40 -0
  88. data/lib/opentelemetry/semconv/incubating/elasticsearch.rb +21 -0
  89. data/lib/opentelemetry/semconv/incubating/enduser/attributes.rb +79 -0
  90. data/lib/opentelemetry/semconv/incubating/enduser.rb +21 -0
  91. data/lib/opentelemetry/semconv/incubating/error/attributes.rb +81 -0
  92. data/lib/opentelemetry/semconv/incubating/error.rb +21 -0
  93. data/lib/opentelemetry/semconv/incubating/event/attributes.rb +42 -0
  94. data/lib/opentelemetry/semconv/incubating/event.rb +21 -0
  95. data/lib/opentelemetry/semconv/incubating/exception/attributes.rb +73 -0
  96. data/lib/opentelemetry/semconv/incubating/exception.rb +21 -0
  97. data/lib/opentelemetry/semconv/incubating/faas/attributes.rb +200 -0
  98. data/lib/opentelemetry/semconv/incubating/faas/metrics.rb +76 -0
  99. data/lib/opentelemetry/semconv/incubating/faas.rb +22 -0
  100. data/lib/opentelemetry/semconv/incubating/feature_flag/attributes.rb +159 -0
  101. data/lib/opentelemetry/semconv/incubating/feature_flag.rb +21 -0
  102. data/lib/opentelemetry/semconv/incubating/file/attributes.rb +207 -0
  103. data/lib/opentelemetry/semconv/incubating/file.rb +21 -0
  104. data/lib/opentelemetry/semconv/incubating/gcp/attributes.rb +159 -0
  105. data/lib/opentelemetry/semconv/incubating/gcp.rb +21 -0
  106. data/lib/opentelemetry/semconv/incubating/gen_ai/attributes.rb +404 -0
  107. data/lib/opentelemetry/semconv/incubating/gen_ai/metrics.rb +56 -0
  108. data/lib/opentelemetry/semconv/incubating/gen_ai.rb +22 -0
  109. data/lib/opentelemetry/semconv/incubating/geo/attributes.rb +91 -0
  110. data/lib/opentelemetry/semconv/incubating/geo.rb +21 -0
  111. data/lib/opentelemetry/semconv/incubating/go/attributes.rb +41 -0
  112. data/lib/opentelemetry/semconv/incubating/go/metrics.rb +94 -0
  113. data/lib/opentelemetry/semconv/incubating/go.rb +22 -0
  114. data/lib/opentelemetry/semconv/incubating/graphql/attributes.rb +62 -0
  115. data/lib/opentelemetry/semconv/incubating/graphql.rb +21 -0
  116. data/lib/opentelemetry/semconv/incubating/heroku/attributes.rb +58 -0
  117. data/lib/opentelemetry/semconv/incubating/heroku.rb +21 -0
  118. data/lib/opentelemetry/semconv/incubating/host/attributes.rb +172 -0
  119. data/lib/opentelemetry/semconv/incubating/host.rb +21 -0
  120. data/lib/opentelemetry/semconv/incubating/http/attributes.rb +366 -0
  121. data/lib/opentelemetry/semconv/incubating/http/metrics.rb +93 -0
  122. data/lib/opentelemetry/semconv/incubating/http.rb +22 -0
  123. data/lib/opentelemetry/semconv/incubating/hw/attributes.rb +70 -0
  124. data/lib/opentelemetry/semconv/incubating/hw/metrics.rb +79 -0
  125. data/lib/opentelemetry/semconv/incubating/hw.rb +22 -0
  126. data/lib/opentelemetry/semconv/incubating/ios/attributes.rb +44 -0
  127. data/lib/opentelemetry/semconv/incubating/ios.rb +21 -0
  128. data/lib/opentelemetry/semconv/incubating/jvm/attributes.rb +129 -0
  129. data/lib/opentelemetry/semconv/incubating/jvm/metrics.rb +162 -0
  130. data/lib/opentelemetry/semconv/incubating/jvm.rb +22 -0
  131. data/lib/opentelemetry/semconv/incubating/k8s/attributes.rb +910 -0
  132. data/lib/opentelemetry/semconv/incubating/k8s/metrics.rb +658 -0
  133. data/lib/opentelemetry/semconv/incubating/k8s.rb +22 -0
  134. data/lib/opentelemetry/semconv/incubating/kestrel/metrics.rb +106 -0
  135. data/lib/opentelemetry/semconv/incubating/kestrel.rb +21 -0
  136. data/lib/opentelemetry/semconv/incubating/linux/attributes.rb +41 -0
  137. data/lib/opentelemetry/semconv/incubating/linux.rb +21 -0
  138. data/lib/opentelemetry/semconv/incubating/log/attributes.rb +96 -0
  139. data/lib/opentelemetry/semconv/incubating/log.rb +21 -0
  140. data/lib/opentelemetry/semconv/incubating/mainframe/attributes.rb +40 -0
  141. data/lib/opentelemetry/semconv/incubating/mainframe.rb +21 -0
  142. data/lib/opentelemetry/semconv/incubating/message/attributes.rb +55 -0
  143. data/lib/opentelemetry/semconv/incubating/message.rb +21 -0
  144. data/lib/opentelemetry/semconv/incubating/messaging/attributes.rb +451 -0
  145. data/lib/opentelemetry/semconv/incubating/messaging/metrics.rb +96 -0
  146. data/lib/opentelemetry/semconv/incubating/messaging.rb +22 -0
  147. data/lib/opentelemetry/semconv/incubating/net/attributes.rb +175 -0
  148. data/lib/opentelemetry/semconv/incubating/net.rb +21 -0
  149. data/lib/opentelemetry/semconv/incubating/network/attributes.rb +222 -0
  150. data/lib/opentelemetry/semconv/incubating/network.rb +21 -0
  151. data/lib/opentelemetry/semconv/incubating/nodejs/attributes.rb +36 -0
  152. data/lib/opentelemetry/semconv/incubating/nodejs/metrics.rb +94 -0
  153. data/lib/opentelemetry/semconv/incubating/nodejs.rb +22 -0
  154. data/lib/opentelemetry/semconv/incubating/oci/attributes.rb +43 -0
  155. data/lib/opentelemetry/semconv/incubating/oci.rb +21 -0
  156. data/lib/opentelemetry/semconv/incubating/opentracing/attributes.rb +38 -0
  157. data/lib/opentelemetry/semconv/incubating/opentracing.rb +21 -0
  158. data/lib/opentelemetry/semconv/incubating/os/attributes.rb +78 -0
  159. data/lib/opentelemetry/semconv/incubating/os.rb +21 -0
  160. data/lib/opentelemetry/semconv/incubating/otel/attributes.rb +138 -0
  161. data/lib/opentelemetry/semconv/incubating/otel/metrics.rb +194 -0
  162. data/lib/opentelemetry/semconv/incubating/otel.rb +22 -0
  163. data/lib/opentelemetry/semconv/incubating/other/attributes.rb +41 -0
  164. data/lib/opentelemetry/semconv/incubating/other.rb +21 -0
  165. data/lib/opentelemetry/semconv/incubating/peer/attributes.rb +40 -0
  166. data/lib/opentelemetry/semconv/incubating/peer.rb +21 -0
  167. data/lib/opentelemetry/semconv/incubating/pool/attributes.rb +41 -0
  168. data/lib/opentelemetry/semconv/incubating/pool.rb +21 -0
  169. data/lib/opentelemetry/semconv/incubating/process/attributes.rb +367 -0
  170. data/lib/opentelemetry/semconv/incubating/process/metrics.rb +89 -0
  171. data/lib/opentelemetry/semconv/incubating/process.rb +22 -0
  172. data/lib/opentelemetry/semconv/incubating/profile/attributes.rb +40 -0
  173. data/lib/opentelemetry/semconv/incubating/profile.rb +21 -0
  174. data/lib/opentelemetry/semconv/incubating/rpc/attributes.rb +215 -0
  175. data/lib/opentelemetry/semconv/incubating/rpc/metrics.rb +115 -0
  176. data/lib/opentelemetry/semconv/incubating/rpc.rb +22 -0
  177. data/lib/opentelemetry/semconv/incubating/security_rule/attributes.rb +106 -0
  178. data/lib/opentelemetry/semconv/incubating/security_rule.rb +21 -0
  179. data/lib/opentelemetry/semconv/incubating/server/attributes.rb +61 -0
  180. data/lib/opentelemetry/semconv/incubating/server.rb +21 -0
  181. data/lib/opentelemetry/semconv/incubating/service/attributes.rb +103 -0
  182. data/lib/opentelemetry/semconv/incubating/service.rb +21 -0
  183. data/lib/opentelemetry/semconv/incubating/session/attributes.rb +49 -0
  184. data/lib/opentelemetry/semconv/incubating/session.rb +21 -0
  185. data/lib/opentelemetry/semconv/incubating/signalr/attributes.rb +55 -0
  186. data/lib/opentelemetry/semconv/incubating/signalr/metrics.rb +49 -0
  187. data/lib/opentelemetry/semconv/incubating/signalr.rb +22 -0
  188. data/lib/opentelemetry/semconv/incubating/source/attributes.rb +54 -0
  189. data/lib/opentelemetry/semconv/incubating/source.rb +21 -0
  190. data/lib/opentelemetry/semconv/incubating/system/attributes.rb +162 -0
  191. data/lib/opentelemetry/semconv/incubating/system/metrics.rb +227 -0
  192. data/lib/opentelemetry/semconv/incubating/system.rb +22 -0
  193. data/lib/opentelemetry/semconv/incubating/telemetry/attributes.rb +88 -0
  194. data/lib/opentelemetry/semconv/incubating/telemetry.rb +21 -0
  195. data/lib/opentelemetry/semconv/incubating/test/attributes.rb +75 -0
  196. data/lib/opentelemetry/semconv/incubating/test.rb +21 -0
  197. data/lib/opentelemetry/semconv/incubating/thread/attributes.rb +49 -0
  198. data/lib/opentelemetry/semconv/incubating/thread.rb +21 -0
  199. data/lib/opentelemetry/semconv/incubating/tls/attributes.rb +293 -0
  200. data/lib/opentelemetry/semconv/incubating/tls.rb +21 -0
  201. data/lib/opentelemetry/semconv/incubating/url/attributes.rb +225 -0
  202. data/lib/opentelemetry/semconv/incubating/url.rb +21 -0
  203. data/lib/opentelemetry/semconv/incubating/user/attributes.rb +87 -0
  204. data/lib/opentelemetry/semconv/incubating/user.rb +21 -0
  205. data/lib/opentelemetry/semconv/incubating/user_agent/attributes.rb +100 -0
  206. data/lib/opentelemetry/semconv/incubating/user_agent.rb +21 -0
  207. data/lib/opentelemetry/semconv/incubating/v8js/attributes.rb +43 -0
  208. data/lib/opentelemetry/semconv/incubating/v8js/metrics.rb +66 -0
  209. data/lib/opentelemetry/semconv/incubating/v8js.rb +22 -0
  210. data/lib/opentelemetry/semconv/incubating/vcs/attributes.rb +303 -0
  211. data/lib/opentelemetry/semconv/incubating/vcs/metrics.rb +88 -0
  212. data/lib/opentelemetry/semconv/incubating/vcs.rb +22 -0
  213. data/lib/opentelemetry/semconv/incubating/webengine/attributes.rb +58 -0
  214. data/lib/opentelemetry/semconv/incubating/webengine.rb +21 -0
  215. data/lib/opentelemetry/semconv/incubating/zos/attributes.rb +49 -0
  216. data/lib/opentelemetry/semconv/incubating/zos.rb +21 -0
  217. data/lib/opentelemetry/semconv/jvm/attributes.rb +91 -0
  218. data/lib/opentelemetry/semconv/jvm/metrics.rb +91 -0
  219. data/lib/opentelemetry/semconv/jvm.rb +22 -0
  220. data/lib/opentelemetry/semconv/kestrel/metrics.rb +88 -0
  221. data/lib/opentelemetry/semconv/kestrel.rb +21 -0
  222. data/lib/opentelemetry/semconv/network/attributes.rb +120 -0
  223. data/lib/opentelemetry/semconv/network.rb +21 -0
  224. data/lib/opentelemetry/semconv/otel/attributes.rb +61 -0
  225. data/lib/opentelemetry/semconv/otel.rb +21 -0
  226. data/lib/opentelemetry/semconv/server/attributes.rb +55 -0
  227. data/lib/opentelemetry/semconv/server.rb +21 -0
  228. data/lib/opentelemetry/semconv/service/attributes.rb +50 -0
  229. data/lib/opentelemetry/semconv/service.rb +21 -0
  230. data/lib/opentelemetry/semconv/signalr/attributes.rb +49 -0
  231. data/lib/opentelemetry/semconv/signalr/metrics.rb +43 -0
  232. data/lib/opentelemetry/semconv/signalr.rb +22 -0
  233. data/lib/opentelemetry/semconv/telemetry/attributes.rb +59 -0
  234. data/lib/opentelemetry/semconv/telemetry.rb +21 -0
  235. data/lib/opentelemetry/semconv/url/attributes.rb +118 -0
  236. data/lib/opentelemetry/semconv/url.rb +21 -0
  237. data/lib/opentelemetry/semconv/user_agent/attributes.rb +40 -0
  238. data/lib/opentelemetry/semconv/user_agent.rb +21 -0
  239. metadata +249 -4
@@ -0,0 +1,615 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright The OpenTelemetry Authors
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+ #
17
+ # SPDX-License-Identifier: Apache-2.0
18
+ #
19
+ # This file was autogenerated. Do not edit it by hand.
20
+
21
+ module OpenTelemetry
22
+ module SemConv
23
+ module Incubating
24
+ module DB
25
+ # @!group Attribute Names
26
+
27
+ # Deprecated, use `cassandra.consistency.level` instead.
28
+ #
29
+ # @note Stability Level: development
30
+ # @deprecated {"note": "Replaced by `cassandra.consistency.level`.", "reason": "renamed", "renamed_to": "cassandra.consistency.level"}
31
+ DB_CASSANDRA_CONSISTENCY_LEVEL = 'db.cassandra.consistency_level'
32
+
33
+ # Deprecated, use `cassandra.coordinator.dc` instead.
34
+ #
35
+ # @note Stability Level: development
36
+ #
37
+ # @example Sample Values
38
+ # us-west-2
39
+ #
40
+ # @deprecated {"note": "Replaced by `cassandra.coordinator.dc`.", "reason": "renamed", "renamed_to": "cassandra.coordinator.dc"}
41
+ DB_CASSANDRA_COORDINATOR_DC = 'db.cassandra.coordinator.dc'
42
+
43
+ # Deprecated, use `cassandra.coordinator.id` instead.
44
+ #
45
+ # @note Stability Level: development
46
+ #
47
+ # @example Sample Values
48
+ # be13faa2-8574-4d71-926d-27f16cf8a7af
49
+ #
50
+ # @deprecated {"note": "Replaced by `cassandra.coordinator.id`.", "reason": "renamed", "renamed_to": "cassandra.coordinator.id"}
51
+ DB_CASSANDRA_COORDINATOR_ID = 'db.cassandra.coordinator.id'
52
+
53
+ # Deprecated, use `cassandra.query.idempotent` instead.
54
+ #
55
+ # @note Stability Level: development
56
+ # @deprecated {"note": "Replaced by `cassandra.query.idempotent`.", "reason": "renamed", "renamed_to": "cassandra.query.idempotent"}
57
+ DB_CASSANDRA_IDEMPOTENCE = 'db.cassandra.idempotence'
58
+
59
+ # Deprecated, use `cassandra.page.size` instead.
60
+ #
61
+ # @note Stability Level: development
62
+ #
63
+ # @example Sample Values
64
+ # 5000
65
+ #
66
+ # @deprecated {"note": "Replaced by `cassandra.page.size`.", "reason": "renamed", "renamed_to": "cassandra.page.size"}
67
+ DB_CASSANDRA_PAGE_SIZE = 'db.cassandra.page_size'
68
+
69
+ # Deprecated, use `cassandra.speculative_execution.count` instead.
70
+ #
71
+ # @note Stability Level: development
72
+ #
73
+ # @example Sample Values
74
+ # 0
75
+ # 2
76
+ #
77
+ # @deprecated {"note": "Replaced by `cassandra.speculative_execution.count`.", "reason": "renamed", "renamed_to": "cassandra.speculative_execution.count"}
78
+ DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT = 'db.cassandra.speculative_execution_count'
79
+
80
+ # Deprecated, use `db.collection.name` instead.
81
+ #
82
+ # @note Stability Level: development
83
+ #
84
+ # @example Sample Values
85
+ # mytable
86
+ #
87
+ # @deprecated {"note": "Replaced by `db.collection.name`.", "reason": "renamed", "renamed_to": "db.collection.name"}
88
+ DB_CASSANDRA_TABLE = 'db.cassandra.table'
89
+
90
+ # The name of the connection pool; unique within the instrumented application. In case the connection pool implementation doesn't provide a name, instrumentation SHOULD use a combination of parameters that would make the name unique, for example, combining attributes `server.address`, `server.port`, and `db.namespace`, formatted as `server.address:server.port/db.namespace`. Instrumentations that generate connection pool name following different patterns SHOULD document it.
91
+ #
92
+ # @note Stability Level: development
93
+ #
94
+ # @example Sample Values
95
+ # myDataSource
96
+ #
97
+ DB_CLIENT_CONNECTION_POOL_NAME = 'db.client.connection.pool.name'
98
+
99
+ # The state of a connection in the pool
100
+ #
101
+ # @note Stability Level: development
102
+ #
103
+ # @example Sample Values
104
+ # idle
105
+ #
106
+ DB_CLIENT_CONNECTION_STATE = 'db.client.connection.state'
107
+
108
+ # Deprecated, use `db.client.connection.pool.name` instead.
109
+ #
110
+ # @note Stability Level: development
111
+ #
112
+ # @example Sample Values
113
+ # myDataSource
114
+ #
115
+ # @deprecated {"note": "Replaced by `db.client.connection.pool.name`.", "reason": "renamed", "renamed_to": "db.client.connection.pool.name"}
116
+ DB_CLIENT_CONNECTIONS_POOL_NAME = 'db.client.connections.pool.name'
117
+
118
+ # Deprecated, use `db.client.connection.state` instead.
119
+ #
120
+ # @note Stability Level: development
121
+ #
122
+ # @example Sample Values
123
+ # idle
124
+ #
125
+ # @deprecated {"note": "Replaced by `db.client.connection.state`.", "reason": "renamed", "renamed_to": "db.client.connection.state"}
126
+ DB_CLIENT_CONNECTIONS_STATE = 'db.client.connections.state'
127
+
128
+ # The name of a collection (table, container) within the database.
129
+ #
130
+ # It is RECOMMENDED to capture the value as provided by the application
131
+ # without attempting to do any case normalization.
132
+ #
133
+ # The collection name SHOULD NOT be extracted from `db.query.text`,
134
+ # when the database system supports query text with multiple collections
135
+ # in non-batch operations.
136
+ #
137
+ # For batch operations, if the individual operations are known to have the same
138
+ # collection name then that collection name SHOULD be used.
139
+ #
140
+ # @note Stability Level: stable
141
+ #
142
+ # @example Sample Values
143
+ # public.users
144
+ # customers
145
+ #
146
+ #
147
+ # @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::DB::DB_COLLECTION_NAME}.
148
+ DB_COLLECTION_NAME = 'db.collection.name'
149
+
150
+ # Deprecated, use `server.address`, `server.port` attributes instead.
151
+ #
152
+ # @note Stability Level: development
153
+ #
154
+ # @example Sample Values
155
+ # Server=(localdb)\v11.0;Integrated Security=true;
156
+ #
157
+ # @deprecated {"note": "Replaced by `server.address` and `server.port`.\n", "reason": "uncategorized"}
158
+ DB_CONNECTION_STRING = 'db.connection_string'
159
+
160
+ # Deprecated, use `azure.client.id` instead.
161
+ #
162
+ # @note Stability Level: development
163
+ #
164
+ # @example Sample Values
165
+ # 3ba4827d-4422-483f-b59f-85b74211c11d
166
+ #
167
+ # @deprecated {"note": "Replaced by `azure.client.id`.", "reason": "renamed", "renamed_to": "azure.client.id"}
168
+ DB_COSMOSDB_CLIENT_ID = 'db.cosmosdb.client_id'
169
+
170
+ # Deprecated, use `azure.cosmosdb.connection.mode` instead.
171
+ #
172
+ # @note Stability Level: development
173
+ # @deprecated {"note": "Replaced by `azure.cosmosdb.connection.mode`.", "reason": "renamed", "renamed_to": "azure.cosmosdb.connection.mode"}
174
+ DB_COSMOSDB_CONNECTION_MODE = 'db.cosmosdb.connection_mode'
175
+
176
+ # Deprecated, use `cosmosdb.consistency.level` instead.
177
+ #
178
+ # @note Stability Level: development
179
+ #
180
+ # @example Sample Values
181
+ # Eventual
182
+ # ConsistentPrefix
183
+ # BoundedStaleness
184
+ # Strong
185
+ # Session
186
+ #
187
+ # @deprecated {"note": "Replaced by `azure.cosmosdb.consistency.level`.", "reason": "renamed", "renamed_to": "azure.cosmosdb.consistency.level"}
188
+ DB_COSMOSDB_CONSISTENCY_LEVEL = 'db.cosmosdb.consistency_level'
189
+
190
+ # Deprecated, use `db.collection.name` instead.
191
+ #
192
+ # @note Stability Level: development
193
+ #
194
+ # @example Sample Values
195
+ # mytable
196
+ #
197
+ # @deprecated {"note": "Replaced by `db.collection.name`.", "reason": "renamed", "renamed_to": "db.collection.name"}
198
+ DB_COSMOSDB_CONTAINER = 'db.cosmosdb.container'
199
+
200
+ # Deprecated, no replacement at this time.
201
+ #
202
+ # @note Stability Level: development
203
+ # @deprecated {"note": "Removed, no replacement at this time.\n", "reason": "obsoleted"}
204
+ DB_COSMOSDB_OPERATION_TYPE = 'db.cosmosdb.operation_type'
205
+
206
+ # Deprecated, use `azure.cosmosdb.operation.contacted_regions` instead.
207
+ #
208
+ # @note Stability Level: development
209
+ #
210
+ # @example Sample Values
211
+ # ["North Central US", "Australia East", "Australia Southeast"]
212
+ #
213
+ # @deprecated {"note": "Replaced by `azure.cosmosdb.operation.contacted_regions`.", "reason": "renamed", "renamed_to": "azure.cosmosdb.operation.contacted_regions"}
214
+ DB_COSMOSDB_REGIONS_CONTACTED = 'db.cosmosdb.regions_contacted'
215
+
216
+ # Deprecated, use `azure.cosmosdb.operation.request_charge` instead.
217
+ #
218
+ # @note Stability Level: development
219
+ #
220
+ # @example Sample Values
221
+ # 46.18
222
+ # 1.0
223
+ #
224
+ # @deprecated {"note": "Replaced by `azure.cosmosdb.operation.request_charge`.", "reason": "renamed", "renamed_to": "azure.cosmosdb.operation.request_charge"}
225
+ DB_COSMOSDB_REQUEST_CHARGE = 'db.cosmosdb.request_charge'
226
+
227
+ # Deprecated, use `azure.cosmosdb.request.body.size` instead.
228
+ #
229
+ # @note Stability Level: development
230
+ # @deprecated {"note": "Replaced by `azure.cosmosdb.request.body.size`.", "reason": "renamed", "renamed_to": "azure.cosmosdb.request.body.size"}
231
+ DB_COSMOSDB_REQUEST_CONTENT_LENGTH = 'db.cosmosdb.request_content_length'
232
+
233
+ # Deprecated, use `db.response.status_code` instead.
234
+ #
235
+ # @note Stability Level: development
236
+ #
237
+ # @example Sample Values
238
+ # 200
239
+ # 201
240
+ #
241
+ # @deprecated {"note": "Replaced by `db.response.status_code`.", "reason": "renamed", "renamed_to": "db.response.status_code"}
242
+ DB_COSMOSDB_STATUS_CODE = 'db.cosmosdb.status_code'
243
+
244
+ # Deprecated, use `azure.cosmosdb.response.sub_status_code` instead.
245
+ #
246
+ # @note Stability Level: development
247
+ #
248
+ # @example Sample Values
249
+ # 1000
250
+ # 1002
251
+ #
252
+ # @deprecated {"note": "Replaced by `azure.cosmosdb.response.sub_status_code`.", "reason": "renamed", "renamed_to": "azure.cosmosdb.response.sub_status_code"}
253
+ DB_COSMOSDB_SUB_STATUS_CODE = 'db.cosmosdb.sub_status_code'
254
+
255
+ # Deprecated, use `db.namespace` instead.
256
+ #
257
+ # @note Stability Level: development
258
+ #
259
+ # @example Sample Values
260
+ # e9106fc68e3044f0b1475b04bf4ffd5f
261
+ #
262
+ # @deprecated {"note": "Replaced by `db.namespace`.", "reason": "renamed", "renamed_to": "db.namespace"}
263
+ DB_ELASTICSEARCH_CLUSTER_NAME = 'db.elasticsearch.cluster.name'
264
+
265
+ # Deprecated, use `elasticsearch.node.name` instead.
266
+ #
267
+ # @note Stability Level: development
268
+ #
269
+ # @example Sample Values
270
+ # instance-0000000001
271
+ #
272
+ # @deprecated {"note": "Replaced by `elasticsearch.node.name`.", "reason": "renamed", "renamed_to": "elasticsearch.node.name"}
273
+ DB_ELASTICSEARCH_NODE_NAME = 'db.elasticsearch.node.name'
274
+
275
+ # Must be called with a key for the full attribute name. See notes below about the expectations
276
+ # for the state of the key.
277
+ #
278
+ # @example Usage
279
+ # DB_ELASTICSEARCH_PATH_PARTS_LAMBDA.call('some-cool-key') #=> 'db.elasticsearch.path_parts.some-cool-key'
280
+ #
281
+ # Deprecated, use `db.operation.parameter` instead.
282
+ #
283
+ # @note Stability Level: development
284
+ #
285
+ # @example Sample Values
286
+ # test-index
287
+ # 123
288
+ #
289
+ # @deprecated {"note": "Replaced by `db.operation.parameter`.", "reason": "renamed", "renamed_to": "db.operation.parameter"}
290
+ DB_ELASTICSEARCH_PATH_PARTS_LAMBDA = ->(key) { "db.elasticsearch.path_parts.#{key}" }
291
+
292
+ # Deprecated, no general replacement at this time. For Elasticsearch, use `db.elasticsearch.node.name` instead.
293
+ #
294
+ # @note Stability Level: development
295
+ #
296
+ # @example Sample Values
297
+ # mysql-e26b99z.example.com
298
+ #
299
+ # @deprecated {"note": "Removed, no general replacement at this time. For Elasticsearch, use `db.elasticsearch.node.name` instead.\n", "reason": "obsoleted"}
300
+ DB_INSTANCE_ID = 'db.instance.id'
301
+
302
+ # Removed, no replacement at this time.
303
+ #
304
+ # @note Stability Level: development
305
+ #
306
+ # @example Sample Values
307
+ # org.postgresql.Driver
308
+ # com.microsoft.sqlserver.jdbc.SQLServerDriver
309
+ #
310
+ # @deprecated {"note": "Removed, no replacement at this time.\n", "reason": "obsoleted"}
311
+ DB_JDBC_DRIVER_CLASSNAME = 'db.jdbc.driver_classname'
312
+
313
+ # Deprecated, use `db.collection.name` instead.
314
+ #
315
+ # @note Stability Level: development
316
+ #
317
+ # @example Sample Values
318
+ # mytable
319
+ #
320
+ # @deprecated {"note": "Replaced by `db.collection.name`.", "reason": "renamed", "renamed_to": "db.collection.name"}
321
+ DB_MONGODB_COLLECTION = 'db.mongodb.collection'
322
+
323
+ # Deprecated, SQL Server instance is now populated as a part of `db.namespace` attribute.
324
+ #
325
+ # @note Stability Level: development
326
+ #
327
+ # @example Sample Values
328
+ # MSSQLSERVER
329
+ #
330
+ # @deprecated {"note": "Removed, no replacement at this time.", "reason": "obsoleted"}
331
+ DB_MSSQL_INSTANCE_NAME = 'db.mssql.instance_name'
332
+
333
+ # Deprecated, use `db.namespace` instead.
334
+ #
335
+ # @note Stability Level: development
336
+ #
337
+ # @example Sample Values
338
+ # customers
339
+ # main
340
+ #
341
+ # @deprecated {"note": "Replaced by `db.namespace`.", "reason": "renamed", "renamed_to": "db.namespace"}
342
+ DB_NAME = 'db.name'
343
+
344
+ # The name of the database, fully qualified within the server address and port.
345
+ #
346
+ # If a database system has multiple namespace components, they SHOULD be concatenated from the most general to the most specific namespace component, using `|` as a separator between the components. Any missing components (and their associated separators) SHOULD be omitted.
347
+ # Semantic conventions for individual database systems SHOULD document what `db.namespace` means in the context of that system.
348
+ # It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization.
349
+ #
350
+ # @note Stability Level: stable
351
+ #
352
+ # @example Sample Values
353
+ # customers
354
+ # test.users
355
+ #
356
+ #
357
+ # @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::DB::DB_NAMESPACE}.
358
+ DB_NAMESPACE = 'db.namespace'
359
+
360
+ # Deprecated, use `db.operation.name` instead.
361
+ #
362
+ # @note Stability Level: development
363
+ #
364
+ # @example Sample Values
365
+ # findAndModify
366
+ # HMSET
367
+ # SELECT
368
+ #
369
+ # @deprecated {"note": "Replaced by `db.operation.name`.", "reason": "renamed", "renamed_to": "db.operation.name"}
370
+ DB_OPERATION = 'db.operation'
371
+
372
+ # The number of queries included in a batch operation.
373
+ #
374
+ # Operations are only considered batches when they contain two or more operations, and so `db.operation.batch.size` SHOULD never be `1`.
375
+ #
376
+ # @note Stability Level: stable
377
+ #
378
+ # @example Sample Values
379
+ # 2
380
+ # 3
381
+ # 4
382
+ #
383
+ #
384
+ # @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::DB::DB_OPERATION_BATCH_SIZE}.
385
+ DB_OPERATION_BATCH_SIZE = 'db.operation.batch.size'
386
+
387
+ # The name of the operation or command being executed.
388
+ #
389
+ # It is RECOMMENDED to capture the value as provided by the application
390
+ # without attempting to do any case normalization.
391
+ #
392
+ # The operation name SHOULD NOT be extracted from `db.query.text`,
393
+ # when the database system supports query text with multiple operations
394
+ # in non-batch operations.
395
+ #
396
+ # If spaces can occur in the operation name, multiple consecutive spaces
397
+ # SHOULD be normalized to a single space.
398
+ #
399
+ # For batch operations, if the individual operations are known to have the same operation name
400
+ # then that operation name SHOULD be used prepended by `BATCH `,
401
+ # otherwise `db.operation.name` SHOULD be `BATCH` or some other database
402
+ # system specific term if more applicable.
403
+ #
404
+ # @note Stability Level: stable
405
+ #
406
+ # @example Sample Values
407
+ # findAndModify
408
+ # HMSET
409
+ # SELECT
410
+ #
411
+ #
412
+ # @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::DB::DB_OPERATION_NAME}.
413
+ DB_OPERATION_NAME = 'db.operation.name'
414
+
415
+ # Must be called with a key for the full attribute name. See notes below about the expectations
416
+ # for the state of the key.
417
+ #
418
+ # @example Usage
419
+ # DB_OPERATION_PARAMETER_LAMBDA.call('some-cool-key') #=> 'db.operation.parameter.some-cool-key'
420
+ #
421
+ # A database operation parameter, with `<key>` being the parameter name, and the attribute value being a string representation of the parameter value.
422
+ #
423
+ # For example, a client-side maximum number of rows to read from the database
424
+ # MAY be recorded as the `db.operation.parameter.max_rows` attribute.
425
+ #
426
+ # `db.query.text` parameters SHOULD be captured using `db.query.parameter.<key>`
427
+ # instead of `db.operation.parameter.<key>`.
428
+ #
429
+ # @note Stability Level: development
430
+ #
431
+ # @example Sample Values
432
+ # someval
433
+ # 55
434
+ #
435
+ DB_OPERATION_PARAMETER_LAMBDA = ->(key) { "db.operation.parameter.#{key}" }
436
+
437
+ # Must be called with a key for the full attribute name. See notes below about the expectations
438
+ # for the state of the key.
439
+ #
440
+ # @example Usage
441
+ # DB_QUERY_PARAMETER_LAMBDA.call('some-cool-key') #=> 'db.query.parameter.some-cool-key'
442
+ #
443
+ # A database query parameter, with `<key>` being the parameter name, and the attribute value being a string representation of the parameter value.
444
+ #
445
+ # If a query parameter has no name and instead is referenced only by index,
446
+ # then `<key>` SHOULD be the 0-based index.
447
+ #
448
+ # `db.query.parameter.<key>` SHOULD match
449
+ # up with the parameterized placeholders present in `db.query.text`.
450
+ #
451
+ # `db.query.parameter.<key>` SHOULD NOT be captured on batch operations.
452
+ #
453
+ # Examples:
454
+ #
455
+ # - For a query `SELECT * FROM users where username = %s` with the parameter `"jdoe"`,
456
+ # the attribute `db.query.parameter.0` SHOULD be set to `"jdoe"`.
457
+ # - For a query `"SELECT * FROM users WHERE username = %(username)s;` with parameter
458
+ # `username = "jdoe"`, the attribute `db.query.parameter.username` SHOULD be set to `"jdoe"`.
459
+ #
460
+ # @note Stability Level: development
461
+ #
462
+ # @example Sample Values
463
+ # someval
464
+ # 55
465
+ #
466
+ DB_QUERY_PARAMETER_LAMBDA = ->(key) { "db.query.parameter.#{key}" }
467
+
468
+ # Low cardinality summary of a database query.
469
+ #
470
+ # The query summary describes a class of database queries and is useful
471
+ # as a grouping key, especially when analyzing telemetry for database
472
+ # calls involving complex queries.
473
+ #
474
+ # Summary may be available to the instrumentation through
475
+ # instrumentation hooks or other means. If it is not available, instrumentations
476
+ # that support query parsing SHOULD generate a summary following
477
+ # [Generating query summary](/docs/database/database-spans.md#generating-a-summary-of-the-query)
478
+ # section.
479
+ #
480
+ # @note Stability Level: stable
481
+ #
482
+ # @example Sample Values
483
+ # SELECT wuser_table
484
+ # INSERT shipping_details SELECT orders
485
+ # get user by id
486
+ #
487
+ #
488
+ # @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::DB::DB_QUERY_SUMMARY}.
489
+ DB_QUERY_SUMMARY = 'db.query.summary'
490
+
491
+ # The database query being executed.
492
+ #
493
+ # For sanitization see [Sanitization of `db.query.text`](/docs/database/database-spans.md#sanitization-of-dbquerytext).
494
+ # For batch operations, if the individual operations are known to have the same query text then that query text SHOULD be used, otherwise all of the individual query texts SHOULD be concatenated with separator `; ` or some other database system specific separator if more applicable.
495
+ # Parameterized query text SHOULD NOT be sanitized. Even though parameterized query text can potentially have sensitive data, by using a parameterized query the user is giving a strong signal that any sensitive data will be passed as parameter values, and the benefit to observability of capturing the static part of the query text by default outweighs the risk.
496
+ #
497
+ # @note Stability Level: stable
498
+ #
499
+ # @example Sample Values
500
+ # SELECT * FROM wuser_table where username = ?
501
+ # SET mykey ?
502
+ #
503
+ #
504
+ # @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::DB::DB_QUERY_TEXT}.
505
+ DB_QUERY_TEXT = 'db.query.text'
506
+
507
+ # Deprecated, use `db.namespace` instead.
508
+ #
509
+ # @note Stability Level: development
510
+ #
511
+ # @example Sample Values
512
+ # 0
513
+ # 1
514
+ # 15
515
+ #
516
+ # @deprecated {"note": "Replaced by `db.namespace`.", "reason": "renamed", "renamed_to": "db.namespace"}
517
+ DB_REDIS_DATABASE_INDEX = 'db.redis.database_index'
518
+
519
+ # Number of rows returned by the operation.
520
+ #
521
+ # @note Stability Level: development
522
+ #
523
+ # @example Sample Values
524
+ # 10
525
+ # 30
526
+ # 1000
527
+ #
528
+ DB_RESPONSE_RETURNED_ROWS = 'db.response.returned_rows'
529
+
530
+ # Database response status code.
531
+ #
532
+ # The status code returned by the database. Usually it represents an error code, but may also represent partial success, warning, or differentiate between various types of successful outcomes.
533
+ # Semantic conventions for individual database systems SHOULD document what `db.response.status_code` means in the context of that system.
534
+ #
535
+ # @note Stability Level: stable
536
+ #
537
+ # @example Sample Values
538
+ # 102
539
+ # ORA-17002
540
+ # 08P01
541
+ # 404
542
+ #
543
+ #
544
+ # @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::DB::DB_RESPONSE_STATUS_CODE}.
545
+ DB_RESPONSE_STATUS_CODE = 'db.response.status_code'
546
+
547
+ # Deprecated, use `db.collection.name` instead.
548
+ #
549
+ # @note Stability Level: development
550
+ #
551
+ # @example Sample Values
552
+ # mytable
553
+ #
554
+ # @deprecated {"note": "Replaced by `db.collection.name`, but only if not extracting the value from `db.query.text`.", "reason": "uncategorized"}
555
+ DB_SQL_TABLE = 'db.sql.table'
556
+
557
+ # The database statement being executed.
558
+ #
559
+ # @note Stability Level: development
560
+ #
561
+ # @example Sample Values
562
+ # SELECT * FROM wuser_table
563
+ # SET mykey "WuValue"
564
+ #
565
+ # @deprecated {"note": "Replaced by `db.query.text`.", "reason": "renamed", "renamed_to": "db.query.text"}
566
+ DB_STATEMENT = 'db.statement'
567
+
568
+ # The name of a stored procedure within the database.
569
+ #
570
+ # It is RECOMMENDED to capture the value as provided by the application
571
+ # without attempting to do any case normalization.
572
+ #
573
+ # For batch operations, if the individual operations are known to have the same
574
+ # stored procedure name then that stored procedure name SHOULD be used.
575
+ #
576
+ # @note Stability Level: stable
577
+ #
578
+ # @example Sample Values
579
+ # GetCustomer
580
+ #
581
+ #
582
+ # @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::DB::DB_STORED_PROCEDURE_NAME}.
583
+ DB_STORED_PROCEDURE_NAME = 'db.stored_procedure.name'
584
+
585
+ # Deprecated, use `db.system.name` instead.
586
+ #
587
+ # @note Stability Level: development
588
+ # @deprecated {"note": "Replaced by `db.system.name`.", "reason": "renamed", "renamed_to": "db.system.name"}
589
+ DB_SYSTEM = 'db.system'
590
+
591
+ # The database management system (DBMS) product as identified by the client instrumentation.
592
+ #
593
+ # The actual DBMS may differ from the one identified by the client. For example, when using PostgreSQL client libraries to connect to a CockroachDB, the `db.system.name` is set to `postgresql` based on the instrumentation's best knowledge.
594
+ #
595
+ # @note Stability Level: stable
596
+ #
597
+ # @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::DB::DB_SYSTEM_NAME}.
598
+ DB_SYSTEM_NAME = 'db.system.name'
599
+
600
+ # Deprecated, no replacement at this time.
601
+ #
602
+ # @note Stability Level: development
603
+ #
604
+ # @example Sample Values
605
+ # readonly_user
606
+ # reporting_user
607
+ #
608
+ # @deprecated {"note": "Removed, no replacement at this time.", "reason": "obsoleted"}
609
+ DB_USER = 'db.user'
610
+
611
+ # @!endgroup
612
+ end
613
+ end
614
+ end
615
+ end