Skip to content

Commit

Permalink
SpanStorage: make it private
Browse files Browse the repository at this point in the history
  • Loading branch information
iRevive committed Dec 8, 2023
1 parent 7ca04b3 commit 5d3e3e5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import cats.syntax.functor._
import org.typelevel.otel4s.sdk.trace.data.SpanData
import org.typelevel.otel4s.trace.SpanContext

class SpanStorage[F[_]: Applicative](
private[trace] class SpanStorage[F[_]: Applicative] private (
storage: Ref[F, Map[SpanContext, SpanRef[F]]]
) extends SpanProcessor[F] {
val name: String = "SpanStorage"
Expand All @@ -45,7 +45,7 @@ class SpanStorage[F[_]: Applicative](
Applicative[F].unit
}

object SpanStorage {
private[trace] object SpanStorage {
def create[F[_]: Concurrent]: F[SpanStorage[F]] =
for {
storage <- Ref[F].of(Map.empty[SpanContext, SpanRef[F]])
Expand Down

0 comments on commit 5d3e3e5

Please sign in to comment.