1313// buildscripts/templates/registry/incubating_java/IncubatingSemanticAttributes.java.j2
1414@ SuppressWarnings ("unused" )
1515public final class CicdIncubatingAttributes {
16+ /** The kind of action a pipeline run is performing. */
17+ public static final AttributeKey <String > CICD_PIPELINE_ACTION_NAME =
18+ stringKey ("cicd.pipeline.action.name" );
19+
1620 /** The human readable name of the pipeline within a CI/CD system. */
1721 public static final AttributeKey <String > CICD_PIPELINE_NAME = stringKey ("cicd.pipeline.name" );
1822
@@ -45,6 +49,10 @@ public final class CicdIncubatingAttributes {
4549 public static final AttributeKey <String > CICD_PIPELINE_TASK_RUN_ID =
4650 stringKey ("cicd.pipeline.task.run.id" );
4751
52+ /** The result of a task run. */
53+ public static final AttributeKey <String > CICD_PIPELINE_TASK_RUN_RESULT =
54+ stringKey ("cicd.pipeline.task.run.result" );
55+
4856 /**
4957 * The <a href="https://wikipedia.org/wiki/URL">URL</a> of the pipeline task run, providing the
5058 * complete address in order to locate and identify the pipeline task run.
@@ -60,10 +68,37 @@ public final class CicdIncubatingAttributes {
6068 public static final AttributeKey <String > CICD_SYSTEM_COMPONENT =
6169 stringKey ("cicd.system.component" );
6270
71+ /** The unique identifier of a worker within a CICD system. */
72+ public static final AttributeKey <String > CICD_WORKER_ID = stringKey ("cicd.worker.id" );
73+
74+ /** The name of a worker within a CICD system. */
75+ public static final AttributeKey <String > CICD_WORKER_NAME = stringKey ("cicd.worker.name" );
76+
6377 /** The state of a CICD worker / agent. */
6478 public static final AttributeKey <String > CICD_WORKER_STATE = stringKey ("cicd.worker.state" );
6579
80+ /**
81+ * The <a href="https://wikipedia.org/wiki/URL">URL</a> of the worker, providing the complete
82+ * address in order to locate and identify the worker.
83+ */
84+ public static final AttributeKey <String > CICD_WORKER_URL_FULL = stringKey ("cicd.worker.url.full" );
85+
6686 // Enum definitions
87+
88+ /** Values for {@link #CICD_PIPELINE_ACTION_NAME}. */
89+ public static final class CicdPipelineActionNameIncubatingValues {
90+ /** The pipeline run is executing a build. */
91+ public static final String BUILD = "BUILD" ;
92+
93+ /** The pipeline run is executing. */
94+ public static final String RUN = "RUN" ;
95+
96+ /** The pipeline run is executing a sync. */
97+ public static final String SYNC = "SYNC" ;
98+
99+ private CicdPipelineActionNameIncubatingValues () {}
100+ }
101+
67102 /** Values for {@link #CICD_PIPELINE_RESULT}. */
68103 public static final class CicdPipelineResultIncubatingValues {
69104 /** The pipeline run finished successfully. */
@@ -114,6 +149,34 @@ public static final class CicdPipelineRunStateIncubatingValues {
114149 private CicdPipelineRunStateIncubatingValues () {}
115150 }
116151
152+ /** Values for {@link #CICD_PIPELINE_TASK_RUN_RESULT}. */
153+ public static final class CicdPipelineTaskRunResultIncubatingValues {
154+ /** The task run finished successfully. */
155+ public static final String SUCCESS = "success" ;
156+
157+ /**
158+ * The task run did not finish successfully, eg. due to a compile error or a failing test. Such
159+ * failures are usually detected by non-zero exit codes of the tools executed in the task run.
160+ */
161+ public static final String FAILURE = "failure" ;
162+
163+ /**
164+ * The task run failed due to an error in the CICD system, eg. due to the worker being killed.
165+ */
166+ public static final String ERROR = "error" ;
167+
168+ /** A timeout caused the task run to be interrupted. */
169+ public static final String TIMEOUT = "timeout" ;
170+
171+ /** The task run was cancelled, eg. by a user manually cancelling the task run. */
172+ public static final String CANCELLATION = "cancellation" ;
173+
174+ /** The task run was skipped, eg. due to a precondition not being met. */
175+ public static final String SKIP = "skip" ;
176+
177+ private CicdPipelineTaskRunResultIncubatingValues () {}
178+ }
179+
117180 /** Values for {@link #CICD_PIPELINE_TASK_TYPE}. */
118181 public static final class CicdPipelineTaskTypeIncubatingValues {
119182 /** build */
0 commit comments