Instead of patching a private function, use a global `Dependency` that has access to the `Request` object instead. Additionally, move setting the thread ID and name span attributes to the Starlette integration.
Instead of patching a private function, use a global
Dependencythat has access to theRequestobject instead.Additionally, move setting the thread ID and name span attributes to the Starlette integration.