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

[chore] consolidate scope/resource creation in transformer #4429

Closed
wants to merge 1 commit into from

Conversation

bogdandrutu
Copy link
Member

No description provided.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
@bogdandrutu bogdandrutu requested a review from a team January 18, 2024 19:40
Copy link

codecov bot commented Jan 18, 2024

Codecov Report

Merging #4429 (4f82df5) into main (43e598e) will decrease coverage by 1.44%.
Report is 54 commits behind head on main.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4429      +/-   ##
==========================================
- Coverage   92.19%   90.76%   -1.44%     
==========================================
  Files         336       87     -249     
  Lines        9511     1906    -7605     
  Branches     2016      405    -1611     
==========================================
- Hits         8769     1730    -7039     
+ Misses        742      176     -566     

see 252 files with indirect coverage changes

@legendecas legendecas self-requested a review January 19, 2024 07:41
return {
name: scope.name,
version: scope.version,
droppedAttributesCount: 0,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be removed.

Suggested change
droppedAttributesCount: 0,

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's actually part of the proto (see https://github.com/open-telemetry/opentelemetry-proto/blob/b5c1a7882180a26bb7794594e8546798ecb68103/opentelemetry/proto/common/v1/common.proto#L80)

I think the tests will need to be adapted to expect this new value.

Copy link
Member

@pichlermarc pichlermarc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already looks very good, thanks for taking care of this. 🙂

A few comments:

  • I think the tests need to be adapted to include the droppedAttributeCount in the resource assertions.
  • npm run lint:fix will address any lint issues that are currently causing the lint workflow fail.
  • please add an entry in experimental/CHANGELOG.md for this PR (this will make the changelog workflow pass).

return {
name: scope.name,
version: scope.version,
droppedAttributesCount: 0,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's actually part of the proto (see https://github.com/open-telemetry/opentelemetry-proto/blob/b5c1a7882180a26bb7794594e8546798ecb68103/opentelemetry/proto/common/v1/common.proto#L80)

I think the tests will need to be adapted to expect this new value.

Copy link
Member

@pichlermarc pichlermarc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formally marking this as Changes requested (see my previous comments), so that we don't merge this until the comments are addressed (the PR has one approval).

Copy link

github-actions bot commented Apr 1, 2024

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days.

@pichlermarc
Copy link
Member

Merged with the proposed changes and lint fixes in #4600

@pichlermarc pichlermarc closed this Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants