VCS

VCS Ref

Status: Development

type: vcs.ref

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

Attributes:

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

[1] 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.

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


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
branchbranchRelease Candidate
tagtagRelease Candidate

VCS Repository

Status: Release Candidate

type: vcs.repository

Description: A repository in the Version Control System.

Attributes:

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

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

[4] 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.