Emit the Span
and system properties contained in the passed-in TraceContext[F]
to an log appender, in JSON and textual format.
Emit the Span
and system properties contained in the passed-in TraceContext[F]
to an log appender, in JSON and textual format. The emission/recording is described
in the returned effectful program F
and occurs when that program is run. The JSON is rendered
by the implicit io.circe.Encoder[TraceContext[F]]
provided via the json.encoding object.
- the TraceContext[F]
containing the Span
and TraceSystem
containing
system properties to include in the emission.
loggingProgram - an effectful program F[Unit]
that when run will record the trace
information to the logging system.
(Since version ) see corresponding Javadoc for more information.
This instance of the
TraceSystem.Emitter
provides the means to record aSpan
to a 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 aSync[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 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.