Hi all, I have a question on Spring Boot + OpenTelemetry (with Honeycomb) + calling an external service from OncePerRequestFilter.
We have a main service, let's call it ABC, that uses a library, let's call it XYZ. Ideally, we want to have nested spans of XYZ under ABC. However, when we call XYZ from OncePerRequestFilter, the span is not nested, a new span is created instead. When we call XYZ from a controller, the spans are nested as we want. So we assume that in the filter no span is created. Any suggestions for implementing a filter that would reuse the same span as a controller?
not kotlin but kotlin colored 1
K 1