-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[vcs] add vcs.change.time_to_merge
metric
#1685
base: main
Are you sure you want to change the base?
Changes from all commits
1e20f5a
de2096e
ee75ecb
8107854
e4e0bf6
2fecfb1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Use this changelog template to create an entry for release notes. | ||
# | ||
# If your change doesn't affect end users you should instead start | ||
# your pull request title with [chore] or use the "Skip Changelog" label. | ||
|
||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: enhancement | ||
|
||
# The name of the area of concern in the attributes-registry, (e.g. http, cloud, db) | ||
component: vcs | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: Add `vcs.change.time_to_merge` metric. | ||
|
||
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. | ||
# The values here must be integers. | ||
issues: [1685] | ||
|
||
# (Optional) One or more lines of additional information to render under the primary note. | ||
# These lines will be padded with 2 spaces and then inserted directly into the document. | ||
# Use pipe (|) for multiline entries. | ||
subtext: |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ groups: | |
- id: metric.vcs.change.time_to_approval | ||
type: metric | ||
metric_name: vcs.change.time_to_approval | ||
brief: 'The amount of time since its creation it took a change (pull request/merge request/changelist) to get the first approval' | ||
brief: 'The amount of time since its creation it took a change (pull request/merge request/changelist) to get the first approval.' | ||
instrument: gauge | ||
unit: "s" | ||
stability: experimental | ||
|
@@ -43,18 +43,44 @@ groups: | |
requirement_level: recommended | ||
- ref: vcs.ref.head.name | ||
requirement_level: required | ||
- ref: vcs.ref.head.revision | ||
requirement_level: recommended | ||
- ref: vcs.ref.base.name | ||
requirement_level: recommended | ||
- ref: vcs.ref.base.revision | ||
requirement_level: recommended | ||
- id: metric.vcs.change.time_to_merge | ||
type: metric | ||
metric_name: vcs.change.time_to_merge | ||
brief: 'The amount of time since its creation it took a change (pull request/merge request/changelist) to get merged into the target(base) ref.' | ||
instrument: gauge | ||
unit: "s" | ||
stability: experimental | ||
attributes: | ||
- ref: vcs.repository.url.full | ||
requirement_level: required | ||
- ref: vcs.repository.name | ||
requirement_level: recommended | ||
- ref: vcs.ref.head.name | ||
requirement_level: required | ||
- ref: vcs.ref.head.revision | ||
requirement_level: recommended | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should the revision attributes be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't have a strong opinion in either direction. Cardinality is a storage concern, but I'm less sure it's a semantic one. recommended and opt-in both provide users the choice in the event cardinality is a concern for them. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's fine for the revision attributes to be recommended for the However I would make the revision attributes opt-in for the |
||
- ref: vcs.ref.base.name | ||
adrielp marked this conversation as resolved.
Show resolved
Hide resolved
|
||
requirement_level: recommended | ||
- ref: vcs.ref.base.revision | ||
requirement_level: recommended | ||
adrielp marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- id: metric.vcs.repository.count | ||
type: metric | ||
metric_name: vcs.repository.count | ||
brief: 'The number of repositories in an organization' | ||
brief: 'The number of repositories in an organization.' | ||
instrument: updowncounter | ||
unit: "{repository}" | ||
stability: experimental | ||
attributes: [] | ||
- id: metric.vcs.ref.count | ||
type: metric | ||
metric_name: vcs.ref.count | ||
brief: 'The number of refs of type branch or tag in a repository' | ||
brief: 'The number of refs of type branch or tag in a repository.' | ||
instrument: updowncounter | ||
unit: "{ref}" | ||
stability: experimental | ||
|
@@ -68,7 +94,7 @@ groups: | |
- id: metric.vcs.ref.lines_delta | ||
type: metric | ||
metric_name: vcs.ref.lines_delta | ||
brief: 'The number of lines added/removed in a ref (branch) relative to the ref from the `vcs.ref.base.name` attribute' | ||
brief: 'The number of lines added/removed in a ref (branch) relative to the ref from the `vcs.ref.base.name` attribute.' | ||
note: | | ||
This metric should be reported for each `vcs.line_change.type` value. For example if a ref added 3 lines and removed 2 lines, | ||
instrumentation SHOULD report two measurements: 3 and 2 (both positive numbers). | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is missing a section for the new
vcs.change.time_to_merge
metric.Ie the following needs to be added:
Running
make fix
afterwards will fill in the tables in the generated block.