From c8c7975e3ee35dde2d3e172d976fb226cfdcdf04 Mon Sep 17 00:00:00 2001 From: Prateek Sachan Date: Fri, 21 Jul 2023 23:42:29 +0530 Subject: [PATCH] adding timestamp of event being sent --- tracereq/transport.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tracereq/transport.py b/tracereq/transport.py index 344b5f4..3f7f0ad 100644 --- a/tracereq/transport.py +++ b/tracereq/transport.py @@ -40,6 +40,7 @@ def __init__(self, token, dest): def send(self, trace_doc): try: + trace_doc['timestamp'] = datetime.utcnow() self.session.request( 'POST', self.dest,