https://github.com/soenneker/soenneker.applicationinsights.correlator.jwt
A telemetry initializer that adds a request's authorization header
https://github.com/soenneker/soenneker.applicationinsights.correlator.jwt
application application-insights applicationinsights azure correlation correlator csharp dotnet insights jwt jwttelemetrycorrelator request util
Last synced: 5 months ago
JSON representation
A telemetry initializer that adds a request's authorization header
- Host: GitHub
- URL: https://github.com/soenneker/soenneker.applicationinsights.correlator.jwt
- Owner: soenneker
- License: mit
- Created: 2024-03-21T22:00:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-02T18:34:58.000Z (over 1 year ago)
- Last Synced: 2025-03-04T13:46:35.118Z (over 1 year ago)
- Topics: application, application-insights, applicationinsights, azure, correlation, correlator, csharp, dotnet, insights, jwt, jwttelemetrycorrelator, request, util
- Language: C#
- Homepage: https://soenneker.com
- Size: 694 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.nuget.org/packages/soenneker.applicationinsights.correlator.jwt/)
[](https://github.com/soenneker/soenneker.applicationinsights.correlator.jwt/actions/workflows/publish-package.yml)
[](https://www.nuget.org/packages/soenneker.applicationinsights.correlator.jwt/)
#  Soenneker.ApplicationInsights.Correlator.Jwt
### A telemetry initializer that adds a request's authorization header
## Installation
```
dotnet add package Soenneker.ApplicationInsights.Correlator.Jwt
```
## Usage
### 1. Add the following to your `Startup.cs` file
```csharp
public void ConfigureServices(IServiceCollection services)
{
services.AddJwtTelemetryCorrelatorAsSingleton();
}
```
That's it!
If requests are made with the request header`Authorization`, and have the scheme `bearer `, `Jwt` will be visible on the individual requests in Application Insights.