# Sentry + temporal

**URL:** <https://community.temporal.io/t/sentry-temporal/9176>\
**Category:** Community Support\
**Tags:** python-sdk\
**Created:** [August 14, 2023, 8:26pm UTC](https://community.temporal.io/t/sentry-temporal/9176 "2023-08-14T20:26:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Isptn](https://avatars.discourse-cdn.com/v4/letter/i/e36b37/32.png) [@Isptn](https://community.temporal.io/u/Isptn)\
**Post date:** [August 14, 2023, 8:26pm UTC](https://community.temporal.io/t/sentry-temporal/9176/1 "2023-08-14T20:26:04Z")

</div>

I have implemented wf with Sentry as my observation tool and exception interceptor.  
When I tested it with `raise("test Sentry")` inside a workflow I was getting what was expected.  
But when I did something like this `raise ApplicationError("TEST SENTRY")` where `ApplicationError` is `from temporalio.exceptions import ApplicationError` I did not get anything.  
So the question is about temporal exceptions if they appear Temporal will not send anything to interceptor?

---

<div class="post-metadata">

**Author:** ![Chad\_Retz](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/chad_retz/32/1396_2.png) [@Chad\_Retz](https://community.temporal.io/u/Chad_Retz)\
**Post date:** [August 14, 2023, 8:38pm UTC](https://community.temporal.io/t/sentry-temporal/9176/2 "2023-08-14T20:38:30Z")

</div>

Assuming you’re talking about `WorkflowInboundInterceptor.execute_workflow`, the interceptor is invoked as though it literally surrounds the code. So you can make the `super` call inside a `try/except` and catch any exception thrown by the workflow. We don’t “send” things to the interceptor, the interceptor is literally the code we call for executing the workflow. See [this Sentry code sample](https://github.com/temporalio/samples-python/blob/2cb0fdde7ede72edf4b40cf8b5440158d9d2234e/sentry/interceptor.py#L48) to see how it reacts to workflow exceptions.

Granted if you don’t catch it, yes, workflows treat user exceptions and Temporal exceptions different (see [the README](https://github.com/temporalio/sdk-python#exceptions) and [this KB article](https://docs.temporal.io/kb/failures)).
