This instance of the TraceSystem.Emitter
provides the means to
record a Span
to a log appender in both text and JSON
formats, also logging the associated system properties provided in
the passed-in TraceContext[F]
.
This instance of the TraceSystem.Emitter
provides the means to
record a Span
to a log appender in both text and JSON
formats, also logging the associated system properties provided in
the passed-in TraceContext[F]
. The recording is described in the
context of an effectful program F
with a Sync[F]
instance in implicit scope and actually occurs when that program is
run. Whether the information is recorded to log files, some
other location, or not at all depends on the configuration of the
distributed-trace.txt
and distributed-trace.json
loggers. Note that
the logging occurs only if DEBUG
is enabled for the particular logger
in the underlying logging configuration.
Companion object for the LogEmitter
instance, providing a convenience constructor.
Provides the for the platform-specific initialization of the underlying logging
configuration for the JavaScript platform, using log4s
.
Provides the encoding of a Span
- and associated TraceSystem[F]
data - to JSON
using the io.circe
library.