data class Trace
Contextual tracing information, including invocation and session id.
class InvocationId : Id<String>
Represents id and timestamp of an invocation. |
|
class SessionId : Id<String>
Represents id and timestamp of a session. |
Trace(invocationId: InvocationId, sessionId: SessionId)
Contextual tracing information, including invocation and session id. |
val invocationId: InvocationId |
|
val sessionId: SessionId |
fun newInstance(invocationId: InvocationId = InvocationId.newInstance(), sessionId: SessionId = SessionId(invocationId.value, invocationId.timestamp)): Trace
Creates a trace using a InvocationId.newInstance with default arguments and a SessionId matching the value and timestamp from the invocation id.. |
fun Any.contextLogger(): <ERROR CLASS>
When called from a companion object, returns the logger for the enclosing class. |