datadog-agent
datadog-agent copied to clipboard
Several Dynamic Instrumentation fixes and improvements
What does this PR do?
This PR adds several fixes and improvements to Go Dynamic Instrumentation:
- Check typeFields is not nil before accessing it to prevent crashes.
- Set specific NotCapturedReason for fields with no location.
- Don't run DWARF inspection for functions with no parameters.
Motivation
Reliability & performance.
Additional Notes
N/A
Possible Drawbacks / Trade-offs
N/A this code is disabled by default.
Describe how to test/QA your changes
N/A this code is disabled by default.