Pregunta

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)

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top