Byndyusoft.AspNetCore.Instrumentation.Tracing
Instrumentation tracing
ASP.NETコアMVCトレース。
dotnet add package Byndyusoft.AspNetCore.Instrumentation.Tracing public 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 ( )
}
}
} ;
} ) ;
.. .
}
}デフォルトのオプションパラメーターがいくつかあります。
マスクされたシリアル化パッケージbyndyusoft.maskedserializationは、機密データを隠すために使用されます。 Newtonsoftjsonformatter.csクラスで実装されていますか。
貢献するには、地元の環境をセットアップする必要があります。前提条件を確認してください。貢献およびワークフローガイドについては、パッケージ開発ライフサイクルを参照してください。
貢献方法の詳細な概要は、寄稿ガイドに記載されています。
開発マシンに次のすべての前提条件をインストールしていることを確認してください。
srcにパッケージロジックを実装しますtestsでユニットテストを追加または追加または追加するmasterブランチをターゲットにします