§
{<ˆjb ã ó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)ÚloggerÚqualname_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.)ÚopÚdescription©
r Ú
sentry_sdkÚHubÚcurrentr Úwarningr Ústart_childr ÚFUNCTION©ÚargsÚkwargsÚspanÚfuncs €ún/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/sentry_sdk/tracing_utils_py3.pyÚfunc_with_tracingz5start_child_span_decorator.