This instance of the TraceSystem.Emitter
provides the means to
record a Span
to an slf4j
log appender in both text and JSON
formats, also logging the associated system properties provided in
the passed-in TraceContext[F]
.
Companion object for the LogEmitter
instance, providing a convenience constructor.
Provides the encoding of a Span
- and associated TraceSystem[F]
metadata - to JSON
using the io.circe
framework.
This instance of the
TraceSystem.Emitter
provides the means to record aSpan
to anslf4j
log appender in both text and JSON formats, also logging the associated system properties provided in the passed-inTraceContext[F]
. The recording is described in the context of an effectful programF
with anSync[F]
instance in implicit scope and actual occurs when that program is executed. Whether the information is recorded to log files, some other location, or not at all depends on the configuration of thedistributed-trace.txt
anddistributed-trace.json
loggers. Note that the logging occurs only ifDEBUG
is enabled for the particular logger in the underlying logging configuration.