Skip to content

Commit

Permalink
Get rid of Baggage.logAnnotated layer constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Nedokushev committed Jan 18, 2024
1 parent 60ae224 commit 876b205
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,4 @@ object Baggage {
}
}

def logAnnotated: URLayer[ContextStorage, Baggage] =
live(logAnnotated = true)

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ object BaggageTest extends ZIOSpecDefault {
ContextStorage.fiberRef >>> Baggage.live()

def logAnnotatedBaggageLayer: ULayer[Baggage] =
(ContextStorage.fiberRef >>> Baggage.logAnnotated)
(ContextStorage.fiberRef >>> Baggage.live(logAnnotated = true))

def spec: Spec[Environment with TestEnvironment with Scope, Any] =
suite("zio opentelemetry")(
Expand Down

0 comments on commit 876b205

Please sign in to comment.