Within a given context fn
, capture the Trace instance under Trace.captured
for each
matched endpoint.
Within a given context fn
, capture the Trace instance under Trace.captured
for each
matched endpoint.
Example:
val foo = Endpoint.lift("foo").toService[Text.Plain] Trace.capture { foo(Request()).map(_ => Trace.captured) }
Retrieve the captured Trace instance or empty when run outside of Trace.capture context.