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

IIS Out of Process Instrumentation Fix #1392

Merged
merged 9 commits into from
Feb 23, 2023

Conversation

tippmar-nr
Copy link
Member

@tippmar-nr tippmar-nr commented Feb 17, 2023

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 is w3wp.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

  • Perform code review
  • Pull request was adequately tested (new/existing tests, performance tests)
  • Review Changelog

…onsider that path when determining whether to instrument w3wp.exe
Copy link
Member

@jaffinito jaffinito left a 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.

@tippmar-nr tippmar-nr marked this pull request as ready for review February 17, 2023 20:53
Copy link
Member

@nr-ahemsath nr-ahemsath left a 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-commenter
Copy link

codecov-commenter commented Feb 21, 2023

Codecov Report

Merging #1392 (22aac19) into main (670936f) will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
src/Agent/NewRelic/Agent/Core/Time/Scheduler.cs 79.45% <0.00%> (-2.06%) ⬇️

Copy link
Member

@nr-ahemsath nr-ahemsath left a 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. 🚢

@tippmar-nr tippmar-nr merged commit a244f7f into main Feb 23, 2023
@tippmar-nr tippmar-nr deleted the tippmar-nr/iis-oop-instrumentation-fix branch February 23, 2023 16:32
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.

.NET Core out-of-process IIS hosting does not respond to the applicationPools configuration setting
7 participants