Luke M Willis Luke M Willis - 1 month ago 9
ASP.NET (C#) Question

How to manually push errors to NewRelic in .NET

This question covers how to manually notice errors in NewRelic in Ruby.

I need to do the same thing in C#.

How can I manually send errors to NewRelic in .NET?

Answer

According to NewRelic's .NET Api, you can do this with

NewRelic.Api.Agent.NewRelic.NoticeError(ex);

where ex is an Exception.

Comments