We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d89995c commit 8bcaa54Copy full SHA for 8bcaa54
netboxlabs/diode/sdk/client.py
@@ -623,12 +623,10 @@ def _entity_to_log_record(
623
entity: ingester_pb2.Entity,
624
) -> logs_pb2.LogRecord:
625
body_json = MessageToJson(entity, preserving_proto_field_name=True)
626
- now = time.time_ns()
627
entity_type = entity.WhichOneof("entity") or "unknown"
628
629
log_record = logs_pb2.LogRecord(
630
- time_unix_nano=now,
631
- observed_time_unix_nano=now,
+ time_unix_nano=time.time_ns(),
632
severity_number=logs_pb2.SeverityNumber.SEVERITY_NUMBER_INFO,
633
severity_text="INFO",
634
)
0 commit comments