Question

We have new relic logging inplace, and I can see our stored procedure calls, but I would really like to incorporate the parameter values within the trace details.

Is there an easy way to do this? (the app is an asp.net web app)

Was it helpful?

Solution

Errors and transactions traces can include parameters, yes. You will need to use the .NET API. Instructions for implementing the API can be found here:

https://docs.newrelic.com/docs/dotnet/net-agent-api

One of the following two methods is used for this:

AddCustomParameter(System.String,System.IConvertible) - For numerical values AddCustomParameter(System.String,System.String) - For string values

Further details are included in the page by clicking the down-arrow to the right of each method.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top