in src/frontend/traced_thread_pool_executor.py [0:0]
def with_otel_context(self, context, function): """Attach context""" otel_context.attach(context) return function()