Skip to content

Commit b612632

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)