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

fix(detector-gcp): suppress internal tracing #2424

Conversation

david-luna
Copy link
Contributor

Which problem is this PR solving?

  • this detector performs some request to get metadata from GCP. We should suppress the tracing for these requests

ref: #2320

Short description of the changes

  • suppress tracing when resolving attributes
  • add test

Copy link

codecov bot commented Sep 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.71%. Comparing base (dfb2dff) to head (50707f3).
Report is 237 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2424      +/-   ##
==========================================
- Coverage   90.97%   90.71%   -0.27%     
==========================================
  Files         146      156      +10     
  Lines        7492     7667     +175     
  Branches     1502     1578      +76     
==========================================
+ Hits         6816     6955     +139     
- Misses        676      712      +36     
Files with missing lines Coverage Δ
...resource-detector-gcp/src/detectors/GcpDetector.ts 96.36% <100.00%> (+0.36%) ⬆️

... and 76 files with indirect coverage changes

@david-luna david-luna marked this pull request as ready for review September 9, 2024 14:06
@david-luna david-luna requested a review from a team September 9, 2024 14:06
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.

thanks 👍

@david-luna david-luna merged commit 3ee6f09 into open-telemetry:main Sep 12, 2024
21 checks passed
@dyladan dyladan mentioned this pull request Sep 12, 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.

4 participants