-
Notifications
You must be signed in to change notification settings - Fork 64
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
IIS Out of Process Instrumentation Fix #1392
Conversation
…onsider that path when determining whether to instrument w3wp.exe
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.
The changes look fine to me with my limited C++ skills. I am interested in what others with more C++ think.
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.
A bit of "tribal knowledge" that I'm not sure is documented anywhere - when we make profiler changes, we need to build the profiler locally, and check in the new profiler binaries to this place in our repo: https://github.com/newrelic/newrelic-dotnet-agent/tree/main/src/Agent/_profilerBuild
There are four profiler binaries that need to be built and checked in: Windows 64 bit, Windows 32-bit, Linux x64, and Linux ARM64.
Codecov Report
@@ Coverage Diff @@
## main #1392 +/- ##
==========================================
- Coverage 71.62% 71.61% -0.01%
==========================================
Files 459 459
Lines 30619 30619
==========================================
- Hits 21932 21929 -3
- Misses 8687 8690 +3
|
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.
Looks good to me. Confirmed with @tippmar-nr that these changes were manually tested and produce the expected behavior. 🚢
Thank you for submitting a pull request. Please review our contributing guidelines and code of conduct.
Description
Updates profiler startup to look at both the current process name and the parent process name when deciding whether the process should be instrumented. For .NET Core Out of Process IIS hosted websites, the current process name is
dotnet.exe
and the parent process name isw3wp.exe
.This fix ensures that app pool instrumentation configuration in newrelic.config works for both regular and out of process websites.
Author Checklist
Reviewer Checklist