This group defines the attributes for Version Control Systems (VCS).
Attribute | Type | Description | Examples | Stability |
---|---|---|---|---|
vcs.change.id |
string | The ID of the change (pull request/merge request/changelist) if applicable. This is usually a unique (within repository) identifier generated by the VCS system. | 123 |
|
vcs.change.state |
string | The state of the change (pull request/merge request/changelist). | open ; closed ; merged |
|
vcs.change.title |
string | The human readable title of the change (pull request/merge request/changelist). This title is often a brief summary of the change and may get merged in to a ref as the commit summary. | Fixes broken thing ; feat: add my new feature ; [chore] update dependency |
|
vcs.line_change.type |
string | The type of line change being measured on a branch or change. | added ; removed |
|
vcs.ref.base.name |
string | The name of the reference such as branch or tag in the repository. | my-feature-branch ; tag-1-test |
|
vcs.ref.base.revision |
string | The 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 |
|
vcs.ref.base.type |
string | The type of the reference in the repository. | branch ; tag |
|
vcs.ref.head.name |
string | The name of the reference such as branch or tag in the repository. | my-feature-branch ; tag-1-test |
|
vcs.ref.head.revision |
string | The 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 |
|
vcs.ref.head.type |
string | The type of the reference in the repository. | branch ; tag |
|
vcs.ref.type |
string | The type of the reference in the repository. | branch ; tag |
|
vcs.repository.url.full |
string | The URL of the repository providing the complete address in order to locate and identify the repository. | https://github.com/opentelemetry/open-telemetry-collector-contrib ; https://gitlab.com/my-org/my-project/my-projects-project/repo |
|
vcs.revision_delta.direction |
string | The type of revision comparison. | ahead ; behind |
[1] vcs.ref.base.revision
: 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.base.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.revision
: 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.change.state
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.
vcs.line_change.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.
Value | Description | Stability |
---|---|---|
added |
How many lines were added. | |
removed |
How many lines were removed. |
vcs.ref.base.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.
Value | Description | Stability |
---|---|---|
branch |
branch | |
tag |
tag |
vcs.ref.head.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.
Value | Description | Stability |
---|---|---|
branch |
branch | |
tag |
tag |
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.
Value | Description | Stability |
---|---|---|
branch |
branch | |
tag |
tag |
vcs.revision_delta.direction
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.
Value | Description | Stability |
---|---|---|
ahead |
How many revisions the change is ahead of the target ref. | |
behind |
How many revisions the change is behind the target ref. |
"Describes deprecated vcs attributes."
Attribute | Type | Description | Examples | Stability |
---|---|---|---|---|
vcs.repository.change.id |
string | Deprecated, use vcs.change.id instead. |
123 |
Deprecated, use vcs.change.id instead. |
vcs.repository.change.title |
string | Deprecated, use vcs.change.title instead. |
Fixes broken thing ; feat: add my new feature ; [chore] update dependency |
Deprecated, use vcs.change.title instead. |
vcs.repository.ref.name |
string | Deprecated, use vcs.ref.head.name instead. |
my-feature-branch ; tag-1-test |
Deprecated, use vcs.ref.head.name instead. |
vcs.repository.ref.revision |
string | Deprecated, use vcs.ref.head.revision instead. |
9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc ; main ; 123 ; HEAD |
Deprecated, use vcs.ref.head.revision instead. |
vcs.repository.ref.type |
string | Deprecated, use vcs.ref.head.type instead. |
branch ; tag |
Deprecated, use vcs.ref.head.type instead. |
vcs.repository.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.
Value | Description | Stability |
---|---|---|
branch |
branch | |
tag |
tag |