Trace - corda

corda / net.corda.core.context / Trace

# Trace

`data class Trace`

Contextual tracing information, including invocation and session id.

### Types

#### InvocationId | Represents id and timestamp of an invocation. `class InvocationId : Id<String>`
#### SessionId | Represents id and timestamp of a session. `class SessionId : Id<String>`

### Constructors

#### <init> | Contextual tracing information, including invocation and session id. `Trace(invocationId: InvocationId, sessionId: SessionId)`

### Properties

#### invocationId | `val invocationId: InvocationId`
#### sessionId | `val sessionId: SessionId`

### Companion Object Functions

#### newInstance | Creates a trace using a InvocationId.newInstance with default arguments and a SessionId matching the value and timestamp from the invocation id.. `fun newInstance(invocationId: InvocationId = InvocationId.newInstance(), sessionId: SessionId = SessionId(invocationId.value, invocationId.timestamp)): Trace`