{"id":22322509,"url":"https://github.com/josestg/httpreqid","last_synced_at":"2025-06-13T13:08:37.052Z","repository":{"id":225466972,"uuid":"766066407","full_name":"josestg/httpreqid","owner":"josestg","description":"httpreqid is a net/http compatible middleware designed for generating a request ID for each request if it doesn't already have one, and propagates it into the request context and response.","archived":false,"fork":false,"pushed_at":"2024-04-12T09:57:32.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-13T13:08:27.737Z","etag":null,"topics":["go","logging","observability","request-id","slog"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/josestg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-03-02T08:41:35.000Z","updated_at":"2024-03-02T09:37:15.000Z","dependencies_parsed_at":"2024-03-02T10:20:15.506Z","dependency_job_id":"7dda61a2-5f06-4bee-92d7-4d33c420c5fa","html_url":"https://github.com/josestg/httpreqid","commit_stats":null,"previous_names":["josestg/httpreqid"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/josestg/httpreqid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josestg%2Fhttpreqid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josestg%2Fhttpreqid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josestg%2Fhttpreqid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josestg%2Fhttpreqid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josestg","download_url":"https://codeload.github.com/josestg/httpreqid/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josestg%2Fhttpreqid/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259650956,"owners_count":22890385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["go","logging","observability","request-id","slog"],"created_at":"2024-12-04T01:07:35.775Z","updated_at":"2025-06-13T13:08:32.036Z","avatar_url":"https://github.com/josestg.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# httpreqid\n\nhttpreqid is a `net/http` compatible middleware designed for generating a request ID for each request if it doesn't already have one, and propagates it into the request context and response. \n\nBy default, this middleware will look for headers such as `X-Request-ID`, `X-Correlation-ID`, `X-Trace-ID`, `Request-ID`, `Correlation-ID`, and `Trace-ID`.\n\nAdditionally, this middleware provides a handler for `log/slog` that automatically adds the request ID to the log record.\n\n## Install\n\n```shell\ngo get github.com/josestg/httpreqid\n```\n\n## Examples\n\n1. [A Simple Example of Using `crypto/rand`](examples/randstr)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosestg%2Fhttpreqid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosestg%2Fhttpreqid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosestg%2Fhttpreqid/lists"}