Skip to content

Opentelemetry: tapir integration #1000

Description

@grouzen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions