-
Notifications
You must be signed in to change notification settings - Fork 146
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
Cloud API #2081
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2081 +/- ##
============================================
+ Coverage 70.57% 70.61% +0.03%
- Complexity 9875 9907 +32
============================================
Files 829 833 +4
Lines 39945 40036 +91
Branches 6078 6091 +13
============================================
+ Hits 28191 28270 +79
- Misses 9024 9033 +9
- Partials 2730 2733 +3 ☔ View full report in Codecov by Sentry. |
if (accountInfo != null) { | ||
accountInfo.remove(cloudAccountInfo); | ||
} | ||
} |
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.
Should there be a short-circuit return here or is it ok to have a cloudAccountInfo
with a null value?
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.
yes, it should short circuit.
It is also ok to have null values. But short circuiting prevents some overhead.
Update documentation to inform the behavior
Overview
Introduces the Cloud API, which allows cloud account information to be passed to the agent.
This information is required by some instrumentation modules to be able to form cloud resource identifiers which are used to link a monitored application to the cloud resources it uses.
Related Github Issue
Fixes #2003
Checks