Domanda

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)

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top