From ebbc806bc65867d9695a73ad496144ee7767cec9 Mon Sep 17 00:00:00 2001 From: Simon Schenk Date: Wed, 22 Apr 2020 08:23:21 +0200 Subject: [PATCH] make OpenTracing.managed public (#128) --- .../src/main/scala/zio/telemetry/opentracing/OpenTracing.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opentracing/src/main/scala/zio/telemetry/opentracing/OpenTracing.scala b/opentracing/src/main/scala/zio/telemetry/opentracing/OpenTracing.scala index 7735dc5d..f5baa52a 100644 --- a/opentracing/src/main/scala/zio/telemetry/opentracing/OpenTracing.scala +++ b/opentracing/src/main/scala/zio/telemetry/opentracing/OpenTracing.scala @@ -29,7 +29,7 @@ object OpenTracing { def live(tracer: Tracer, rootOperation: String = "ROOT"): URLayer[Clock, OpenTracing] = ZLayer.fromManaged(managed(tracer, rootOperation)) - private[opentracing] def managed(tracer0: Tracer, rootOperation: String): URManaged[Clock, OpenTracing.Service] = + def managed(tracer0: Tracer, rootOperation: String): URManaged[Clock, OpenTracing.Service] = ZManaged.make( for { span <- UIO(tracer0.buildSpan(rootOperation).start())