cicd_attributes.h 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  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 cicd
  16. {
  17. /**
  18. The kind of action a pipeline run is performing.
  19. */
  20. static constexpr const char *kCicdPipelineActionName = "cicd.pipeline.action.name";
  21. /**
  22. The human readable name of the pipeline within a CI/CD system.
  23. */
  24. static constexpr const char *kCicdPipelineName = "cicd.pipeline.name";
  25. /**
  26. The result of a pipeline run.
  27. */
  28. static constexpr const char *kCicdPipelineResult = "cicd.pipeline.result";
  29. /**
  30. The unique identifier of a pipeline run within a CI/CD system.
  31. */
  32. static constexpr const char *kCicdPipelineRunId = "cicd.pipeline.run.id";
  33. /**
  34. The pipeline run goes through these states during its lifecycle.
  35. */
  36. static constexpr const char *kCicdPipelineRunState = "cicd.pipeline.run.state";
  37. /**
  38. The <a href="https://wikipedia.org/wiki/URL">URL</a> of the pipeline run, providing the complete
  39. address in order to locate and identify the pipeline run.
  40. */
  41. static constexpr const char *kCicdPipelineRunUrlFull = "cicd.pipeline.run.url.full";
  42. /**
  43. The human readable name of a task within a pipeline. Task here most closely aligns with a <a
  44. href="https://wikipedia.org/wiki/Pipeline_(computing)">computing process</a> in a pipeline. Other
  45. terms for tasks include commands, steps, and procedures.
  46. */
  47. static constexpr const char *kCicdPipelineTaskName = "cicd.pipeline.task.name";
  48. /**
  49. The unique identifier of a task run within a pipeline.
  50. */
  51. static constexpr const char *kCicdPipelineTaskRunId = "cicd.pipeline.task.run.id";
  52. /**
  53. The result of a task run.
  54. */
  55. static constexpr const char *kCicdPipelineTaskRunResult = "cicd.pipeline.task.run.result";
  56. /**
  57. The <a href="https://wikipedia.org/wiki/URL">URL</a> of the pipeline task run, providing the
  58. complete address in order to locate and identify the pipeline task run.
  59. */
  60. static constexpr const char *kCicdPipelineTaskRunUrlFull = "cicd.pipeline.task.run.url.full";
  61. /**
  62. The type of the task within a pipeline.
  63. */
  64. static constexpr const char *kCicdPipelineTaskType = "cicd.pipeline.task.type";
  65. /**
  66. The name of a component of the CICD system.
  67. */
  68. static constexpr const char *kCicdSystemComponent = "cicd.system.component";
  69. /**
  70. The unique identifier of a worker within a CICD system.
  71. */
  72. static constexpr const char *kCicdWorkerId = "cicd.worker.id";
  73. /**
  74. The name of a worker within a CICD system.
  75. */
  76. static constexpr const char *kCicdWorkerName = "cicd.worker.name";
  77. /**
  78. The state of a CICD worker / agent.
  79. */
  80. static constexpr const char *kCicdWorkerState = "cicd.worker.state";
  81. /**
  82. The <a href="https://wikipedia.org/wiki/URL">URL</a> of the worker, providing the complete address
  83. in order to locate and identify the worker.
  84. */
  85. static constexpr const char *kCicdWorkerUrlFull = "cicd.worker.url.full";
  86. namespace CicdPipelineActionNameValues
  87. {
  88. /**
  89. The pipeline run is executing a build.
  90. */
  91. static constexpr const char *kBuild = "BUILD";
  92. /**
  93. The pipeline run is executing.
  94. */
  95. static constexpr const char *kRun = "RUN";
  96. /**
  97. The pipeline run is executing a sync.
  98. */
  99. static constexpr const char *kSync = "SYNC";
  100. } // namespace CicdPipelineActionNameValues
  101. namespace CicdPipelineResultValues
  102. {
  103. /**
  104. The pipeline run finished successfully.
  105. */
  106. static constexpr const char *kSuccess = "success";
  107. /**
  108. The pipeline run did not finish successfully, eg. due to a compile error or a failing test. Such
  109. failures are usually detected by non-zero exit codes of the tools executed in the pipeline run.
  110. */
  111. static constexpr const char *kFailure = "failure";
  112. /**
  113. The pipeline run failed due to an error in the CICD system, eg. due to the worker being killed.
  114. */
  115. static constexpr const char *kError = "error";
  116. /**
  117. A timeout caused the pipeline run to be interrupted.
  118. */
  119. static constexpr const char *kTimeout = "timeout";
  120. /**
  121. The pipeline run was cancelled, eg. by a user manually cancelling the pipeline run.
  122. */
  123. static constexpr const char *kCancellation = "cancellation";
  124. /**
  125. The pipeline run was skipped, eg. due to a precondition not being met.
  126. */
  127. static constexpr const char *kSkip = "skip";
  128. } // namespace CicdPipelineResultValues
  129. namespace CicdPipelineRunStateValues
  130. {
  131. /**
  132. The run pending state spans from the event triggering the pipeline run until the execution of the
  133. run starts (eg. time spent in a queue, provisioning agents, creating run resources).
  134. */
  135. static constexpr const char *kPending = "pending";
  136. /**
  137. The executing state spans the execution of any run tasks (eg. build, test).
  138. */
  139. static constexpr const char *kExecuting = "executing";
  140. /**
  141. The finalizing state spans from when the run has finished executing (eg. cleanup of run
  142. resources).
  143. */
  144. static constexpr const char *kFinalizing = "finalizing";
  145. } // namespace CicdPipelineRunStateValues
  146. namespace CicdPipelineTaskRunResultValues
  147. {
  148. /**
  149. The task run finished successfully.
  150. */
  151. static constexpr const char *kSuccess = "success";
  152. /**
  153. The task run did not finish successfully, eg. due to a compile error or a failing test. Such
  154. failures are usually detected by non-zero exit codes of the tools executed in the task run.
  155. */
  156. static constexpr const char *kFailure = "failure";
  157. /**
  158. The task run failed due to an error in the CICD system, eg. due to the worker being killed.
  159. */
  160. static constexpr const char *kError = "error";
  161. /**
  162. A timeout caused the task run to be interrupted.
  163. */
  164. static constexpr const char *kTimeout = "timeout";
  165. /**
  166. The task run was cancelled, eg. by a user manually cancelling the task run.
  167. */
  168. static constexpr const char *kCancellation = "cancellation";
  169. /**
  170. The task run was skipped, eg. due to a precondition not being met.
  171. */
  172. static constexpr const char *kSkip = "skip";
  173. } // namespace CicdPipelineTaskRunResultValues
  174. namespace CicdPipelineTaskTypeValues
  175. {
  176. /**
  177. build
  178. */
  179. static constexpr const char *kBuild = "build";
  180. /**
  181. test
  182. */
  183. static constexpr const char *kTest = "test";
  184. /**
  185. deploy
  186. */
  187. static constexpr const char *kDeploy = "deploy";
  188. } // namespace CicdPipelineTaskTypeValues
  189. namespace CicdWorkerStateValues
  190. {
  191. /**
  192. The worker is not performing work for the CICD system. It is available to the CICD system to
  193. perform work on (online / idle).
  194. */
  195. static constexpr const char *kAvailable = "available";
  196. /**
  197. The worker is performing work for the CICD system.
  198. */
  199. static constexpr const char *kBusy = "busy";
  200. /**
  201. The worker is not available to the CICD system (disconnected / down).
  202. */
  203. static constexpr const char *kOffline = "offline";
  204. } // namespace CicdWorkerStateValues
  205. } // namespace cicd
  206. } // namespace semconv
  207. OPENTELEMETRY_END_NAMESPACE