Hi Carsten, On Sat, 2023-09-02 at 12:23 +0200, Carsten Ziegeler wrote: > Hi, > > I think RequestData [4] is the right place - or at least the best > place > we have today :) > > If you can do the instrumentation in a way that it does its work only > once (the first time), then you might get away without changes in > Sling. > > If not, maybe enhancing [4] a little bit to detect root servlet vs > child > servlet and then you can instrument more targeted
I asked the opentelemetry-java developers [5] and we can try and set the handler multiple times, but only the first one will be used. I suspect they need these for handling Servlet includes, so this fits our use case perfectly. So no need to change stuff in Sling :-) Thanks, Robert [5]: https://github.com/open-telemetry/opentelemetry-java-instrumentation/discussions/9384