Skip to content
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

[receiver/github] update metrics and attributes to match latest semantics and change scraper key name #36714

Merged
merged 22 commits into from
Dec 16, 2024

Conversation

adrielp
Copy link
Contributor

@adrielp adrielp commented Dec 7, 2024

Description

Breaking: Updates various different metrics and attributes to match the latest semantic conventions (1.28+). Also updates the scraper key name.

Most of the conventions are in 1.28 while a few attributes are merged in and will be released in 1.29.

  • Change the github scraper key to scraper
  • Add vcs.repository.url.full attribute
  • Change attribute repository.name to vcs.repository.name
  • Change attribute ref.name to vcs.ref.head.name
  • Change attribute ref.type to vcs.ref.head.type
  • Change attribute change.state to vcs.change.state
  • Add attribute vcs.revision_delta.direction with ahead and behind values
  • Change metric vcs.repository.ref.revisions_ahead to vcs.ref.revisions_delta with vcs.revision_delta.direction=ahead
  • Change metric vcs.repository.ref.revisions_behind to vcs.ref.revisions_delta with vcs.revision_delta.direction=behind
  • Change metric vcs.repository.ref.count to vcs.ref.count
  • Change metric vcs.repository.ref.time to vcs.ref.time
  • Add attribute vcs.line_change.type with added and removed values
  • Change metric vcs.repository.ref.lines_added to vcs.ref.lines_delta with vcs.line_change.type=added
  • Change metric vcs.repository.ref.lines_removed to vcs.ref.lines_delta with vcs.line_change.type=removed
  • Change metric vcs.repository.contributor.count to vcs.contributor.count
  • Change metric vcs.repository.change.time_open to vcs.change.duration with vcs.change.state=open
  • Change metric vcs.repository.change.time_to_approval to vcs.change.time_to_approval
  • Change metric vcs.repository.change.time_to_merge to vcs.change.time_to_merge
  • Change metric vcs.repository.change.count to vcs.change.count

Testing

In addition to the normal testing of the code, I additionally built the receiver into a collector to observe runtime behavior.

Documentation

Update generated docs and readme with scraper change.

@adrielp
Copy link
Contributor Author

adrielp commented Dec 9, 2024

Upon investigation, the githubgen check within the code owners workflow failure is unrelated to my changes and is broken across the board. Active related work there is #36023 #36285

@songy23 songy23 added ready to merge Code review completed; ready to merge by maintainers release:blocker The issue must be resolved before cutting the next release labels Dec 13, 2024
@andrzej-stencel andrzej-stencel merged commit a2f3b3c into open-telemetry:main Dec 16, 2024
160 checks passed
@github-actions github-actions bot added this to the next release milestone Dec 16, 2024
sbylica-splunk pushed a commit to sbylica-splunk/opentelemetry-collector-contrib that referenced this pull request Dec 17, 2024
…tics and change scraper key name (open-telemetry#36714)

#### Description

Breaking: Updates various different metrics and attributes to match the
latest semantic conventions (1.28+). Also updates the scraper key name.

Most of the conventions are in 1.28 while a few attributes are merged in
and will be released in 1.29.

* Change the `github` scraper key to `scraper`
* Add `vcs.repository.url.full` attribute
* Change attribute `repository.name` to `vcs.repository.name`
* Change attribute `ref.name` to `vcs.ref.head.name`
* Change attribute `ref.type` to `vcs.ref.head.type`
* Change attribute `change.state` to `vcs.change.state`
* Add attribute `vcs.revision_delta.direction` with `ahead` and `behind`
values
* Change metric `vcs.repository.ref.revisions_ahead` to
`vcs.ref.revisions_delta` with `vcs.revision_delta.direction=ahead`
* Change metric `vcs.repository.ref.revisions_behind` to
`vcs.ref.revisions_delta` with `vcs.revision_delta.direction=behind`
* Change metric `vcs.repository.ref.count` to `vcs.ref.count`
* Change metric `vcs.repository.ref.time` to `vcs.ref.time`
* Add attribute `vcs.line_change.type` with `added` and `removed` values
* Change metric `vcs.repository.ref.lines_added` to
`vcs.ref.lines_delta` with `vcs.line_change.type=added`
* Change metric `vcs.repository.ref.lines_removed` to
`vcs.ref.lines_delta` with `vcs.line_change.type=removed`
* Change metric `vcs.repository.contributor.count` to
`vcs.contributor.count`
* Change metric `vcs.repository.change.time_open` to
`vcs.change.duration` with `vcs.change.state=open`
* Change metric `vcs.repository.change.time_to_approval` to
`vcs.change.time_to_approval`
* Change metric `vcs.repository.change.time_to_merge` to
`vcs.change.time_to_merge`
* Change metric `vcs.repository.change.count` to `vcs.change.count`

#### Testing

In addition to the normal testing of the code, I additionally built the
receiver into a collector to observe runtime behavior.

#### Documentation

Update generated docs and readme with scraper change.
mterhar pushed a commit to mterhar/opentelemetry-collector-contrib that referenced this pull request Dec 19, 2024
…tics and change scraper key name (open-telemetry#36714)

#### Description

Breaking: Updates various different metrics and attributes to match the
latest semantic conventions (1.28+). Also updates the scraper key name.

Most of the conventions are in 1.28 while a few attributes are merged in
and will be released in 1.29.

* Change the `github` scraper key to `scraper`
* Add `vcs.repository.url.full` attribute
* Change attribute `repository.name` to `vcs.repository.name`
* Change attribute `ref.name` to `vcs.ref.head.name`
* Change attribute `ref.type` to `vcs.ref.head.type`
* Change attribute `change.state` to `vcs.change.state`
* Add attribute `vcs.revision_delta.direction` with `ahead` and `behind`
values
* Change metric `vcs.repository.ref.revisions_ahead` to
`vcs.ref.revisions_delta` with `vcs.revision_delta.direction=ahead`
* Change metric `vcs.repository.ref.revisions_behind` to
`vcs.ref.revisions_delta` with `vcs.revision_delta.direction=behind`
* Change metric `vcs.repository.ref.count` to `vcs.ref.count`
* Change metric `vcs.repository.ref.time` to `vcs.ref.time`
* Add attribute `vcs.line_change.type` with `added` and `removed` values
* Change metric `vcs.repository.ref.lines_added` to
`vcs.ref.lines_delta` with `vcs.line_change.type=added`
* Change metric `vcs.repository.ref.lines_removed` to
`vcs.ref.lines_delta` with `vcs.line_change.type=removed`
* Change metric `vcs.repository.contributor.count` to
`vcs.contributor.count`
* Change metric `vcs.repository.change.time_open` to
`vcs.change.duration` with `vcs.change.state=open`
* Change metric `vcs.repository.change.time_to_approval` to
`vcs.change.time_to_approval`
* Change metric `vcs.repository.change.time_to_merge` to
`vcs.change.time_to_merge`
* Change metric `vcs.repository.change.count` to `vcs.change.count`

#### Testing

In addition to the normal testing of the code, I additionally built the
receiver into a collector to observe runtime behavior.

#### Documentation

Update generated docs and readme with scraper change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Code review completed; ready to merge by maintainers receiver/github release:blocker The issue must be resolved before cutting the next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants