corda / net.corda.core.context / Trace

Trace

data class Trace

Contextual tracing information, including invocation and session id.

Types

InvocationId

class InvocationId : Id<String>

Represents id and timestamp of an invocation.

SessionId

class SessionId : Id<String>

Represents id and timestamp of a session.

Constructors

<init>

Trace(invocationId: InvocationId, sessionId: SessionId)

Contextual tracing information, including invocation and session id.

Properties

invocationId

val invocationId: InvocationId

sessionId

val sessionId: SessionId

Companion Object Functions

newInstance

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..

Extension Functions

contextLogger

fun Any.contextLogger(): <ERROR CLASS>

When called from a companion object, returns the logger for the enclosing class.