Record

log-record

Represents the recording of an event.

record log-record {
  timestamp: option​<datetime>,
  observed-timestamp: option​<datetime>,
  severity-text: option​<string>,
  severity-number: option​<u8>,
  body: option​<value>,
  attributes: option​<list​<key-value>>,
  event-name: option​<string>,
  resource: option​<resource>,
  instrumentation-scope: option​<instrumentation-scope>,
  trace-id: option​<trace-id>,
  span-id: option​<span-id>,
  trace-flags: option​<trace-flags>,
}

Fields

NameTypeDescription
timestampoption​<datetime>

Time when the event occurred.

observed-timestampoption​<datetime>

Time when the event was observed.

severity-textoption​<string>

The severity text(also known as log level).

severity-numberoption​<u8>

The numerical value of the severity ranging from 1-24.

bodyoption​<value>

The body of the log record.

attributesoption​<list​<key-value>>

Additional information about the specific event occurrence.

event-nameoption​<string>

Name that identifies the class / type of event.

resourceoption​<resource>

Describes the source of the log.

instrumentation-scopeoption​<instrumentation-scope>

Describes the scope that emitted the log.

trace-idoption​<trace-id>

Request trace id.

span-idoption​<span-id>

Request span id.

trace-flagsoption​<trace-flags>

W3C trace flag.