Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/i-rzr-i/uniqxtraceidmw

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.
https://github.com/i-rzr-i/uniqxtraceidmw

header http logs middleware response trace tracing variable x-trace

Last synced: 3 days ago
JSON representation

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.

Awesome Lists containing this project

README

        

> **Note** This repository is developed in .netstandard2.0

[![NuGet Version](https://img.shields.io/nuget/v/UniqXTraceIdMW.svg?style=flat&logo=nuget)](https://www.nuget.org/packages/UniqXTraceIdMW/)
[![Nuget Downloads](https://img.shields.io/nuget/dt/UniqXTraceIdMW.svg?style=flat&logo=nuget)](https://www.nuget.org/packages/UniqXTraceIdMW)

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](docs/usage.md)
1. [CHANGELOG](docs/CHANGELOG.md)
1. [BRANCH-GUIDE](docs/branch-guide.md)