.NET Agent v2.1.6
October 5, 2023
-
Feature
Added the HTTP request body tracing function.-
profile_http_body_enabled Boolean
Default
false
The body of the HTTP request is recorded in the trace history.
-
profile_http_body_url_prefix String
It is used to define the prefix of the target URL to record the HTTP body information in the trace history.
-
-
Feature
Added the user log tracing function.This function allows user to leave a log message directly in the trace history. To leave logs, proceed with the following step.
-
Add a CS file to the project to log in and then write your code.
using System;
namespace Whatap.UserLog
{
public static class Tracer
{
public static void Trace(string message)
{
// You don't have to write any code.
// The code inside this method is ignored by the WhaTap agent and is not executed.
}
}
} -
At the location to log, add code in
Tracer.Trace("Log string")
format.public string UserFunction(int value)
{
Tracer.Trace($"started... {value}");
...
}
-
-
Fixed
Fixed the Windows Communication Foundation (WCF, web service)-related error.Fixed the bug where the tracing target is expanded to all methods including WCF and the targets that cannot be monitored are included, if the
webservice_method_prefix
option is set tonull
andwebservice_method_enabled=true
is set.