From 42ea12a963004e354e8e0b2a682f074fd41b68bd Mon Sep 17 00:00:00 2001 From: naisanzaa Date: Sat, 13 Apr 2024 03:14:06 -0400 Subject: [PATCH] datadog: fix start_as_current_span --- automon/integrations/openTelemetryWrapper/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/automon/integrations/openTelemetryWrapper/client.py b/automon/integrations/openTelemetryWrapper/client.py index 11604640..8f456032 100644 --- a/automon/integrations/openTelemetryWrapper/client.py +++ b/automon/integrations/openTelemetryWrapper/client.py @@ -54,7 +54,8 @@ def start_as_current_span( **kwargs ): logger.debug(dict(name=name, attributes=attributes, kwargs=kwargs)) - return self.tracer.start_as_current_span( + tracer = self.tracer + return tracer.start_as_current_span( name=name, )