{"id":43724382,"url":"https://github.com/wayneashleyberry/zaperations","last_synced_at":"2026-02-05T08:36:09.026Z","repository":{"id":81251821,"uuid":"425188403","full_name":"wayneashleyberry/zaperations","owner":"wayneashleyberry","description":"Package zaperations provides a Google Cloud operations suite (formerly Stackdriver) compatible config for the uber-go/zap logger.","archived":false,"fork":false,"pushed_at":"2021-11-06T08:37:38.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-20T13:35:38.446Z","etag":null,"topics":["cloud","config","driver","gcp","go","google","googlecloud","logger","logging","operation","stack","stackdriver","zap"],"latest_commit_sha":null,"homepage":"","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/wayneashleyberry.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":"2021-11-06T08:02:18.000Z","updated_at":"2021-11-06T08:37:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"b9a4e1bf-8aea-4f35-bf7c-2acce9a54735","html_url":"https://github.com/wayneashleyberry/zaperations","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wayneashleyberry/zaperations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayneashleyberry%2Fzaperations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayneashleyberry%2Fzaperations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayneashleyberry%2Fzaperations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayneashleyberry%2Fzaperations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wayneashleyberry","download_url":"https://codeload.github.com/wayneashleyberry/zaperations/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayneashleyberry%2Fzaperations/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29117249,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T05:31:32.482Z","status":"ssl_error","status_checked_at":"2026-02-05T05:31:29.075Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cloud","config","driver","gcp","go","google","googlecloud","logger","logging","operation","stack","stackdriver","zap"],"created_at":"2026-02-05T08:36:08.374Z","updated_at":"2026-02-05T08:36:09.016Z","avatar_url":"https://github.com/wayneashleyberry.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e Package zaperations provides a [Google Cloud Operations](https://cloud.google.com/products/operations) (formerly Stackdriver) compatible config for the excellent [uber-go/zap](https://github.com/uber-go/zap) logger.\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/wayneashleyberry/zaperations.svg)](https://pkg.go.dev/github.com/wayneashleyberry/zaperations)\n[![Go](https://github.com/wayneashleyberry/zaperations/actions/workflows/go.yml/badge.svg)](https://github.com/wayneashleyberry/zaperations/actions/workflows/go.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/wayneashleyberry/zaperations)](https://goreportcard.com/report/github.com/wayneashleyberry/zaperations)\n\n## Example\n\n_This example is using unreleased functionality from go tip that is set to be released in 1.18._\n\n```go\npackage main\n\nimport (\n\t\"runtime/debug\"\n\n\t\"github.com/wayneashleyberry/zaperations/pkg/logger\"\n\t\"github.com/wayneashleyberry/zaperations/pkg/meta\"\n\t\"go.uber.org/zap\"\n)\n\nfunc main() {\n\tlog, err := logger.NewProduction()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tinfo, ok := debug.ReadBuildInfo()\n\tif !ok {\n\t\tpanic(\"could not read build info\")\n\t}\n\n\tvar version string\n\n\tfor _, setting := range info.Settings {\n\t\tif setting.Key == \"gitrevision\" {\n\t\t\tversion = setting.Value\n\t\t}\n\t}\n\n\tlog = log.With(zap.Object(\"serviceContext\", meta.ServiceContext{\n\t\tService: \"logger-demo\",\n\t\tVersion: version,\n\t}))\n\n\tlog.Info(\"Hello, World!\")\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwayneashleyberry%2Fzaperations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwayneashleyberry%2Fzaperations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwayneashleyberry%2Fzaperations/lists"}