From 649b67d549ea859536e75e224a57dbaa55956a1a Mon Sep 17 00:00:00 2001 From: Oscar Eriksson Date: Fri, 8 Oct 2021 16:01:26 +0800 Subject: [PATCH] supply the event id to the span --- logistik/queue/event_reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logistik/queue/event_reader.py b/logistik/queue/event_reader.py index 4086871..1cd1cfb 100644 --- a/logistik/queue/event_reader.py +++ b/logistik/queue/event_reader.py @@ -147,7 +147,7 @@ def create_env(self): def handle_event(self, topic, data): self.logger.info(f"request: {data}") - with self.env.tracer.start_span("handle-event") as span: + with self.env.tracer.start_span("handle-event", event_id=data["id"]) as span: span.log_kv(data) self.handler_manager.handle_event(topic, data, span_ctx=span)