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

Deduplicate target_info and scope_info #838

Merged
merged 2 commits into from Apr 23, 2024

Conversation

dashpole
Copy link
Contributor

Fixes #834

It ensures there is only one target_info for each unique combination of service.* resource attributes. This ensures that GMP metrics can always be joined with target_info on job + instance.

It ensures there is only one otel_scope_info for each scope name + version within a resource.

@dashpole dashpole requested a review from a team as a code owner April 23, 2024 14:09
Copy link

codecov bot commented Apr 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.29%. Comparing base (4caace7) to head (4698662).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #838      +/-   ##
==========================================
+ Coverage   61.03%   62.29%   +1.25%     
==========================================
  Files          56       56              
  Lines        5903     4890    -1013     
==========================================
- Hits         3603     3046     -557     
+ Misses       2143     1687     -456     
  Partials      157      157              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dashpole dashpole merged commit aca1cfd into GoogleCloudPlatform:main Apr 23, 2024
32 checks passed
@dashpole dashpole deleted the dedup_extra_metrics branch April 23, 2024 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GMP exporter should deduplicate resources when writing target_info
3 participants