{"id":22275669,"url":"https://github.com/igrek8/trace-nestjs","last_synced_at":"2025-07-28T16:32:19.770Z","repository":{"id":61533087,"uuid":"552246263","full_name":"igrek8/trace-nestjs","owner":"igrek8","description":"Adds x-response-id header with uuid","archived":false,"fork":false,"pushed_at":"2024-11-15T19:17:13.000Z","size":1928,"stargazers_count":5,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-16T01:33:04.071Z","etag":null,"topics":["logging","nest","nestjs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/igrek8.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-16T06:22:21.000Z","updated_at":"2024-10-29T19:40:01.000Z","dependencies_parsed_at":"2023-09-28T01:46:11.711Z","dependency_job_id":"65b2372b-1d58-4875-8c7c-b9ccb2d0ba8c","html_url":"https://github.com/igrek8/trace-nestjs","commit_stats":{"total_commits":154,"total_committers":3,"mean_commits":"51.333333333333336","dds":0.07792207792207795,"last_synced_commit":"e465a9c005dcda3ea712c2f720fde426f3900a64"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrek8%2Ftrace-nestjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrek8%2Ftrace-nestjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrek8%2Ftrace-nestjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrek8%2Ftrace-nestjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/igrek8","download_url":"https://codeload.github.com/igrek8/trace-nestjs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227932626,"owners_count":17843136,"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":["logging","nest","nestjs"],"created_at":"2024-12-03T14:11:30.875Z","updated_at":"2024-12-03T14:11:31.541Z","avatar_url":"https://github.com/igrek8.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trace Nest.js (Express.js) Request-Response Cycle\n\nAdds `X-Request-ID` and `X-Response-ID` headers that allow context log entries using [`gc-json-logger`](https://github.com/igrek8/gc-json-logger-nestjs).\n\n[![NPM](https://badgen.net/npm/v/trace-nestjs)](https://www.npmjs.com/trace-nestjs)\n[![Coverage](https://codecov.io/gh/igrek8/trace-nestjs/branch/main/graph/badge.svg)](https://codecov.io/gh/igrek8/trace-nestjs)\n![Release](https://badgen.net/github/checks/igrek8/trace-nestjs)\n![License](https://badgen.net/github/license/igrek8/trace-nestjs)\n\n## Installation\n\n```bash\nnpm install --save \\\n  gc-json-logger \\\n  gc-json-logger-nestjs \\\n  trace-nestjs\n\nyarn add \\\n  gc-json-logger \\\n  gc-json-logger-nestjs \\\n  trace-nestjs\n```\n\n## OpenAPI\n\n![Swagger](./media/swagger.png)\n\n## Usage\n\n[Example](./src/demo/main.ts)\n\n```jsonc\n/* reduced logs */\n{\"message\":\"POST /\",\"logging.googleapis.com/operation\":{\"id\":\"016a575d-39cf-4a3a-b99d-91341c42aa31\"}}\n{\"message\":\"do work\",\"logging.googleapis.com/operation\":{\"id\":\"016a575d-39cf-4a3a-b99d-91341c42aa31\"}}\n{\"message\":\"201 POST /trace (4ms)\",\"logging.googleapis.com/operation\":{\"id\":\"016a575d-39cf-4a3a-b99d-91341c42aa31\"}}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figrek8%2Ftrace-nestjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figrek8%2Ftrace-nestjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figrek8%2Ftrace-nestjs/lists"}