Skip to content

Generate and overwrite default/predefined trace identifiers in the HTTP context. Value of 'HttpContext.TraceIdentifier' is changed and also add new header variable in 'HttpContext.Response.Headers' named 'X-Trace-Id' to trace requests in trace logs.

License

Notifications You must be signed in to change notification settings

I-RzR-I/UniqXTraceIdMW

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note This repository is developed in .netstandard2.0

NuGet Version Nuget Downloads

One important thing about this repository is that you can customize the default trace identified. Using in project uniq trace id (customized), allow you to trace and identify requests in trace logs.

Once you use this repository, you have the possibility to overwrite existing HTTP context trace id with your own rules. On using, in HTTP context value of HttpContext.TraceIdentifier is changed and also is added new header variable in HttpContext.Response.Headers named X-Trace-Id.

No additional components or packs are required for use. So, it only needs to be added/installed in the project and can be used instantly.

In case you wish to use it in your project, u can install the package from nuget.org or specify what version you want:

Install-Package UniqXTraceIdMW -Version x.x.x.x

Content

  1. USING
  2. CHANGELOG
  3. BRANCH-GUIDE

About

Generate and overwrite default/predefined trace identifiers in the HTTP context. Value of 'HttpContext.TraceIdentifier' is changed and also add new header variable in 'HttpContext.Response.Headers' named 'X-Trace-Id' to trace requests in trace logs.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published