{"id":13508150,"url":"https://github.com/bugsnag-elixir/plugsnag","last_synced_at":"2026-02-21T17:34:13.273Z","repository":{"id":18772373,"uuid":"21985363","full_name":"bugsnag-elixir/plugsnag","owner":"bugsnag-elixir","description":"A Bugsnag notifier for Elixir's plug","archived":false,"fork":false,"pushed_at":"2025-08-11T14:08:06.000Z","size":93,"stargazers_count":67,"open_issues_count":2,"forks_count":41,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-01-07T11:56:29.841Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"valerietrudell/rails_engine","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bugsnag-elixir.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2014-07-18T15:41:49.000Z","updated_at":"2025-08-11T14:07:52.000Z","dependencies_parsed_at":"2023-01-13T20:00:20.811Z","dependency_job_id":null,"html_url":"https://github.com/bugsnag-elixir/plugsnag","commit_stats":null,"previous_names":["jarednorman/plugsnag"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/bugsnag-elixir/plugsnag","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugsnag-elixir%2Fplugsnag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugsnag-elixir%2Fplugsnag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugsnag-elixir%2Fplugsnag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugsnag-elixir%2Fplugsnag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bugsnag-elixir","download_url":"https://codeload.github.com/bugsnag-elixir/plugsnag/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugsnag-elixir%2Fplugsnag/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29688272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T15:51:39.154Z","status":"ssl_error","status_checked_at":"2026-02-21T15:49:03.425Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2024-08-01T02:00:48.942Z","updated_at":"2026-02-21T17:34:08.265Z","avatar_url":"https://github.com/bugsnag-elixir.png","language":"Elixir","funding_links":[],"categories":["Framework Components"],"sub_categories":[],"readme":"# Plugsnag\n\n![Elixir CI](https://github.com/bugsnag-elixir/plugsnag/workflows/Elixir%20CI/badge.svg)\n[![Hex Version](https://img.shields.io/hexpm/v/plugsnag.svg)](https://hex.pm/packages/plugsnag)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-lightgreen.svg)](https://hexdocs.pm/plugsnag/)\n[![Total Download](https://img.shields.io/hexpm/dt/plugsnag.svg)](https://hex.pm/packages/plugsnag)\n[![License](https://img.shields.io/hexpm/l/plugsnag.svg)](https://github.com/bugsnag-elixir/plugsnag/blob/master/LICENSE.md)\n[![Last Updated](https://img.shields.io/github/last-commit/bugsnag-elixir/plugsnag.svg)](https://github.com/bugsnag-elixir/plugsnag/commits/master)\n\nReport errors in your Plug stack or whatever to [Bugsnag](https://bugsnag.com),\nbecause that's a super great place to send your errors.\n\n## Installation/Usage\n\nJust throw it in your deps in your `mix.exs`:\n\n```elixir\ndefp deps do\n  [\n    {:plugsnag, \"~\u003e 1.7.0\"}\n  ]\nend\n```\n\nThen you'll need to configure it with your API key as\nper [the bugsnag-elixir docs](https://github.com/jarednorman/bugsnag-elixir).\n\nTo use the plug, `use` it in your router. For example in an Phoenix app:\n\n```elixir\ndefmodule YourApp.Router do\n  use Phoenix.Router\n  use Plugsnag\n\n  # ...\nend\n```\n\nIf you want to define your own `handle_errors` functions using [Plug.ErrorHandler](https://hexdocs.pm/plug/Plug.ErrorHandler.html), then you can call `Plugsnag.handle_errors/{2,3}` directly.\n\n```elixir\ndefmodule YourApp.Router do\n  use Phoenix.Router\n  use Plug.ErrorHandler\n  # ...\n  defp handle_errors(conn, assigns) do\n    Plugsnag.handle_errors(conn, assigns)\n    # do your own handling\n  end\nend\n```\n\n### Filtering Parameters and Headers\n\nBy default, the `BasicErrorReportBuilder` will filter out password parameters from error reports sent to Bugsnag. You can customize this list inside your configuration:\n\n```elixir\nconfig :plugsnag, filter: [params: ~w(password password_confirmation super_sekrit), headers: []]\n\n```\n\nBy default, query strings are not filtered and may still leak sensitive information stored there\n(which shouldn't be, anyway). To filter the query string in the generated report, set the\n`:filter_query_string` config option to true:\n\n```elixir\nconfig :plugsnag, filter_query_string: true\n\n```\n\n## Customizing error reporting\n\nYou can also customize how an error is sent to bugsnag-elixir by passing your\nown custom ErrorReportBuilder with the `:error_report_builder` option.\n\n```elixir\ndefmodule YourApp.Router do\n  use Phoenix.Router\n  use Plugsnag, error_report_builder: YourApp.ErrorReportBuilder\n\n  # ...\nend\n```\n\n```elixir\ndefmodule YourApp.ErrorReportBuilder do\n  @behaviour Plugsnag.ErrorReportBuilder\n\n  def build_error_report(error_report, conn) do\n    error_report\n    |\u003e Plugsnag.BasicErrorReportBuilder.build_error_report(conn)\n    |\u003e put_user_info(conn)\n  end\n\n  defp put_user_info(error_report, conn) do\n    current_user = conn.assigns[:current_user]\n\n    user_info =  %{\n      id: current_user.id\n    }\n\n    %{error_report | user: user_info}\n  end\nend\n```\n\n## Copyright and License\n\nCopyright (c) 2015 Jared Norman, Andrew Harvey, Guilherme de Maio\n\nThis work is free. You can redistribute it and/or modify it under the\nterms of the MIT License. See the [LICENSE.md](./LICENSE.md) file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugsnag-elixir%2Fplugsnag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbugsnag-elixir%2Fplugsnag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugsnag-elixir%2Fplugsnag/lists"}