OVτ l d dl Z d dlmZ d dlZd dlmZ d dlmZ d dlmZ d dl m
Z
mZ erd dlm
Z
d ZdS ) N)wraps)get_current_span)
TYPE_CHECKING)OP)loggerqualname_from_function)Anyc t j rt fd }nt fd }|S )a
Decorator to add child spans for functions.
This is the Python 3 compatible version of the decorator.
For Python 2 there is duplicated code here: ``sentry_sdk.tracing_utils_python2.start_child_span_decorator()``.
See also ``sentry_sdk.tracing.trace()``.
c T K t t j j }|0t j dt
| i | d {V S | t j t
5 | i | d {V cd d d S # 1 swxY w Y d S NzcCan not create a child span for %s. Please start a Sentry transaction before calling this function.)opdescription
r
sentry_sdkHubcurrentr warningr start_childr FUNCTIONargskwargsspanfuncs n/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/sentry_sdk/tracing_utils_py3.pyfunc_with_tracingz5start_child_span_decorator.