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)

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top