CICD

See also:

Continuous Integration and Continuous Deployment (CICD)

CICD pipeline

Status: Development

type: cicd.pipeline

Description: A pipeline is a series of automated steps that helps software teams deliver code.

⚠️ This entity definition contains attributes without a role. Stable Entities MUST NOT have attributes without a defined role.

Attributes:

RoleKeyStabilityRequirement LevelValue TypeDescriptionExample Values
Othercicd.pipeline.nameDevelopmentRecommendedstringThe human readable name of the pipeline within a CI/CD system.Build and Test; Lint; Deploy Go Project; deploy_to_environment

CICD pipeline run

To efficiently set the following attributes for all spans of a pipeline run they should be defined as the following resource.

Since this resource is unique for each pipeline run, this means instantiating separate TracerProviders for each pipeline run in order to be able to configure the resources of any spans emitted through that tracer.

Using the CICD pipeline run resource with metrics inherently causes high cardinality and may increase costs with some metric storage backends. Thus, using CICD pipeline run resource for metrics MUST be opt-in.

Status: Development

type: cicd.pipeline.run

Description: A pipeline run is a singular execution of a given pipeline’s tasks.

⚠️ This entity definition contains attributes without a role. Stable Entities MUST NOT have attributes without a defined role.

Attributes:

RoleKeyStabilityRequirement LevelValue TypeDescriptionExample Values
Othercicd.pipeline.run.idDevelopmentRecommendedstringThe unique identifier of a pipeline run within a CI/CD system.120912
Othercicd.pipeline.run.url.fullDevelopmentRecommendedstringThe URL of the pipeline run, providing the complete address in order to locate and identify the pipeline run.https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763?pr=1075

CICD worker

Status: Development

type: cicd.worker

Description: A CICD worker is a component of the CICD system that performs work (eg. running pipeline tasks or performing sync). A single pipeline run may be distributed across multiple workers. Any OpenTelemetry signal associated with a worker should be associated to the worker that performed the corresponding work. For example, when a pipeline run involves several workers, its task run spans may reference the different cicd.worker resources corresponding to the workers that executed each task run. The pipeline run’s parent span may instead reference the CICD controller as the cicd.worker resource.

⚠️ This entity definition contains attributes without a role. Stable Entities MUST NOT have attributes without a defined role.

Attributes:

RoleKeyStabilityRequirement LevelValue TypeDescriptionExample Values
Othercicd.worker.idDevelopmentRequiredstringThe unique identifier of a worker within a CICD system.abc123; 10.0.1.2; controller
Othercicd.worker.nameDevelopmentRecommendedstringThe name of a worker within a CICD system.agent-abc; controller; Ubuntu LTS
Othercicd.worker.url.fullDevelopmentRecommended If availablestringThe URL of the worker, providing the complete address in order to locate and identify the worker.https://cicd.example.org/worker/abc123

Version Control System (VCS)

VCS repository

Status: Development

type: vcs.repo

Description: A repository in the Version Control System.

⚠️ This entity definition contains attributes without a role. Stable Entities MUST NOT have attributes without a defined role.

Attributes:

RoleKeyStabilityRequirement LevelValue TypeDescriptionExample Values
Othervcs.repository.nameDevelopmentRecommendedstringThe human readable name of the repository. It SHOULD NOT include any additional identifier like Group/SubGroup in GitLab or organization in GitHub. [1]semantic-conventions; my-cool-repo
Othervcs.repository.url.fullDevelopmentRecommendedstringThe canonical URL of the repository providing the complete HTTP(S) address in order to locate and identify the repository through a browser. [2]https://github.com/opentelemetry/open-telemetry-collector-contrib; https://gitlab.com/my-org/my-project/my-projects-project/repo

[1] vcs.repository.name: Due to it only being the name, it can clash with forks of the same repository if collecting telemetry across multiple orgs or groups in the same backends.

[2] vcs.repository.url.full: In Git Version Control Systems, the canonical URL SHOULD NOT include the .git extension.

VCS reference

Status: Development

type: vcs.ref

Description: A reference to a specific version in the Version Control System.

⚠️ This entity definition contains attributes without a role. Stable Entities MUST NOT have attributes without a defined role.

Attributes:

RoleKeyStabilityRequirement LevelValue TypeDescriptionExample Values
Othervcs.ref.head.nameDevelopmentRecommendedstringThe name of the reference such as branch or tag in the repository. [1]my-feature-branch; tag-1-test
Othervcs.ref.head.revisionDevelopmentRecommendedstringThe revision, literally revised version, The revision most often refers to a commit object in Git, or a revision number in SVN. [2]9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc; main; 123; HEAD
Othervcs.ref.typeDevelopmentRecommendedstringThe type of the reference in the repository.branch; tag

[1] vcs.ref.head.name: head refers to where you are right now; the current reference at a given time.

[2] vcs.ref.head.revision: head refers to where you are right now; the current reference at a given time.The revision can be a full hash value (see glossary), of the recorded change to a ref within a repository pointing to a commit commit object. It does not necessarily have to be a hash; it can simply define a revision number which is an integer that is monotonically increasing. In cases where it is identical to the ref.head.name, it SHOULD still be included. It is up to the implementer to decide which value to set as the revision based on the VCS system and situational context.


vcs.ref.type has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability
branchbranchDevelopment
tagtagDevelopment