{"id":19287060,"url":"https://github.com/alexlast/bunmicro","last_synced_at":"2026-05-16T09:07:26.200Z","repository":{"id":191614754,"uuid":"684991216","full_name":"AlexLast/bunmicro","owner":"AlexLast","description":"A query hook for uptrace/bun that logs with go-micro/logger.","archived":false,"fork":false,"pushed_at":"2024-11-25T01:42:38.000Z","size":23,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-05T19:12:05.725Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlexLast.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":"2023-08-30T09:24:20.000Z","updated_at":"2024-06-11T15:10:17.000Z","dependencies_parsed_at":"2025-01-05T19:11:35.367Z","dependency_job_id":null,"html_url":"https://github.com/AlexLast/bunmicro","commit_stats":null,"previous_names":["alexlast/bunmicro"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexLast%2Fbunmicro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexLast%2Fbunmicro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexLast%2Fbunmicro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexLast%2Fbunmicro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexLast","download_url":"https://codeload.github.com/AlexLast/bunmicro/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240391799,"owners_count":19793954,"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-11-09T22:05:10.907Z","updated_at":"2026-05-16T09:07:26.166Z","avatar_url":"https://github.com/AlexLast.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bunmicro\nA query hook for [uptrace/bun](https://github.com/uptrace/bun) that logs with [go-micro/logger](https://github.com/go-micro/go-micro/tree/master/logger).\n\n```bash\n$ go get github.com/alexlast/bunmicro\n```\n\nAll errors will be logged at error level with the hook enabled, everything else will be logged as debug. If `SlowDuration` is defined, only operations taking longer than the defined duration will be logged.\n\n## Usage\n```go\ndb := bun.NewDB()\ndb.AddQueryHook(bunmicro.NewQueryHook(bunmicro.QueryHookOptions{\n    Logger:       logger.DefaultLogger,\n    SlowDuration: 200 * time.Millisecond, // Omit to log all operations as debug\n}))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexlast%2Fbunmicro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexlast%2Fbunmicro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexlast%2Fbunmicro/lists"}