Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/i-rzr-i/uniqxtraceidmw
- Owner: I-RzR-I
- License: mit
- Created: 2022-08-02T06:11:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-09T22:54:46.000Z (over 1 year ago)
- Last Synced: 2025-01-05T20:15:50.568Z (10 days ago)
- Topics: header, http, logs, middleware, response, trace, tracing, variable, x-trace
- Language: C#
- Homepage:
- Size: 48.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)