{"action":"closed","issue":{"url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/1550","repository_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate","labels_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/1550/labels{/name}","comments_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/1550/comments","events_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/1550/events","html_url":"https://github.com/aspnetboilerplate/aspnetboilerplate/issues/1550","id":188368870,"number":1550,"title":"Filter for exception handling","user":{"login":"gabrielrobert","id":5783827,"avatar_url":"https://avatars.githubusercontent.com/u/5783827?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrielrobert","html_url":"https://github.com/gabrielrobert","followers_url":"https://api.github.com/users/gabrielrobert/followers","following_url":"https://api.github.com/users/gabrielrobert/following{/other_user}","gists_url":"https://api.github.com/users/gabrielrobert/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielrobert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielrobert/subscriptions","organizations_url":"https://api.github.com/users/gabrielrobert/orgs","repos_url":"https://api.github.com/users/gabrielrobert/repos","events_url":"https://api.github.com/users/gabrielrobert/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielrobert/received_events","type":"User","site_admin":false},"labels":[{"id":52597639,"url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/labels/question","name":"question","color":"bbbbbb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-09T22:26:57Z","updated_at":"2016-11-13T20:26:58Z","closed_at":"2016-11-13T20:26:58Z","body":"Hey,\r\n\r\n\r\nI'm trying to log exceptions (even those in views) in Sentry when they occurs. To do so, I tried to implement a GlobalExceptionFilter, but it doesn't work.\r\n\r\nI also try this kind of stuff: https://github.com/aspnetboilerplate/aspnetboilerplate/issues/1394\r\n\r\n\r\nI'm using Abp 1.0.0 / Core project.\r\n\r\n```\r\npublic class GlobalExceptionFilter : ActionFilterAttribute, IExceptionFilter\r\n    {\r\n        public void OnException(ExceptionContext context)\r\n        {\r\n            var test = context.Exception.Message;\r\n        }\r\n    }\r\n```\r\n\r\n```\r\nservices.Configure<MvcOptions>(options =>\r\n            {\r\n                options.Filters.Add(new GlobalExceptionFilter());\r\n            });\r\n```\r\n\r\n\r\nThank you!"}}
{"actor":{"display_login":"gabrielrobert"}}