Class/Object

com.ccadllc.cedi.dtrace.logging

LogEmitter

Related Docs: object LogEmitter | package logging

Permalink

class LogEmitter[F[_]] extends Emitter[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.

Source
LogEmitter.scala
Linear Supertypes
Emitter[F], AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LogEmitter
  2. Emitter
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LogEmitter(loggers: Loggers[F])(implicit arg0: Sync[F])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from LogEmitter[F] to any2stringadd[LogEmitter[F]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (LogEmitter[F], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from LogEmitter[F] to ArrowAssoc[LogEmitter[F]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  8. val description: String

    Permalink
    Definition Classes
    LogEmitter → Emitter
  9. def emit(context: TraceContext[F]): F[Unit]

    Permalink

    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.

    context

    - the TraceContext[F] containing the Span and TraceSystem containing system properties to include in the emission.

    returns

    loggingProgram - an effectful program F[Unit] that when run will record the trace information to the logging system.

    Definition Classes
    LogEmitter → Emitter
  10. def ensuring(cond: (LogEmitter[F]) ⇒ Boolean, msg: ⇒ Any): LogEmitter[F]

    Permalink
    Implicit information
    This member is added by an implicit conversion from LogEmitter[F] to Ensuring[LogEmitter[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (LogEmitter[F]) ⇒ Boolean): LogEmitter[F]

    Permalink
    Implicit information
    This member is added by an implicit conversion from LogEmitter[F] to Ensuring[LogEmitter[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ Any): LogEmitter[F]

    Permalink
    Implicit information
    This member is added by an implicit conversion from LogEmitter[F] to Ensuring[LogEmitter[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): LogEmitter[F]

    Permalink
    Implicit information
    This member is added by an implicit conversion from LogEmitter[F] to Ensuring[LogEmitter[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from LogEmitter[F] to StringFormat[LogEmitter[F]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. def [B](y: B): (LogEmitter[F], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from LogEmitter[F] to ArrowAssoc[LogEmitter[F]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Emitter[F]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from LogEmitter[F] to any2stringadd[LogEmitter[F]]

Inherited by implicit conversion StringFormat from LogEmitter[F] to StringFormat[LogEmitter[F]]

Inherited by implicit conversion Ensuring from LogEmitter[F] to Ensuring[LogEmitter[F]]

Inherited by implicit conversion ArrowAssoc from LogEmitter[F] to ArrowAssoc[LogEmitter[F]]

Ungrouped