{"id":19654144,"url":"https://github.com/aimenux/correlationidheaderdemo","last_synced_at":"2026-06-17T07:31:24.956Z","repository":{"id":116559699,"uuid":"520677738","full_name":"aimenux/CorrelationIdHeaderDemo","owner":"aimenux","description":"Passing correlation id in request/response headers","archived":false,"fork":false,"pushed_at":"2025-06-03T21:26:08.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-22T07:05:50.099Z","etag":null,"topics":["correlation-id","fluent-assertions","integration-testing","middleware","net60","nsubstitute","serilog","webapi","xunit"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aimenux.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-02T23:29:13.000Z","updated_at":"2025-06-03T21:26:09.000Z","dependencies_parsed_at":"2023-07-08T16:01:28.808Z","dependency_job_id":null,"html_url":"https://github.com/aimenux/CorrelationIdHeaderDemo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aimenux/CorrelationIdHeaderDemo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FCorrelationIdHeaderDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FCorrelationIdHeaderDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FCorrelationIdHeaderDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FCorrelationIdHeaderDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aimenux","download_url":"https://codeload.github.com/aimenux/CorrelationIdHeaderDemo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FCorrelationIdHeaderDemo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34439294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["correlation-id","fluent-assertions","integration-testing","middleware","net60","nsubstitute","serilog","webapi","xunit"],"created_at":"2024-11-11T15:16:27.597Z","updated_at":"2026-06-17T07:31:24.950Z","avatar_url":"https://github.com/aimenux.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![.NET](https://github.com/aimenux/CorrelationIdHeaderDemo/actions/workflows/ci.yml/badge.svg)](https://github.com/aimenux/CorrelationIdHeaderDemo/actions/workflows/ci.yml)\n\n# CorrelationIdHeaderDemo\n```\nPassing correlation id in request/response headers\n```\n\n\u003e In this repo, i m exploring various ways in order to :\n\u003e\u003e\n\u003e\u003e :pushpin: pass correlation id in request/response headers\n\u003e\u003e\n\u003e\u003e :pushpin: propagate correlation id across http calls\n\u003e\u003e\n\u003e\u003e :pushpin: use correlation id in trace identifier\n\u003e\u003e\n\u003e\u003e :pushpin: enrich logs with correlation id\n\u003e\n\u003e\n\u003e :one: `Example01` use a custom middleware, a custom delegation handler and a custom log enricher\n\u003e\n\u003e :two: `Example02` use a custom middleware and a custom delegation handler based on [built-in accessor class](https://docs.microsoft.com/en-us/aspnet/core/fundamentals/http-context)\n\u003e\n\u003e :three: `Example03` use a custom middleware and a custom delegation handler based on a [custom accessor class](https://docs.microsoft.com/en-us/dotnet/api/system.threading.asynclocal-1)\n\u003e\n\u003e :four: `Example04` use [CorrelationId middelware](https://github.com/stevejgordon/CorrelationId) and a custom delegation handler\n\u003e\n\n**`Tools`** : vs22, net 6.0, web api, serilog, integration-testing, fluent-assertions, nsubstitute","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimenux%2Fcorrelationidheaderdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faimenux%2Fcorrelationidheaderdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimenux%2Fcorrelationidheaderdemo/lists"}