Marcin Wisniowski
03/08/2023, 6:29 PMpipeline.environment.monitor.subscribe(Routing.RoutingCallStarted) { it: RoutingApplicationCall
it.route[..]
}
Where should I look?RoutingApplicationCall
, not an ApplicationCall
like all the new onCall
etc. methods are providing.environment
directly from PluginBuilder
block.Rustam Siniukov
03/09/2023, 10:56 AMon(MonitoringEvent(Routing.RoutingCallStarted)) { ... }
hookMarcin Wisniowski
03/09/2023, 6:57 PMThere is also thewhich made me think MonitoringEvent is only for application-level events. All the examples given in the linked page also are application-level events. So it's not clear that MonitoringEvent can be used for call-level events, and where would one discover what possible events exist.hook that allows you to handle application events, such as application startup or shutdown.MonitoringEvent