Fork me on GitHub
#yada
<
2021-04-17
>
dominicm09:04:26

@borkdude I'm using the datadog apm which integrates with netty and handles all of this :D

borkdude09:04:10

@dominicm Cool. Can it be used for free without datadog?

borkdude09:04:18

We are using our own kibana thing

dominicm09:04:57

@borkdude afaik, it's coupled to datadog.

ernestas09:04:44

@borkdude we use elastic apm with yada, by yada.walk/update-routes and update each response by wrapping it in an anonymous function that starts the apm transaction and then invokes/returns the response within the transaction scope

borkdude10:04:06

@ernestas Does this work correctly with async processing / aleph deferreds?

ernestas10:04:45

Not sure. I don't think we return async at the top level.

wagjo10:04:54

We (I work with @borkdude) tried to use interceptors for managing APM transactions and spans, but as the active spans are tied to a specific thread this wasn't very straightforward

wagjo10:04:13

So now we start/stop transactions with interceptors but we activate them inside the actual request handler

wagjo10:04:04

It's still suboptimal, mostly due to the async/deferreds responses