pub const VCS_REF_REVISIONS_DELTA: &str = "vcs.ref.revisions_delta";Expand description
§Description
The number of revisions (commits) a ref (branch) is ahead/behind the branch from the vcs.ref.base.name attribute
§Notes
This metric should be reported for each vcs.revision_delta.direction value. For example if branch a is 3 commits behind and 2 commits ahead of trunk,
instrumentation SHOULD report two measurements: 3 and 2 (both positive numbers) and vcs.ref.base.name is set to trunk
§Metadata
| Instrument: | gauge |
| Unit: | {revision} |
| Status: | Development |
§Attributes
| Name | Requirement |
|---|---|
crate::attribute::VCS_CHANGE_ID | Conditionally_required: if a change is associate with the ref. |
crate::attribute::VCS_OWNER_NAME | Recommended |
crate::attribute::VCS_PROVIDER_NAME | Opt_in |
crate::attribute::VCS_REF_BASE_NAME | Required |
crate::attribute::VCS_REF_BASE_TYPE | Required |
crate::attribute::VCS_REF_HEAD_NAME | Required |
crate::attribute::VCS_REF_HEAD_TYPE | Required |
crate::attribute::VCS_REPOSITORY_NAME | Recommended |
crate::attribute::VCS_REPOSITORY_URL_FULL | Required |
crate::attribute::VCS_REVISION_DELTA_DIRECTION | Required |