observedTimeUnixNano property
- @TagNumber.new(11)
Time when the event was observed by the collection system. For events that originate in OpenTelemetry (e.g. using OpenTelemetry Logging SDK) this timestamp is typically set at the generation time and is equal to Timestamp. For events originating externally and collected by OpenTelemetry (e.g. using Collector) this is the time when OpenTelemetry's code observed the event measured by the clock of the OpenTelemetry code. This field MUST be set once the event is observed by OpenTelemetry.
For converting OpenTelemetry log data to formats that support only one timestamp or when receiving OpenTelemetry log data by recipients that support only one timestamp internally the following logic is recommended:
- Use time_unix_nano if it is present, otherwise use observed_time_unix_nano.
Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. Value of 0 indicates unknown or missing timestamp.
Implementation
@$pb.TagNumber(11)
$fixnum.Int64 get observedTimeUnixNano => $_getI64(9);
- @TagNumber.new(11)
Implementation
@$pb.TagNumber(11)
set observedTimeUnixNano($fixnum.Int64 v) {
$_setInt64(9, v);
}