{"id":15950068,"url":"https://github.com/mimiquate/tower_bugsnag","last_synced_at":"2025-03-17T23:32:30.008Z","repository":{"id":257808418,"uuid":"866169232","full_name":"mimiquate/tower_bugsnag","owner":"mimiquate","description":"Elixir error tracking and reporting to BugSnag","archived":false,"fork":false,"pushed_at":"2024-10-24T18:45:41.000Z","size":74,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-25T17:34:33.466Z","etag":null,"topics":["bugsnag","bugsnag-notifier","elixir","error-handling","error-reporting","error-tracking","tower"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/tower_bugsnag","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mimiquate.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2024-10-01T19:06:38.000Z","updated_at":"2024-10-24T18:45:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"04a0bb2f-d87f-4e41-a3c4-34c2fdcca863","html_url":"https://github.com/mimiquate/tower_bugsnag","commit_stats":null,"previous_names":["mimiquate/tower_bugsnag"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mimiquate%2Ftower_bugsnag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mimiquate%2Ftower_bugsnag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mimiquate%2Ftower_bugsnag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mimiquate%2Ftower_bugsnag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mimiquate","download_url":"https://codeload.github.com/mimiquate/tower_bugsnag/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221703433,"owners_count":16866539,"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":["bugsnag","bugsnag-notifier","elixir","error-handling","error-reporting","error-tracking","tower"],"created_at":"2024-10-07T12:57:56.531Z","updated_at":"2025-03-17T23:32:30.001Z","avatar_url":"https://github.com/mimiquate.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TowerBugsnag\n\n[![ci](https://github.com/mimiquate/tower_bugsnag/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/mimiquate/tower_bugsnag/actions?query=branch%3Amain)\n[![Hex.pm](https://img.shields.io/hexpm/v/tower_bugsnag.svg)](https://hex.pm/packages/tower_bugsnag)\n[![Documentation](https://img.shields.io/badge/Documentation-purple.svg)](https://hexdocs.pm/tower_bugsnag)\n\nElixir exception tracking and reporting to [Insight Hub](https://www.bugsnag.com/) ([formerly](https://smartbear.com/blog/introducing-insight-hub) BugSnag).\n\n[Tower](https://github.com/mimiquate/tower) reporter for Insight Hub.\n\n## Installation\n\nPackage can be installed by adding `tower_bugsnag` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:tower_bugsnag, \"~\u003e 0.3.5\"}\n  ]\nend\n```\n\n## Usage\n\nRegister `TowerBugsnag` as a reporter.\n\n```elixir\n# config/config.exs\n\nconfig(\n  :tower,\n  :reporters,\n  [\n    # along any other possible reporters\n    TowerBugsnag\n  ]\n)\n```\n\nAnd finally configure `:tower_bugsnag`, with at least it's API key.\n\n```elixir\n# config/runtime.exs\n\nif config_env() == :prod do\n  config :tower_bugsnag, api_key: System.get_env(\"BUGSNAG_API_KEY\")\nend\n```\n\nThat's it.\n\nIt will report any errors (exceptions, throws or abnormal exits) within your application. That includes errors in\nany plug call (including Phoenix), Oban job, async task or any other Elixir process.\n\n### Manual reporting\n\nYou can manually report errors just by informing `Tower` about any manually caught exceptions, throws or abnormal exits.\n\n\n```elixir\ntry do\n  # possibly crashing code\nrescue\n  exception -\u003e\n    Tower.report_exception(exception, __STACKTRACE__)\nend\n```\n\nMore details on https://hexdocs.pm/tower/Tower.html#module-manual-reporting.\n\n## License\n\nCopyright 2024 Mimiquate\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmimiquate%2Ftower_bugsnag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmimiquate%2Ftower_bugsnag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmimiquate%2Ftower_bugsnag/lists"}