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,451 @@
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 MESSAGING
25
+ # @!group Attribute Names
26
+
27
+ # The number of messages sent, received, or processed in the scope of the batching operation.
28
+ #
29
+ # Instrumentations SHOULD NOT set `messaging.batch.message_count` on spans that operate with a single message. When a messaging client library supports both batch and single-message API for the same operation, instrumentations SHOULD use `messaging.batch.message_count` for batching APIs and SHOULD NOT use it for single-message APIs.
30
+ #
31
+ # @note Stability Level: development
32
+ #
33
+ # @example Sample Values
34
+ # 0
35
+ # 1
36
+ # 2
37
+ #
38
+ MESSAGING_BATCH_MESSAGE_COUNT = 'messaging.batch.message_count'
39
+
40
+ # A unique identifier for the client that consumes or produces a message.
41
+ #
42
+ # @note Stability Level: development
43
+ #
44
+ # @example Sample Values
45
+ # client-5
46
+ # myhost@8742@s8083jm
47
+ #
48
+ MESSAGING_CLIENT_ID = 'messaging.client.id'
49
+
50
+ # The name of the consumer group with which a consumer is associated.
51
+ #
52
+ # Semantic conventions for individual messaging systems SHOULD document whether `messaging.consumer.group.name` is applicable and what it means in the context of that system.
53
+ #
54
+ # @note Stability Level: development
55
+ #
56
+ # @example Sample Values
57
+ # my-group
58
+ # indexer
59
+ #
60
+ MESSAGING_CONSUMER_GROUP_NAME = 'messaging.consumer.group.name'
61
+
62
+ # A boolean that is true if the message destination is anonymous (could be unnamed or have auto-generated name).
63
+ #
64
+ # @note Stability Level: development
65
+ MESSAGING_DESTINATION_ANONYMOUS = 'messaging.destination.anonymous'
66
+
67
+ # The message destination name
68
+ #
69
+ # Destination name SHOULD uniquely identify a specific queue, topic or other entity within the broker. If
70
+ # the broker doesn't have such notion, the destination name SHOULD uniquely identify the broker.
71
+ #
72
+ # @note Stability Level: development
73
+ #
74
+ # @example Sample Values
75
+ # MyQueue
76
+ # MyTopic
77
+ #
78
+ MESSAGING_DESTINATION_NAME = 'messaging.destination.name'
79
+
80
+ # The identifier of the partition messages are sent to or received from, unique within the `messaging.destination.name`.
81
+ #
82
+ # @note Stability Level: development
83
+ #
84
+ # @example Sample Values
85
+ # 1
86
+ #
87
+ MESSAGING_DESTINATION_PARTITION_ID = 'messaging.destination.partition.id'
88
+
89
+ # The name of the destination subscription from which a message is consumed.
90
+ #
91
+ # Semantic conventions for individual messaging systems SHOULD document whether `messaging.destination.subscription.name` is applicable and what it means in the context of that system.
92
+ #
93
+ # @note Stability Level: development
94
+ #
95
+ # @example Sample Values
96
+ # subscription-a
97
+ #
98
+ MESSAGING_DESTINATION_SUBSCRIPTION_NAME = 'messaging.destination.subscription.name'
99
+
100
+ # Low cardinality representation of the messaging destination name
101
+ #
102
+ # Destination names could be constructed from templates. An example would be a destination name involving a user name or product id. Although the destination name in this case is of high cardinality, the underlying template is of low cardinality and can be effectively used for grouping and aggregation.
103
+ #
104
+ # @note Stability Level: development
105
+ #
106
+ # @example Sample Values
107
+ # /customers/{customerId}
108
+ #
109
+ MESSAGING_DESTINATION_TEMPLATE = 'messaging.destination.template'
110
+
111
+ # A boolean that is true if the message destination is temporary and might not exist anymore after messages are processed.
112
+ #
113
+ # @note Stability Level: development
114
+ MESSAGING_DESTINATION_TEMPORARY = 'messaging.destination.temporary'
115
+
116
+ # Deprecated, no replacement at this time.
117
+ #
118
+ # @note Stability Level: development
119
+ # @deprecated {"note": "Removed. No replacement at this time.", "reason": "obsoleted"}
120
+ MESSAGING_DESTINATION_PUBLISH_ANONYMOUS = 'messaging.destination_publish.anonymous'
121
+
122
+ # Deprecated, no replacement at this time.
123
+ #
124
+ # @note Stability Level: development
125
+ #
126
+ # @example Sample Values
127
+ # MyQueue
128
+ # MyTopic
129
+ #
130
+ # @deprecated {"note": "Removed. No replacement at this time.", "reason": "obsoleted"}
131
+ MESSAGING_DESTINATION_PUBLISH_NAME = 'messaging.destination_publish.name'
132
+
133
+ # Deprecated, use `messaging.consumer.group.name` instead.
134
+ #
135
+ # @note Stability Level: development
136
+ #
137
+ # @example Sample Values
138
+ # $Default
139
+ #
140
+ # @deprecated {"note": "Replaced by `messaging.consumer.group.name`.", "reason": "renamed", "renamed_to": "messaging.consumer.group.name"}
141
+ MESSAGING_EVENTHUBS_CONSUMER_GROUP = 'messaging.eventhubs.consumer.group'
142
+
143
+ # The UTC epoch seconds at which the message has been accepted and stored in the entity.
144
+ #
145
+ # @note Stability Level: development
146
+ #
147
+ # @example Sample Values
148
+ # 1701393730
149
+ #
150
+ MESSAGING_EVENTHUBS_MESSAGE_ENQUEUED_TIME = 'messaging.eventhubs.message.enqueued_time'
151
+
152
+ # The ack deadline in seconds set for the modify ack deadline request.
153
+ #
154
+ # @note Stability Level: development
155
+ #
156
+ # @example Sample Values
157
+ # 10
158
+ #
159
+ MESSAGING_GCP_PUBSUB_MESSAGE_ACK_DEADLINE = 'messaging.gcp_pubsub.message.ack_deadline'
160
+
161
+ # The ack id for a given message.
162
+ #
163
+ # @note Stability Level: development
164
+ #
165
+ # @example Sample Values
166
+ # ack_id
167
+ #
168
+ MESSAGING_GCP_PUBSUB_MESSAGE_ACK_ID = 'messaging.gcp_pubsub.message.ack_id'
169
+
170
+ # The delivery attempt for a given message.
171
+ #
172
+ # @note Stability Level: development
173
+ #
174
+ # @example Sample Values
175
+ # 2
176
+ #
177
+ MESSAGING_GCP_PUBSUB_MESSAGE_DELIVERY_ATTEMPT = 'messaging.gcp_pubsub.message.delivery_attempt'
178
+
179
+ # The ordering key for a given message. If the attribute is not present, the message does not have an ordering key.
180
+ #
181
+ # @note Stability Level: development
182
+ #
183
+ # @example Sample Values
184
+ # ordering_key
185
+ #
186
+ MESSAGING_GCP_PUBSUB_MESSAGE_ORDERING_KEY = 'messaging.gcp_pubsub.message.ordering_key'
187
+
188
+ # Deprecated, use `messaging.consumer.group.name` instead.
189
+ #
190
+ # @note Stability Level: development
191
+ #
192
+ # @example Sample Values
193
+ # my-group
194
+ #
195
+ # @deprecated {"note": "Replaced by `messaging.consumer.group.name`.", "reason": "renamed", "renamed_to": "messaging.consumer.group.name"}
196
+ MESSAGING_KAFKA_CONSUMER_GROUP = 'messaging.kafka.consumer.group'
197
+
198
+ # Deprecated, use `messaging.destination.partition.id` instead.
199
+ #
200
+ # @note Stability Level: development
201
+ #
202
+ # @example Sample Values
203
+ # 2
204
+ #
205
+ # @deprecated {"note": "Replaced by `messaging.destination.partition.id`.", "reason": "renamed", "renamed_to": "messaging.destination.partition.id"}
206
+ MESSAGING_KAFKA_DESTINATION_PARTITION = 'messaging.kafka.destination.partition'
207
+
208
+ # Message keys in Kafka are used for grouping alike messages to ensure they're processed on the same partition. They differ from `messaging.message.id` in that they're not unique. If the key is `null`, the attribute MUST NOT be set.
209
+ #
210
+ # If the key type is not string, it's string representation has to be supplied for the attribute. If the key has no unambiguous, canonical string form, don't include its value.
211
+ #
212
+ # @note Stability Level: development
213
+ #
214
+ # @example Sample Values
215
+ # myKey
216
+ #
217
+ MESSAGING_KAFKA_MESSAGE_KEY = 'messaging.kafka.message.key'
218
+
219
+ # Deprecated, use `messaging.kafka.offset` instead.
220
+ #
221
+ # @note Stability Level: development
222
+ #
223
+ # @example Sample Values
224
+ # 42
225
+ #
226
+ # @deprecated {"note": "Replaced by `messaging.kafka.offset`.", "reason": "renamed", "renamed_to": "messaging.kafka.offset"}
227
+ MESSAGING_KAFKA_MESSAGE_OFFSET = 'messaging.kafka.message.offset'
228
+
229
+ # A boolean that is true if the message is a tombstone.
230
+ #
231
+ # @note Stability Level: development
232
+ MESSAGING_KAFKA_MESSAGE_TOMBSTONE = 'messaging.kafka.message.tombstone'
233
+
234
+ # The offset of a record in the corresponding Kafka partition.
235
+ #
236
+ # @note Stability Level: development
237
+ #
238
+ # @example Sample Values
239
+ # 42
240
+ #
241
+ MESSAGING_KAFKA_OFFSET = 'messaging.kafka.offset'
242
+
243
+ # The size of the message body in bytes.
244
+ #
245
+ # This can refer to both the compressed or uncompressed body size. If both sizes are known, the uncompressed
246
+ # body size should be used.
247
+ #
248
+ # @note Stability Level: development
249
+ #
250
+ # @example Sample Values
251
+ # 1439
252
+ #
253
+ MESSAGING_MESSAGE_BODY_SIZE = 'messaging.message.body.size'
254
+
255
+ # The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID".
256
+ #
257
+ # @note Stability Level: development
258
+ #
259
+ # @example Sample Values
260
+ # MyConversationId
261
+ #
262
+ MESSAGING_MESSAGE_CONVERSATION_ID = 'messaging.message.conversation_id'
263
+
264
+ # The size of the message body and metadata in bytes.
265
+ #
266
+ # This can refer to both the compressed or uncompressed size. If both sizes are known, the uncompressed
267
+ # size should be used.
268
+ #
269
+ # @note Stability Level: development
270
+ #
271
+ # @example Sample Values
272
+ # 2738
273
+ #
274
+ MESSAGING_MESSAGE_ENVELOPE_SIZE = 'messaging.message.envelope.size'
275
+
276
+ # A value used by the messaging system as an identifier for the message, represented as a string.
277
+ #
278
+ # @note Stability Level: development
279
+ #
280
+ # @example Sample Values
281
+ # 452a7c7c7c7048c2f887f61572b18fc2
282
+ #
283
+ MESSAGING_MESSAGE_ID = 'messaging.message.id'
284
+
285
+ # Deprecated, use `messaging.operation.type` instead.
286
+ #
287
+ # @note Stability Level: development
288
+ #
289
+ # @example Sample Values
290
+ # publish
291
+ # create
292
+ # process
293
+ #
294
+ # @deprecated {"note": "Replaced by `messaging.operation.type`.", "reason": "renamed", "renamed_to": "messaging.operation.type"}
295
+ MESSAGING_OPERATION = 'messaging.operation'
296
+
297
+ # The system-specific name of the messaging operation.
298
+ #
299
+ # @note Stability Level: development
300
+ #
301
+ # @example Sample Values
302
+ # ack
303
+ # nack
304
+ # send
305
+ #
306
+ MESSAGING_OPERATION_NAME = 'messaging.operation.name'
307
+
308
+ # A string identifying the type of the messaging operation.
309
+ #
310
+ # If a custom value is used, it MUST be of low cardinality.
311
+ #
312
+ # @note Stability Level: development
313
+ MESSAGING_OPERATION_TYPE = 'messaging.operation.type'
314
+
315
+ # RabbitMQ message routing key.
316
+ #
317
+ # @note Stability Level: development
318
+ #
319
+ # @example Sample Values
320
+ # myKey
321
+ #
322
+ MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY = 'messaging.rabbitmq.destination.routing_key'
323
+
324
+ # RabbitMQ message delivery tag
325
+ #
326
+ # @note Stability Level: development
327
+ #
328
+ # @example Sample Values
329
+ # 123
330
+ #
331
+ MESSAGING_RABBITMQ_MESSAGE_DELIVERY_TAG = 'messaging.rabbitmq.message.delivery_tag'
332
+
333
+ # Deprecated, use `messaging.consumer.group.name` instead.
334
+ #
335
+ # @note Stability Level: development
336
+ #
337
+ # @example Sample Values
338
+ # myConsumerGroup
339
+ #
340
+ # @deprecated {"note": "Replaced by `messaging.consumer.group.name` on the consumer spans. No replacement for producer spans.\n", "reason": "uncategorized"}
341
+ MESSAGING_ROCKETMQ_CLIENT_GROUP = 'messaging.rocketmq.client_group'
342
+
343
+ # Model of message consumption. This only applies to consumer spans.
344
+ #
345
+ # @note Stability Level: development
346
+ MESSAGING_ROCKETMQ_CONSUMPTION_MODEL = 'messaging.rocketmq.consumption_model'
347
+
348
+ # The delay time level for delay message, which determines the message delay time.
349
+ #
350
+ # @note Stability Level: development
351
+ #
352
+ # @example Sample Values
353
+ # 3
354
+ #
355
+ MESSAGING_ROCKETMQ_MESSAGE_DELAY_TIME_LEVEL = 'messaging.rocketmq.message.delay_time_level'
356
+
357
+ # The timestamp in milliseconds that the delay message is expected to be delivered to consumer.
358
+ #
359
+ # @note Stability Level: development
360
+ #
361
+ # @example Sample Values
362
+ # 1665987217045
363
+ #
364
+ MESSAGING_ROCKETMQ_MESSAGE_DELIVERY_TIMESTAMP = 'messaging.rocketmq.message.delivery_timestamp'
365
+
366
+ # It is essential for FIFO message. Messages that belong to the same message group are always processed one by one within the same consumer group.
367
+ #
368
+ # @note Stability Level: development
369
+ #
370
+ # @example Sample Values
371
+ # myMessageGroup
372
+ #
373
+ MESSAGING_ROCKETMQ_MESSAGE_GROUP = 'messaging.rocketmq.message.group'
374
+
375
+ # Key(s) of message, another way to mark message besides message id.
376
+ #
377
+ # @note Stability Level: development
378
+ #
379
+ # @example Sample Values
380
+ # ["keyA", "keyB"]
381
+ #
382
+ MESSAGING_ROCKETMQ_MESSAGE_KEYS = 'messaging.rocketmq.message.keys'
383
+
384
+ # The secondary classifier of message besides topic.
385
+ #
386
+ # @note Stability Level: development
387
+ #
388
+ # @example Sample Values
389
+ # tagA
390
+ #
391
+ MESSAGING_ROCKETMQ_MESSAGE_TAG = 'messaging.rocketmq.message.tag'
392
+
393
+ # Type of message.
394
+ #
395
+ # @note Stability Level: development
396
+ MESSAGING_ROCKETMQ_MESSAGE_TYPE = 'messaging.rocketmq.message.type'
397
+
398
+ # Namespace of RocketMQ resources, resources in different namespaces are individual.
399
+ #
400
+ # @note Stability Level: development
401
+ #
402
+ # @example Sample Values
403
+ # myNamespace
404
+ #
405
+ MESSAGING_ROCKETMQ_NAMESPACE = 'messaging.rocketmq.namespace'
406
+
407
+ # Deprecated, use `messaging.destination.subscription.name` instead.
408
+ #
409
+ # @note Stability Level: development
410
+ #
411
+ # @example Sample Values
412
+ # subscription-a
413
+ #
414
+ # @deprecated {"note": "Replaced by `messaging.destination.subscription.name`.", "reason": "renamed", "renamed_to": "messaging.destination.subscription.name"}
415
+ MESSAGING_SERVICEBUS_DESTINATION_SUBSCRIPTION_NAME = 'messaging.servicebus.destination.subscription_name'
416
+
417
+ # Describes the [settlement type](https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock).
418
+ #
419
+ # @note Stability Level: development
420
+ MESSAGING_SERVICEBUS_DISPOSITION_STATUS = 'messaging.servicebus.disposition_status'
421
+
422
+ # Number of deliveries that have been attempted for this message.
423
+ #
424
+ # @note Stability Level: development
425
+ #
426
+ # @example Sample Values
427
+ # 2
428
+ #
429
+ MESSAGING_SERVICEBUS_MESSAGE_DELIVERY_COUNT = 'messaging.servicebus.message.delivery_count'
430
+
431
+ # The UTC epoch seconds at which the message has been accepted and stored in the entity.
432
+ #
433
+ # @note Stability Level: development
434
+ #
435
+ # @example Sample Values
436
+ # 1701393730
437
+ #
438
+ MESSAGING_SERVICEBUS_MESSAGE_ENQUEUED_TIME = 'messaging.servicebus.message.enqueued_time'
439
+
440
+ # The messaging system as identified by the client instrumentation.
441
+ #
442
+ # The actual messaging system may differ from the one known by the client. For example, when using Kafka client libraries to communicate with Azure Event Hubs, the `messaging.system` is set to `kafka` based on the instrumentation's best knowledge.
443
+ #
444
+ # @note Stability Level: development
445
+ MESSAGING_SYSTEM = 'messaging.system'
446
+
447
+ # @!endgroup
448
+ end
449
+ end
450
+ end
451
+ end
@@ -0,0 +1,96 @@
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 MESSAGING
25
+ # @!group Metrics Names
26
+
27
+ # Number of messages that were delivered to the application.
28
+ #
29
+ # Records the number of messages pulled from the broker or number of messages dispatched to the application in push-based scenarios.
30
+ # The metric SHOULD be reported once per message delivery. For example, if receiving and processing operations are both instrumented for a single message delivery, this counter is incremented when the message is received and not reported when it is processed.
31
+ #
32
+ # @note Stability Level: development
33
+ MESSAGING_CLIENT_CONSUMED_MESSAGES = 'messaging.client.consumed.messages'
34
+
35
+ # Duration of messaging operation initiated by a producer or consumer client.
36
+ #
37
+ # This metric SHOULD NOT be used to report processing duration - processing duration is reported in `messaging.process.duration` metric.
38
+ #
39
+ # @note Stability Level: development
40
+ MESSAGING_CLIENT_OPERATION_DURATION = 'messaging.client.operation.duration'
41
+
42
+ # Deprecated. Use `messaging.client.sent.messages` instead.
43
+ #
44
+ # @note Stability Level: development
45
+ # @deprecated {"note": "Replaced by `messaging.client.sent.messages`.", "reason": "renamed", "renamed_to": "messaging.client.sent.messages"}
46
+ MESSAGING_CLIENT_PUBLISHED_MESSAGES = 'messaging.client.published.messages'
47
+
48
+ # Number of messages producer attempted to send to the broker.
49
+ #
50
+ # This metric MUST NOT count messages that were created but haven't yet been sent.
51
+ #
52
+ # @note Stability Level: development
53
+ MESSAGING_CLIENT_SENT_MESSAGES = 'messaging.client.sent.messages'
54
+
55
+ # Duration of processing operation.
56
+ #
57
+ # This metric MUST be reported for operations with `messaging.operation.type` that matches `process`.
58
+ #
59
+ # @note Stability Level: development
60
+ MESSAGING_PROCESS_DURATION = 'messaging.process.duration'
61
+
62
+ # Deprecated. Use `messaging.client.consumed.messages` instead.
63
+ #
64
+ # @note Stability Level: development
65
+ # @deprecated {"note": "Replaced by `messaging.client.consumed.messages`.", "reason": "renamed", "renamed_to": "messaging.client.consumed.messages"}
66
+ MESSAGING_PROCESS_MESSAGES = 'messaging.process.messages'
67
+
68
+ # Deprecated. Use `messaging.client.operation.duration` instead.
69
+ #
70
+ # @note Stability Level: development
71
+ # @deprecated {"note": "Replaced by `messaging.client.operation.duration`.", "reason": "renamed", "renamed_to": "messaging.client.operation.duration"}
72
+ MESSAGING_PUBLISH_DURATION = 'messaging.publish.duration'
73
+
74
+ # Deprecated. Use `messaging.client.sent.messages` instead.
75
+ #
76
+ # @note Stability Level: development
77
+ # @deprecated {"note": "Replaced by `messaging.client.sent.messages`.", "reason": "renamed", "renamed_to": "messaging.client.sent.messages"}
78
+ MESSAGING_PUBLISH_MESSAGES = 'messaging.publish.messages'
79
+
80
+ # Deprecated. Use `messaging.client.operation.duration` instead.
81
+ #
82
+ # @note Stability Level: development
83
+ # @deprecated {"note": "Replaced by `messaging.client.operation.duration`.", "reason": "renamed", "renamed_to": "messaging.client.operation.duration"}
84
+ MESSAGING_RECEIVE_DURATION = 'messaging.receive.duration'
85
+
86
+ # Deprecated. Use `messaging.client.consumed.messages` instead.
87
+ #
88
+ # @note Stability Level: development
89
+ # @deprecated {"note": "Replaced by `messaging.client.consumed.messages`.", "reason": "renamed", "renamed_to": "messaging.client.consumed.messages"}
90
+ MESSAGING_RECEIVE_MESSAGES = 'messaging.receive.messages'
91
+
92
+ # @!endgroup
93
+ end
94
+ end
95
+ end
96
+ end
@@ -0,0 +1,22 @@
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
+ require_relative 'messaging/attributes'
22
+ require_relative 'messaging/metrics'