Byndyusoft / Byndyusoft.AspNetCore.Instrumentation.Tracing

ASP.NET Core MVC tracing.

Home Page:https://en.byndyusoft.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Byndyusoft.AspNetCore.Instrumentation.Tracing

ASP.NET Core MVC tracing.

(License) Nuget NuGet downloads

Installing

dotnet add package Byndyusoft.AspNetCore.Instrumentation.Tracing

Usages

public class Startup
{
    public void ConfigureServices(IServiceCollection services)
    {
        services.AddControllers()
            .AddTracing();
        ...
    }
}

Configuring

public class Startup
{
    public void ConfigureServices(IServiceCollection services)
    {
        services.AddControllers()
                .AddTracing(options =>
                {
                    options.ValueMaxStringLength = 50;
                    options.Formatter = new SystemTextJsonFormatter
                    {
                        Options = new JsonSerializerOptions(JsonSerializerDefaults.Web)
                        {
                            Converters =
                            {
                                new JsonStringEnumConverter()
                            }
                        }
                    };
                });
        ...
    }
}

MaskedSerialization

Masked serialization package Byndyusoft.MaskedSerialization is used to hide sensitive data. Is it implemented in NewtonsoftJsonFormatter.cs class.

Contributing

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.

Prerequisites

Make sure you have installed all of the following prerequisites on your development machine:

General folders layout

src

  • source code

tests

  • unit-tests

example

  • example application

Package development lifecycle

  • Implement package logic in src
  • Add or addapt unit-tests (prefer before and simultaneously with coding) in tests
  • Add or change the documentation as needed
  • Open pull request in the correct branch. Target the project's master branch

Maintainers

github.maintain@byndyusoft.com

About

ASP.NET Core MVC tracing.

https://en.byndyusoft.com

License:MIT License


Languages

Language:C# 100.0%