{"action":"created","issue":{"url":"https://api.github.com/repos/honeybadger-io/honeybadger-ruby/issues/182","repository_url":"https://api.github.com/repos/honeybadger-io/honeybadger-ruby","labels_url":"https://api.github.com/repos/honeybadger-io/honeybadger-ruby/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/honeybadger-io/honeybadger-ruby/issues/182/comments","events_url":"https://api.github.com/repos/honeybadger-io/honeybadger-ruby/issues/182/events","html_url":"https://github.com/honeybadger-io/honeybadger-ruby/issues/182","id":144036367,"number":182,"title":"How to pass user-agent to Honeybadger#notify","user":{"login":"hardboiled","id":993144,"avatar_url":"https://avatars.githubusercontent.com/u/993144?v=3","gravatar_id":"","url":"https://api.github.com/users/hardboiled","html_url":"https://github.com/hardboiled","followers_url":"https://api.github.com/users/hardboiled/followers","following_url":"https://api.github.com/users/hardboiled/following{/other_user}","gists_url":"https://api.github.com/users/hardboiled/gists{/gist_id}","starred_url":"https://api.github.com/users/hardboiled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hardboiled/subscriptions","organizations_url":"https://api.github.com/users/hardboiled/orgs","repos_url":"https://api.github.com/users/hardboiled/repos","events_url":"https://api.github.com/users/hardboiled/events{/privacy}","received_events_url":"https://api.github.com/users/hardboiled/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-28T17:46:29Z","updated_at":"2016-04-20T14:15:59Z","closed_at":"2016-04-20T14:15:59Z","body":"I'm catching exceptions in my controller and then notifying honeybadger after the fact. Everything seems to be passing correctly, except the user-agent isn't showing up in the UI. I was looking through the code to determine how to pass the user-agent string, and I believe I have to pass the request.env hash to the notify call somehow, but I ran into a dead-end. Could you please advise on how to pass the user-agent, so that the reporting tool picks this information up correctly?\r\nThanks,\r\n\\- Daniel\r\n\r\n````\r\nrescue Exception => e\r\n      Honeybadger.notify(\r\n        error_class:e.class,\r\n        error_message: e.message,\r\n        parameters:params,\r\n        session:cookies.to_h,\r\n        backtrace:e.backtrace\r\n      )\r\n````"},"comment":{"url":"https://api.github.com/repos/honeybadger-io/honeybadger-ruby/issues/comments/212443602","html_url":"https://github.com/honeybadger-io/honeybadger-ruby/issues/182#issuecomment-212443602","issue_url":"https://api.github.com/repos/honeybadger-io/honeybadger-ruby/issues/182","id":212443602,"user":{"login":"hardboiled","id":993144,"avatar_url":"https://avatars.githubusercontent.com/u/993144?v=3","gravatar_id":"","url":"https://api.github.com/users/hardboiled","html_url":"https://github.com/hardboiled","followers_url":"https://api.github.com/users/hardboiled/followers","following_url":"https://api.github.com/users/hardboiled/following{/other_user}","gists_url":"https://api.github.com/users/hardboiled/gists{/gist_id}","starred_url":"https://api.github.com/users/hardboiled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hardboiled/subscriptions","organizations_url":"https://api.github.com/users/hardboiled/orgs","repos_url":"https://api.github.com/users/hardboiled/repos","events_url":"https://api.github.com/users/hardboiled/events{/privacy}","received_events_url":"https://api.github.com/users/hardboiled/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T14:15:59Z","updated_at":"2016-04-20T14:15:59Z","body":"@joshuap we retooled some of our code after some more testing and were able to get it working using your original suggestion. Sorry for the spam, and thanks for the quick responses!"}}