From 1e45148fbf8e3a0f9eccc2766b196b1a0e439930 Mon Sep 17 00:00:00 2001 From: Diego Hurtado Date: Mon, 9 Dec 2019 17:41:53 -0600 Subject: [PATCH] Truncate LSb Fixes #85 --- lightstep/tracer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightstep/tracer.py b/lightstep/tracer.py index de4d112..ef433b0 100644 --- a/lightstep/tracer.py +++ b/lightstep/tracer.py @@ -108,7 +108,7 @@ class ScopePatch(scope.__class__): def __exit__(self, exc_type, exc_val, exc_tb): self.span.context.trace_id = int( - format(self.span.context.trace_id, "032x")[:16], 16 + format(self.span.context.trace_id, "032x")[16:], 16 ) result = super(self.__class__, self).__exit__(