Byndyusoft.AspNetCore.Instrumentation.Tracing
Instrumentation tracing
ASP.NET Core MVC tracing.
dotnet add package Byndyusoft.AspNetCore.Instrumentation.Tracingpublic class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers()
.AddTracing();
...
}
}public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers()
.AddTracing(options =>
{
options.TagRequestParamsInTrace = true;
options.EnrichLogsWithParams = true;
options.EnrichLogsWithHttpInfo = true;
options.ValueMaxStringLength = 50;
options.Formatter = new SystemTextJsonFormatter
{
Options = new JsonSerializerOptions(JsonSerializerDefaults.Web)
{
Converters =
{
new JsonStringEnumConverter()
}
}
};
});
...
}
}There are some default option parameters:
Masked serialization package Byndyusoft.MaskedSerialization is used to hide sensitive data. Is it implemented in NewtonsoftJsonFormatter.cs class.
To contribute, you will need to setup your local environment, see prerequisites. For the contribution and workflow guide, see package development lifecycle.
A detailed overview on how to contribute can be found in the contributing guide.
Make sure you have installed all of the following prerequisites on your development machine:
srctestsmaster branch