{"id":25566571,"url":"https://github.com/pdmlab/express-correlationid-sample","last_synced_at":"2026-04-12T04:31:53.539Z","repository":{"id":66175060,"uuid":"137262802","full_name":"PDMLab/express-correlationid-sample","owner":"PDMLab","description":"Shows the usage of express-correlation-id package with express controllers and their dependencies","archived":false,"fork":false,"pushed_at":"2019-04-08T21:12:50.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-05T21:36:10.018Z","etag":null,"topics":["expressjs","http","httpserver","microservices","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/PDMLab.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":"2018-06-13T19:43:44.000Z","updated_at":"2019-04-08T21:12:51.000Z","dependencies_parsed_at":"2023-02-21T06:01:24.458Z","dependency_job_id":null,"html_url":"https://github.com/PDMLab/express-correlationid-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PDMLab/express-correlationid-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PDMLab%2Fexpress-correlationid-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PDMLab%2Fexpress-correlationid-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PDMLab%2Fexpress-correlationid-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PDMLab%2Fexpress-correlationid-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PDMLab","download_url":"https://codeload.github.com/PDMLab/express-correlationid-sample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PDMLab%2Fexpress-correlationid-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31704492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T21:17:31.016Z","status":"online","status_checked_at":"2026-04-12T02:00:06.763Z","response_time":58,"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":["expressjs","http","httpserver","microservices","nodejs"],"created_at":"2025-02-20T22:33:09.398Z","updated_at":"2026-04-12T04:31:53.527Z","avatar_url":"https://github.com/PDMLab.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node.js express correlation id sample\n\nThis sample shows the usage of `express-correlation-id` package with `express` controllers having dependencies being called sync or async including error handling.\n\n## Running the sample\n\n`npm start`:\n\n```\nserver listening on port 3000\n```\n\n`http get localhost:3000/api1/hello`:\n\n```\nAPI 1 controller correlation id: 03b37b23-6451-4c57-8722-cef475d0c914\nAPI 1 handler correlation id: 03b37b23-6451-4c57-8722-cef475d0c914\nAPI 1 sync dependency correlation id: 03b37b23-6451-4c57-8722-cef475d0c914\nAPI 1 async dependency correlation id: 03b37b23-6451-4c57-8722-cef475d0c914\n```\n\n`http get localhost:3000/api1/hellofail`:\n\n```\nAPI 1 controller fail correlation id: a13b0f70-5bdb-4ede-90b3-cc1de33efdd9\nAPI 1 fail handler correlation id: a13b0f70-5bdb-4ede-90b3-cc1de33efdd9\nAPI 1 sync dependency correlation id: a13b0f70-5bdb-4ede-90b3-cc1de33efdd9\nAPI 1 async dependency correlation id: a13b0f70-5bdb-4ede-90b3-cc1de33efdd9\nAPI 1 fail handler catch correlation id: a13b0f70-5bdb-4ede-90b3-cc1de33efdd9\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdmlab%2Fexpress-correlationid-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpdmlab%2Fexpress-correlationid-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdmlab%2Fexpress-correlationid-sample/lists"}