{"id":18032062,"url":"https://github.com/piotrkowalczuk/zapstackdriver","last_synced_at":"2025-04-04T21:44:45.312Z","repository":{"id":57489129,"uuid":"120288993","full_name":"piotrkowalczuk/zapstackdriver","owner":"piotrkowalczuk","description":"Helper package that allows logging using zap in stackdriver compatible format.","archived":false,"fork":false,"pushed_at":"2023-05-15T11:10:11.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T06:29:09.304Z","etag":null,"topics":["logging","stackdriver","zap"],"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/piotrkowalczuk.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":"2018-02-05T10:21:00.000Z","updated_at":"2023-03-28T10:17:24.000Z","dependencies_parsed_at":"2024-10-30T10:23:07.803Z","dependency_job_id":null,"html_url":"https://github.com/piotrkowalczuk/zapstackdriver","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrkowalczuk%2Fzapstackdriver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrkowalczuk%2Fzapstackdriver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrkowalczuk%2Fzapstackdriver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrkowalczuk%2Fzapstackdriver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piotrkowalczuk","download_url":"https://codeload.github.com/piotrkowalczuk/zapstackdriver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247256089,"owners_count":20909240,"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","stackdriver","zap"],"created_at":"2024-10-30T10:12:08.381Z","updated_at":"2025-04-04T21:44:45.291Z","avatar_url":"https://github.com/piotrkowalczuk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zapstackdriver [![GoDoc](https://godoc.org/github.com/piotrkowalczuk/zapstackdriver?status.svg)](https://godoc.org/github.com/piotrkowalczuk/zapstackdriver)\n\n## Compatibility\n\n* [LogSeverity](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#LogSeverity) - is mapped from zap log level.\n* [HttpRequest](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#HttpRequest) - using [HTTPRequest](https://godoc.org/github.com/piotrkowalczuk/zapstackdriver#HTTPRequest)\n* [LogEntryOperation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#LogEntryOperation) - through [operation](https://godoc.org/github.com/piotrkowalczuk/zapstackdriver/operation) package interface\n* [LogEntrySourceLocation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#LogEntrySourceLocation) - it's filled automatically, due to Go limitations function name is missing\n* [serviceContext](https://cloud.google.com/error-reporting/docs/formatting-error-messages) - using [ServiceContext](https://godoc.org/github.com/piotrkowalczuk/zapstackdriver#ServiceContext) \n\n## Benchmarks\n\nCustom [EncodeEntry](https://godoc.org/github.com/piotrkowalczuk/zapstackdriver#Encoder.EncodeEntry) does not slows down zap significantly.\n\n```\ngoos: darwin\ngoarch: amd64\npkg: github.com/piotrkowalczuk/zapstackdriver\nBenchmarkEncoder/production-2         \t 1000000\t      1321 ns/op\t     321 B/op\t       3 allocs/op\nBenchmarkEncoder/development-2        \t  200000\t      7150 ns/op\t     536 B/op\t      12 allocs/op\nBenchmarkEncoder/stackdriver-2        \t 1000000\t      1332 ns/op\t     325 B/op\t       3 allocs/op\nPASS\nok  \tgithub.com/piotrkowalczuk/zapstackdriver\t4.225s\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiotrkowalczuk%2Fzapstackdriver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiotrkowalczuk%2Fzapstackdriver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiotrkowalczuk%2Fzapstackdriver/lists"}