{"id":19146269,"url":"https://github.com/01walid/echosentry","last_synced_at":"2025-05-07T02:04:00.550Z","repository":{"id":57490768,"uuid":"46195973","full_name":"01walid/echosentry","owner":"01walid","description":"A sentry (raven-go) middleware for echo micro web framework","archived":false,"fork":false,"pushed_at":"2018-05-05T17:33:37.000Z","size":6,"stargazers_count":16,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T02:03:48.231Z","etag":null,"topics":["echo","error-log","error-monitoring","error-reporting","golang","middleware","raven","sentry","sentry-client"],"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/01walid.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":"2015-11-14T23:15:39.000Z","updated_at":"2023-02-05T11:35:59.000Z","dependencies_parsed_at":"2022-09-08T04:51:46.217Z","dependency_job_id":null,"html_url":"https://github.com/01walid/echosentry","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/01walid%2Fechosentry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/01walid%2Fechosentry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/01walid%2Fechosentry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/01walid%2Fechosentry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/01walid","download_url":"https://codeload.github.com/01walid/echosentry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252798852,"owners_count":21805886,"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":["echo","error-log","error-monitoring","error-reporting","golang","middleware","raven","sentry","sentry-client"],"created_at":"2024-11-09T07:43:43.404Z","updated_at":"2025-05-07T02:04:00.532Z","avatar_url":"https://github.com/01walid.png","language":"Go","readme":"# echosentry\n[![GoDoc](https://godoc.org/github.com/01walid/echosentry?status.svg)](https://godoc.org/github.com/01walid/echosentry)\n\nA sentry ([raven-go](https://github.com/getsentry/raven-go)) middleware for [echo](https://github.com/labstack/echo) (v2) micro web framework.\n\n**Note**: this support echo with the standard http engine (no fasthttp support yet)\n\n# Usage\n\n```go\nechosentry.SetDSN(\"https://\u003ckey\u003e:\u003csecret\u003e@app.getsentry.com/\u003cproject\u003e\")\ne.Use(echosentry.Middleware())\n\n```\n\nBy default, the middleware logs the HTTP context and sends it along with the stacktrace, this adds info about the user's browser, URL, OS, device, interface_type ..etc.\n\nYou can disable HTTP context as follow:\n\n```go\nechosentry.WithContext(false)\n```\n\n## Additional tags\n\nYou can append additional tags to be captured by Sentry. Tags content can be extracted from the current request context or just static tags, e.g. tags[\"app_version\"] = appVersion.\n\n```go\nechosentry.SetTags(func(c echo.Context) map[string]string {\n    return map[string]string{\n        \"endpoint\":       c.Request().URL.String(),\n        \"http_interface\": c.Request().Proto,\n        \"app_version\":    appVersion,\n    }\n})\n```\n\n\n# TODO\n- Log the user info (user context)\n- Expose more options\n\n# License\nMIT License. A copy is included with the source.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F01walid%2Fechosentry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F01walid%2Fechosentry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F01walid%2Fechosentry/lists"}