{"id":13761652,"url":"https://github.com/opencensus-beam/opencensus_phoenix","last_synced_at":"2025-07-28T05:33:13.748Z","repository":{"id":55886282,"uuid":"176390879","full_name":"opencensus-beam/opencensus_phoenix","owner":"opencensus-beam","description":"OpenCensus instrumentation for the Phoenix framework","archived":false,"fork":false,"pushed_at":"2021-01-13T11:10:55.000Z","size":16,"stargazers_count":25,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-09T18:56:07.134Z","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":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opencensus-beam.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}},"created_at":"2019-03-19T00:24:08.000Z","updated_at":"2024-10-27T03:45:02.000Z","dependencies_parsed_at":"2022-08-15T08:40:23.515Z","dependency_job_id":null,"html_url":"https://github.com/opencensus-beam/opencensus_phoenix","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/opencensus-beam/opencensus_phoenix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencensus-beam%2Fopencensus_phoenix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencensus-beam%2Fopencensus_phoenix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencensus-beam%2Fopencensus_phoenix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencensus-beam%2Fopencensus_phoenix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opencensus-beam","download_url":"https://codeload.github.com/opencensus-beam/opencensus_phoenix/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencensus-beam%2Fopencensus_phoenix/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267468305,"owners_count":24092321,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-03T14:00:21.247Z","updated_at":"2025-07-28T05:33:13.724Z","avatar_url":"https://github.com/opencensus-beam.png","language":"Elixir","funding_links":[],"categories":["Integrations"],"sub_categories":["Erlang/Elixir"],"readme":"# OpencensusPhoenix\n\n[![CircleCI](https://circleci.com/gh/opencensus-beam/opencensus_phoenix.svg?style=svg)](https://circleci.com/gh/opencensus-beam/opencensus_phoenix)\n[![Hex version badge](https://img.shields.io/hexpm/v/opencensus_phoenix.svg)](https://hex.pm/packages/opencensus_phoenix)\n## Phoenix 1.5\nPhoenix has abandoned instrumenters in 1.5 in favour of the `:telemetry` library.\n\nSimply ensure that the following code runs while your app is starting up (eg, in the `Application.start/2` callback):\n\n```elixir\n# lib/my_app_web/endpoint.ex check this file for the event_prefix\ndefmodule MyAppWeb.Endpoint do\n  ...\n  plug Plug.Telemetry, event_prefix: [:my_app, :endpoint]\n  ...\nend\n\n# lib/my_app/application.ex, add this line using event_prefix from above:\ndef start(_type, _args) do\n  ...\n  OpencensusPhoenix.Telemetry.setup([:my_app, :endpoint])\n  ...\nend\n```\n\n## Phoenix 1.4\n[Phoenix instrumenter](https://hexdocs.pm/phoenix/Phoenix.Endpoint.html#module-instrumentation) callback module to automatically create [OpenCensus](http://opencensus.io) spans for Phoenix Controller and View information.\n\nSimply configure your Phoenix `Endpoint` to use this library as one of its `instrumenters`:\n\n``` elixir\nconfig :my_app, MyAppWeb.Endpoint,\n  # ... existing config ...\n  instrumenters: [OpencensusPhoenix.Instrumenter]\n```\n\n# Resource Names\n\nPrior to Phoenix 1.4, the \"route info\" was not available to plugs. As such instead of using the http route as the resource name, we use the controller + action combination. For example:\n\n* Pre 1.4: `MyApp.Posts.index`\n* Version 1.4 or greater: `/posts`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencensus-beam%2Fopencensus_phoenix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopencensus-beam%2Fopencensus_phoenix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencensus-beam%2Fopencensus_phoenix/lists"}