During the investigation of #975 it became clear that tapir requires a special integration similar to the already existing integration for otel4s https://github.com/softwaremill/tapir/blob/master/tracing/otel4s-tracing/src/main/scala/sttp/tapir/server/tracing/otel4s/Otel4sTracing.scala
think a module similar to Otel4sTracing should solve this problem (aka RequestInterceptor). The tracing tapir module for zio-opentelemetry can support both autoinstrumented and manual modes. The former will use OpenTelemetry.autoinstrumented + OpenTelemetry.global, while for the latter we need to use OpenTelemetry.continue + OpenTelemetry.custom + an ability to set a desired span name, instrumentation scope and so on.
It can be done in Tapir's repo.
During the investigation of #975 it became clear that tapir requires a special integration similar to the already existing integration for otel4s https://github.com/softwaremill/tapir/blob/master/tracing/otel4s-tracing/src/main/scala/sttp/tapir/server/tracing/otel4s/Otel4sTracing.scala
It can be done in Tapir's repo.