bgdddlmZddlZddlmZddlmZddlmZddlm Z m Z erddl m Z dZ dS) wrapsN)get_current_span) TYPE_CHECKING)OP)loggerqualname_from_function)Anyc<tfd}|S)z Decorator to add child spans for functions. This is the Python 2 compatible version of the decorator. Duplicated code from ``sentry_sdk.tracing_utils_python3.start_child_span_decorator``. See also ``sentry_sdk.tracing.trace()``. c8ttjj}|*t jdt |i|S|tj t 5|i|cdddS#1swxYwYdS)NzcCan not create a child span for %s. Please start a Sentry transaction before calling this function.)op description) r sentry_sdkHubcurrentrwarningr start_childrFUNCTION)argskwargsspanfuncs m/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/sentry_sdk/tracing_utils_py2.pyfunc_with_tracingz5start_child_span_decorator..func_with_tracings  677 < NR&t,,    4((( (   {.t44   ) )4(((  ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )s:BBBr)rrs` rstart_child_span_decoratorrs6 4[[))))[)& ) functoolsrrrsentry_sdk._typesrsentry_sdk.constsrsentry_sdk.utilsrr typingr rrrr#s''''''++++++ ;;;;;;;;r