Fork me on GitHub
#observability
<
2021-06-09
>
James Carr20:06:13

Speaking of that, curious about how people add tracing to pedestal's middleware

James Carr20:06:27

right now, exceptions caught in pedestal don't get displayed for us in APM. I suspect it is because we need the equivalent of

try {
    runSomething();
} catch (Exception e) {
    Otel.captureException(e);
}

James Carr20:06:57

wherever pedestal catches exceptions.

emccue22:06:49

@james.r.carr you want to add an interceptor to your interceptor chain

thanks3 2
emccue22:06:56

that does nothing on enter

emccue22:06:01

but on exit looks for an :error

emccue22:06:26

thrown exceptions aren't propagated directly to other interceptors , so that is your way to do