Skip to content

armgit / burr

Public Imported from GitHub
0

Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.

Fixes opentelemetry integration to provide a module name

elijahbenizzyc7d53e30cfd6
diff --git a/burr/integrations/opentelemetry.py b/burr/integrations/opentelemetry.py
index fb9fb59c..18d0a61b 100644
--- a/burr/integrations/opentelemetry.py
+++ b/burr/integrations/opentelemetry.py
@@ -151,7 +151,7 @@ class OpenTelemetryBridge(
if tracer:
self.tracer = tracer
else:
- self.tracer = trace.get_tracer(tracer_name)
+ self.tracer = trace.get_tracer(__name__ if tracer_name is None else tracer_name)
def pre_run_execute_call(
self,