Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

APM support for asp.net core app running on http.sys in a Windows Service

dotnetcore

#1

I’ve got an asp.net core application running as a Windows Serivce using http.sys. Does the New Relic Agent support this? And, how would I set the app name? I don’t want to do it globally because there are other apps running, and I’m not sure how I can set it for a service.

Thanks!

Dan


#2

Hi @dan.crevier -

Although I haven’t tested the use of http.sys the agent should work with that. The agent monitors asp.net core at the middleware pipeline level so shouldn’t care about the web server.

You can copy newrelic.config to the same directory as your app’s exe (or dll) and set the name there.

If you have a way to set per-process environment variables then you can also use the environment variable NEW_RELIC_APP_NAME to set the app name.

There is also a SetApplicationName API call.

Let us know how things go.