object LoggingContextWithTrace

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LoggingContextWithTrace
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val ForTesting: LoggingContextWithTrace
  5. def apply(loggerFactory: NamedLoggerFactory, telemetry: Telemetry): LoggingContextWithTrace
  6. def apply(loggerFactory: NamedLoggerFactory)(implicit traceContext: TraceContext): LoggingContextWithTrace
  7. def apply(traceContext: TraceContext)(implicit loggingContext: LoggingContext): LoggingContextWithTrace
  8. def apply(telemetry: Telemetry)(implicit loggingContext: LoggingContext): LoggingContextWithTrace
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  11. val empty: LoggingContextWithTrace
  12. def enriched[A](entry: LoggingEntry, entries: LoggingEntry*)(implicit loggingContextWithTrace: LoggingContextWithTrace): LoggingContextWithTrace
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  17. implicit def implicitExtractTraceContext(implicit source: LoggingContextWithTrace): TraceContext
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. def withEnrichedLoggingContext[A](entry: LoggingEntry, entries: LoggingEntry*)(f: (LoggingContextWithTrace) => A)(implicit loggingContextWithTrace: LoggingContextWithTrace): A
  28. def withEnrichedLoggingContext[A](telemetry: Telemetry)(entry: LoggingEntry, entries: LoggingEntry*)(f: (LoggingContextWithTrace) => A)(implicit loggingContext: LoggingContext): A

    ## Principles to follow when enriching the logging context

    ## Principles to follow when enriching the logging context

    ### Don't add values coming from a scope outside of the current method

    If a method receives a value as a parameter, it should trust that, if it was relevant, the caller already added this value to the context. Add values to the context as upstream as possible in the call chain. This ensures to not add duplicates, possibly using slightly different names to track the same value. The context was implemented to ensure that values did not have to be passed down the entire call stack to be logged at relevant points.

    ### Don't dump string representations of complex objects

    The purpose of the context is to be consumed by structured logging frameworks. Dumping the string representation of an object, like a Scala case class instance, means embedding some form of string formatting in another (likely to be JSON). This can be difficult to manage and parse, so stick to simple values (strings, numbers, dates, etc.).

  29. def withNewLoggingContext[A](entries: LoggingEntry*)(f: (LoggingContextWithTrace) => A)(implicit traceContext: TraceContext): A

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped