Fork me on GitHub
#ring-swagger
<
2017-06-29
>
bja14:06:40

I seem to recall seeing a compojure-api integration with sentry at one point in this chat. Does anyone else recall this, and if it made it into a library?

bja14:06:18

I actually have a sentry integration already, but was looking for a way of not maintaining my own random middleware if possible

mpenet14:06:00

we plug it to our logging libs here, works well

mpenet14:06:15

log/error ends up in sentry that way (depends on config)

bja14:06:39

I have it running as an exception handler configured through compojure-api in addition as a handler via timbre

bja14:06:59

the rationale being that with compojure-api I want to pull out request-specific stuff

bja14:06:11

:body-params and the like

bja14:06:38

and I don't want to have to think about every possible exception upfront to write catches that setup the right ex-info

mpenet14:06:42

sure, in theory you could do this as well. But anyway, we don't use timbre, I don't think this would fit

bja14:06:30

I guess I could designate some namespaced key as a special http context key and check that in my logging integration

bja14:06:42

and then just add that onto the exception in my compojure-api exception handler