Skip to content

Commit fae0d5b

Browse files
crazysticktseaver
authored andcommitted
Set the 'timestamp' on log records created by handler. (googleapis#8227)
Closes googleapis#8222.
1 parent dfe4103 commit fae0d5b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

logging/google/cloud/logging/handlers/transports/background_thread.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ def enqueue(
261261
"labels": labels,
262262
"trace": trace,
263263
"span_id": span_id,
264+
"timestamp": datetime.utcfromtimestamp(record.created),
264265
}
265266
)
266267

0 commit comments

Comments
 (0)