{"id":28408707,"url":"https://github.com/sourcelevel/faraday-log-subscriber","last_synced_at":"2025-08-10T15:07:04.443Z","repository":{"id":36414624,"uuid":"40719583","full_name":"sourcelevel/faraday-log-subscriber","owner":"sourcelevel","description":"A Log Subscriber for Faraday clients","archived":false,"fork":false,"pushed_at":"2019-01-25T19:27:37.000Z","size":18,"stargazers_count":6,"open_issues_count":0,"forks_count":7,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-08-04T18:41:32.418Z","etag":null,"topics":["cache","faraday","http","logging","middleware"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sourcelevel.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-08-14T14:37:45.000Z","updated_at":"2025-06-11T05:30:11.000Z","dependencies_parsed_at":"2022-09-10T01:02:15.382Z","dependency_job_id":null,"html_url":"https://github.com/sourcelevel/faraday-log-subscriber","commit_stats":null,"previous_names":["plataformatec/faraday-log-subscriber"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/sourcelevel/faraday-log-subscriber","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcelevel%2Ffaraday-log-subscriber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcelevel%2Ffaraday-log-subscriber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcelevel%2Ffaraday-log-subscriber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcelevel%2Ffaraday-log-subscriber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sourcelevel","download_url":"https://codeload.github.com/sourcelevel/faraday-log-subscriber/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcelevel%2Ffaraday-log-subscriber/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269740355,"owners_count":24467757,"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-08-10T02:00:08.965Z","response_time":71,"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":["cache","faraday","http","logging","middleware"],"created_at":"2025-06-02T04:09:49.453Z","updated_at":"2025-08-10T15:07:04.435Z","avatar_url":"https://github.com/sourcelevel.png","language":"Ruby","readme":"# Faraday Log Subscriber\n\nA `ActiveSupport::LogSubscriber` to log HTTP requests made by a [Faraday](https://github.com/lostisland/faraday) client instance.\n\n## Installation\n\nAdd it to your Gemfile:\n\n```ruby\ngem 'faraday-log-subscriber'\n```\n\n## Usage\n\nYou have to use the `:instrumentation` middleware from [`faraday_middleware`](https://github.com/lostisland/faraday_middleware) to\ninstrument your requests.\n\n```ruby\nclient = Faraday.new('https://api.github.com') do |builder|\n  builder.use :instrumentation\n  builder.adapter :net_http\nend\n\nclient.get('repos/rails/rails')\n# 'Faraday GET [200] (1026.9ms) https://api.github.com/repos/rails/rails'\n```\n\n### `faraday-http-cache` integration\n\nIf you use the [`faraday-http-cache`](https://github.com/plataformatec/faraday-http-cache) gem, an extra line will be logged regarding\nthe cache status of the requested URL:\n\n\n```ruby\nclient = Faraday.new('https://api.github.com') do |builder|\n  builder.use :instrumentation\n  builder.use :http_cache, instrumenter: ActiveSupport::Notifications\n  builder.adapter :net_http\nend\n\nclient.get('repos/rails/rails')\nclient.get('repos/rails/rails')\n# Faraday HTTP Cache [fresh] https://api.github.com/repos/rails/rails\n# Faraday GET [200] (1.7ms) https://api.github.com/repos/rails/rails\n```\n\n## License\n\nCopyright (c) 2015 Plataformatec. See LICENSE file.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcelevel%2Ffaraday-log-subscriber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsourcelevel%2Ffaraday-log-subscriber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcelevel%2Ffaraday-log-subscriber/lists"}