system_attributes.h 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  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 system
  16. {
  17. /**
  18. Deprecated, use @code cpu.logical_number @endcode instead.
  19. */
  20. static constexpr const char *kSystemCpuLogicalNumber = "system.cpu.logical_number";
  21. /**
  22. Deprecated, use @code cpu.mode @endcode instead.
  23. @deprecated
  24. {"note": "Replaced by @code cpu.mode @endcode.", "reason": "renamed", "renamed_to": "cpu.mode"}
  25. */
  26. OPENTELEMETRY_DEPRECATED static constexpr const char *kSystemCpuState = "system.cpu.state";
  27. /**
  28. The device identifier
  29. */
  30. static constexpr const char *kSystemDevice = "system.device";
  31. /**
  32. The filesystem mode
  33. */
  34. static constexpr const char *kSystemFilesystemMode = "system.filesystem.mode";
  35. /**
  36. The filesystem mount path
  37. */
  38. static constexpr const char *kSystemFilesystemMountpoint = "system.filesystem.mountpoint";
  39. /**
  40. The filesystem state
  41. */
  42. static constexpr const char *kSystemFilesystemState = "system.filesystem.state";
  43. /**
  44. The filesystem type
  45. */
  46. static constexpr const char *kSystemFilesystemType = "system.filesystem.type";
  47. /**
  48. The memory state
  49. */
  50. static constexpr const char *kSystemMemoryState = "system.memory.state";
  51. /**
  52. Deprecated, use @code network.connection.state @endcode instead.
  53. @deprecated
  54. {"note": "Replaced by @code network.connection.state @endcode.", "reason": "renamed",
  55. "renamed_to": "network.connection.state"}
  56. */
  57. OPENTELEMETRY_DEPRECATED static constexpr const char *kSystemNetworkState = "system.network.state";
  58. /**
  59. The paging access direction
  60. */
  61. static constexpr const char *kSystemPagingDirection = "system.paging.direction";
  62. /**
  63. The memory paging state
  64. */
  65. static constexpr const char *kSystemPagingState = "system.paging.state";
  66. /**
  67. The memory paging type
  68. */
  69. static constexpr const char *kSystemPagingType = "system.paging.type";
  70. /**
  71. The process state, e.g., <a
  72. href="https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES">Linux Process State
  73. Codes</a>
  74. */
  75. static constexpr const char *kSystemProcessStatus = "system.process.status";
  76. /**
  77. Deprecated, use @code system.process.status @endcode instead.
  78. @deprecated
  79. {"note": "Replaced by @code system.process.status @endcode.", "reason": "renamed", "renamed_to":
  80. "system.process.status"}
  81. */
  82. OPENTELEMETRY_DEPRECATED static constexpr const char *kSystemProcessesStatus =
  83. "system.processes.status";
  84. namespace SystemCpuStateValues
  85. {
  86. /**
  87. none
  88. */
  89. static constexpr const char *kUser = "user";
  90. /**
  91. none
  92. */
  93. static constexpr const char *kSystem = "system";
  94. /**
  95. none
  96. */
  97. static constexpr const char *kNice = "nice";
  98. /**
  99. none
  100. */
  101. static constexpr const char *kIdle = "idle";
  102. /**
  103. none
  104. */
  105. static constexpr const char *kIowait = "iowait";
  106. /**
  107. none
  108. */
  109. static constexpr const char *kInterrupt = "interrupt";
  110. /**
  111. none
  112. */
  113. static constexpr const char *kSteal = "steal";
  114. } // namespace SystemCpuStateValues
  115. namespace SystemFilesystemStateValues
  116. {
  117. /**
  118. none
  119. */
  120. static constexpr const char *kUsed = "used";
  121. /**
  122. none
  123. */
  124. static constexpr const char *kFree = "free";
  125. /**
  126. none
  127. */
  128. static constexpr const char *kReserved = "reserved";
  129. } // namespace SystemFilesystemStateValues
  130. namespace SystemFilesystemTypeValues
  131. {
  132. /**
  133. none
  134. */
  135. static constexpr const char *kFat32 = "fat32";
  136. /**
  137. none
  138. */
  139. static constexpr const char *kExfat = "exfat";
  140. /**
  141. none
  142. */
  143. static constexpr const char *kNtfs = "ntfs";
  144. /**
  145. none
  146. */
  147. static constexpr const char *kRefs = "refs";
  148. /**
  149. none
  150. */
  151. static constexpr const char *kHfsplus = "hfsplus";
  152. /**
  153. none
  154. */
  155. static constexpr const char *kExt4 = "ext4";
  156. } // namespace SystemFilesystemTypeValues
  157. namespace SystemMemoryStateValues
  158. {
  159. /**
  160. none
  161. */
  162. static constexpr const char *kUsed = "used";
  163. /**
  164. none
  165. */
  166. static constexpr const char *kFree = "free";
  167. /**
  168. none
  169. */
  170. static constexpr const char *kShared = "shared";
  171. /**
  172. none
  173. */
  174. static constexpr const char *kBuffers = "buffers";
  175. /**
  176. none
  177. */
  178. static constexpr const char *kCached = "cached";
  179. } // namespace SystemMemoryStateValues
  180. namespace SystemNetworkStateValues
  181. {
  182. /**
  183. none
  184. */
  185. static constexpr const char *kClose = "close";
  186. /**
  187. none
  188. */
  189. static constexpr const char *kCloseWait = "close_wait";
  190. /**
  191. none
  192. */
  193. static constexpr const char *kClosing = "closing";
  194. /**
  195. none
  196. */
  197. static constexpr const char *kDelete = "delete";
  198. /**
  199. none
  200. */
  201. static constexpr const char *kEstablished = "established";
  202. /**
  203. none
  204. */
  205. static constexpr const char *kFinWait1 = "fin_wait_1";
  206. /**
  207. none
  208. */
  209. static constexpr const char *kFinWait2 = "fin_wait_2";
  210. /**
  211. none
  212. */
  213. static constexpr const char *kLastAck = "last_ack";
  214. /**
  215. none
  216. */
  217. static constexpr const char *kListen = "listen";
  218. /**
  219. none
  220. */
  221. static constexpr const char *kSynRecv = "syn_recv";
  222. /**
  223. none
  224. */
  225. static constexpr const char *kSynSent = "syn_sent";
  226. /**
  227. none
  228. */
  229. static constexpr const char *kTimeWait = "time_wait";
  230. } // namespace SystemNetworkStateValues
  231. namespace SystemPagingDirectionValues
  232. {
  233. /**
  234. none
  235. */
  236. static constexpr const char *kIn = "in";
  237. /**
  238. none
  239. */
  240. static constexpr const char *kOut = "out";
  241. } // namespace SystemPagingDirectionValues
  242. namespace SystemPagingStateValues
  243. {
  244. /**
  245. none
  246. */
  247. static constexpr const char *kUsed = "used";
  248. /**
  249. none
  250. */
  251. static constexpr const char *kFree = "free";
  252. } // namespace SystemPagingStateValues
  253. namespace SystemPagingTypeValues
  254. {
  255. /**
  256. none
  257. */
  258. static constexpr const char *kMajor = "major";
  259. /**
  260. none
  261. */
  262. static constexpr const char *kMinor = "minor";
  263. } // namespace SystemPagingTypeValues
  264. namespace SystemProcessStatusValues
  265. {
  266. /**
  267. none
  268. */
  269. static constexpr const char *kRunning = "running";
  270. /**
  271. none
  272. */
  273. static constexpr const char *kSleeping = "sleeping";
  274. /**
  275. none
  276. */
  277. static constexpr const char *kStopped = "stopped";
  278. /**
  279. none
  280. */
  281. static constexpr const char *kDefunct = "defunct";
  282. } // namespace SystemProcessStatusValues
  283. namespace SystemProcessesStatusValues
  284. {
  285. /**
  286. none
  287. */
  288. static constexpr const char *kRunning = "running";
  289. /**
  290. none
  291. */
  292. static constexpr const char *kSleeping = "sleeping";
  293. /**
  294. none
  295. */
  296. static constexpr const char *kStopped = "stopped";
  297. /**
  298. none
  299. */
  300. static constexpr const char *kDefunct = "defunct";
  301. } // namespace SystemProcessesStatusValues
  302. } // namespace system
  303. } // namespace semconv
  304. OPENTELEMETRY_END_NAMESPACE