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
| Name | Type | Description |
|---|---|---|
| timestamp | option<datetime> | Time when the event occurred. |
| observed-timestamp | option<datetime> | Time when the event was observed. |
| severity-text | option<string> | The severity text(also known as log level). |
| severity-number | option<u8> | The numerical value of the severity ranging from 1-24. |
| body | option<value> | The body of the log record. |
| attributes | option<list<key-value>> | Additional information about the specific event occurrence. |
| event-name | option<string> | Name that identifies the class / type of event. |
| resource | option<resource> | Describes the source of the log. |
| instrumentation-scope | option<instrumentation-scope> | Describes the scope that emitted the log. |
| trace-id | option<trace-id> | Request trace id. |
| span-id | option<span-id> | Request span id. |
| trace-flags | option<trace-flags> | W3C trace flag. |