{"id":17272567,"url":"https://github.com/rubyist/tracerx","last_synced_at":"2025-10-25T23:40:24.110Z","repository":{"id":57480068,"uuid":"24793307","full_name":"rubyist/tracerx","owner":"rubyist","description":"Output tracing information in your Go app based on environment variables","archived":false,"fork":false,"pushed_at":"2017-09-27T16:34:26.000Z","size":5,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-27T22:04:10.090Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/rubyist.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}},"created_at":"2014-10-04T15:31:06.000Z","updated_at":"2024-04-26T10:48:24.000Z","dependencies_parsed_at":"2022-09-26T17:41:35.583Z","dependency_job_id":null,"html_url":"https://github.com/rubyist/tracerx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyist%2Ftracerx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyist%2Ftracerx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyist%2Ftracerx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyist%2Ftracerx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubyist","download_url":"https://codeload.github.com/rubyist/tracerx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248845584,"owners_count":21170808,"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":[],"created_at":"2024-10-15T08:48:56.520Z","updated_at":"2025-10-13T18:01:55.454Z","avatar_url":"https://github.com/rubyist.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tracerx\n\nTracerx is a simple tracing package that logs messages depending on environment variables.\nIt is very much inspired by git's GIT_TRACE mechanism.\n\n[![GoDoc](https://godoc.org/github.com/rubyist/tracerx?status.svg)](https://godoc.org/github.com/rubyist/tracerx)\n\n## Installation\n\n```\n  go get github.com/rubyist/tracerx\n```\n\n## Example\n\n```go\ntracerx.DefaultKey = \"FOO\"\ntracerx.Printf(\"send message\")\n\ntracerx.PrintfKey(\"BAR\", \"do a thing\")\n\nt := time.Now()\n// Do some stuff\ntracerx.PerformanceSince(\"BAR\", \"command x\", t)\n```\n\nThis example will send tracing output based on the environment variables `FOO_TRACE` and `BAR_TRACE`.\n\nThe values control where the tracing is output as follows:\n\n```\nunset, 0, or \"false\":   no output\n1, 2:                   stderr\nabsolute path:          output will be written to the file\n3 - 10:                 output will be written to that file descriptor\n```\n\nIf an associated `BAR_TRACE_PERFORMANCE` is set to 1 or \"true\", the `PerformanceSince` line will\noutput timing information.\n\nKeys can also be disabled. See the GoDoc for full API documentation.\n\n## Bugs, Issues, Feedback\n\nRight here on GitHub: [https://github.com/rubyist/tracerx](https://github.com/rubyist/tracerx)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyist%2Ftracerx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubyist%2Ftracerx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyist%2Ftracerx/lists"}