{"id":23692502,"url":"https://github.com/yext/glog-contrib","last_synced_at":"2025-09-02T20:33:09.312Z","repository":{"id":14803621,"uuid":"17525882","full_name":"yext/glog-contrib","owner":"yext","description":"Contributed code for use with the glog package.  For example, logging backends that integrate with other services.","archived":false,"fork":false,"pushed_at":"2023-07-12T21:13:53.000Z","size":58,"stargazers_count":2,"open_issues_count":0,"forks_count":4,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-07-30T14:34:06.693Z","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/yext.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":"2014-03-07T20:09:37.000Z","updated_at":"2022-12-08T16:10:44.000Z","dependencies_parsed_at":"2024-06-19T10:09:46.767Z","dependency_job_id":null,"html_url":"https://github.com/yext/glog-contrib","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yext%2Fglog-contrib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yext%2Fglog-contrib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yext%2Fglog-contrib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yext%2Fglog-contrib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yext","download_url":"https://codeload.github.com/yext/glog-contrib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231810497,"owners_count":18430000,"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-12-30T03:28:24.404Z","updated_at":"2024-12-30T03:28:28.658Z","avatar_url":"https://github.com/yext.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"glog-contrib\n============\n\nContributed code for use with the glog package.  For example, logging backends that integrate with other services.\n\n## Sentry\n\nThe Sentry package contains an implementation of a bridge between\nthe sentry-go package and glog which allows for glog errors of\nlevel ERROR to be tracked as errors in Sentry. This includes\ncustom code that interfaces with the xerrors package (as well\nas the Yext fork named yerrors) in order to send stack trace\ndata for the glog invocation, error object construction,\nand any masked error calls to Sentry.\n\n`sentry.CaptureErrors` is the entrypoint for tracking Sentry exceptions via glog.\nGiven Sentry DSNs and client options (DSN should not be specified in opts),\nconstructs individual Sentry Client's for each DSN. The glog.Event channel\nshould be provided by running `glog.RegisterBackend()`. For example:\n\n```go\nsentry.CaptureErrors(\n  \"projectName\",\n  []string{\"https://primaryDsn\", \"https://optionalSecondaryDsn\", ...},\n  sentrygo.ClientOptions{\n    Release: \"release\",\n    Environment: \"prod\",\n  },\n  glog.RegisterBackend())\n```\n\nWhen an event is received via glog at the ERROR severity,\nthe first provided DSN will be used, unless a `sentry.AltDsn`\nis tagged on the glog event, in which case the specified client\nfor that DSN will be used:\n\n```go\nglog.Error(\"error for secondary DSN\", sentry.AltDsn(\"https://optionalSecondaryDsn\"))\n```\n\n## Installation\nglog-contrib is released as a Go module. To download the latest version, run\n```\ngo get github.com/yext/glog-contrib\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyext%2Fglog-contrib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyext%2Fglog-contrib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyext%2Fglog-contrib/lists"}