{"action":"created","issue":{"url":"https://api.github.com/repos/airbrake/airbrake-python/issues/29","repository_url":"https://api.github.com/repos/airbrake/airbrake-python","labels_url":"https://api.github.com/repos/airbrake/airbrake-python/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/airbrake/airbrake-python/issues/29/comments","events_url":"https://api.github.com/repos/airbrake/airbrake-python/issues/29/events","html_url":"https://github.com/airbrake/airbrake-python/pull/29","id":147827701,"number":29,"title":"Duck type traceback type","user":{"login":"pfhayes","id":403100,"avatar_url":"https://avatars.githubusercontent.com/u/403100?v=3","gravatar_id":"","url":"https://api.github.com/users/pfhayes","html_url":"https://github.com/pfhayes","followers_url":"https://api.github.com/users/pfhayes/followers","following_url":"https://api.github.com/users/pfhayes/following{/other_user}","gists_url":"https://api.github.com/users/pfhayes/gists{/gist_id}","starred_url":"https://api.github.com/users/pfhayes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfhayes/subscriptions","organizations_url":"https://api.github.com/users/pfhayes/orgs","repos_url":"https://api.github.com/users/pfhayes/repos","events_url":"https://api.github.com/users/pfhayes/events{/privacy}","received_events_url":"https://api.github.com/users/pfhayes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-12T17:57:28Z","updated_at":"2016-04-12T18:47:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/airbrake/airbrake-python/pulls/29","html_url":"https://github.com/airbrake/airbrake-python/pull/29","diff_url":"https://github.com/airbrake/airbrake-python/pull/29.diff","patch_url":"https://github.com/airbrake/airbrake-python/pull/29.patch"},"body":"Easier to create fake tracebacks for custom logging. If you want to create a traceback that has a custom / modified trace, airbrake will not treat it accordingly since it does a type check against types.TracebackType. This is overly cautionary since the object is just handed off to methods in the `traceback` module which work appropriately on duck-typed object\r\n\r\nInspired by this stack overflow question: http://stackoverflow.com/questions/13210436/get-full-traceback"},"comment":{"url":"https://api.github.com/repos/airbrake/airbrake-python/issues/comments/209049922","html_url":"https://github.com/airbrake/airbrake-python/pull/29#issuecomment-209049922","issue_url":"https://api.github.com/repos/airbrake/airbrake-python/issues/29","id":209049922,"user":{"login":"samstav","id":2030182,"avatar_url":"https://avatars.githubusercontent.com/u/2030182?v=3","gravatar_id":"","url":"https://api.github.com/users/samstav","html_url":"https://github.com/samstav","followers_url":"https://api.github.com/users/samstav/followers","following_url":"https://api.github.com/users/samstav/following{/other_user}","gists_url":"https://api.github.com/users/samstav/gists{/gist_id}","starred_url":"https://api.github.com/users/samstav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samstav/subscriptions","organizations_url":"https://api.github.com/users/samstav/orgs","repos_url":"https://api.github.com/users/samstav/repos","events_url":"https://api.github.com/users/samstav/events{/privacy}","received_events_url":"https://api.github.com/users/samstav/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T18:47:05Z","updated_at":"2016-04-12T18:47:05Z","body":"Is a duck-typed traceback that complies with these attribute checks compatible with `traceback.extract_tb` ?\r\n\r\nhttps://docs.python.org/2/library/traceback.html#traceback.extract_tb"}}