U \D @sddlZddlmZddlmZddlmZddZ gZ ddZd d Zedd d Zed d dZed!ddZed"ddZe ddZe ddZed#ddZe ddZe ddZed$ddZed%ddZeddZdS)&N)contextmanager)HubScopecCs|SN)xrr?/opt/alt/python38/lib/python3.8/site-packages/sentry_sdk/api.pyoverloadsr cCst|j|Sr)__all__append__name__frrr publics rcCs*dd|jttt|jf|_t|S)Nz%s %szAlias for `Hub.%s`)r inspectgetdocgetattrr__doc__rrrrr hubmethods rcCstj}|dk r|||SdSr)rcurrent capture_event)eventhinthubrrr r%s rcCstj}|dk r|||SdSr)rrcapture_message)messagelevelrrrr r.s rcCstj}|dk r||SdSr)rrcapture_exception)errorrrrr r7s rcKs"tj}|dk r|j||f|SdSr)rradd_breadcrumb)Zcrumbrkwargsrrrr r @sr cCsdSrrrrrr configure_scopeHsr"cCsdSrrcallbackrrr r"NscCs:tj}|dk r||S|dkr2tdd}|SdSdS)Ncss tVdSrrrrrr inner[szconfigure_scope..inner)rrr"rr$rr%rrr r"Ts  cCsdSrrrrrr push_scopeesr'cCsdSrrr#rrr r'kscCs:tj}|dk r||S|dkr2tdd}|SdSdS)Ncss tVdSrrrrrr r%xszpush_scope..inner)rrr'rr&rrr r'qs  cCs tj}|dk r|j||dSdS)N)timeoutr$)rrflush)r(r$rrrr r)sr)cCstj}|dk r|SdSr)rr last_event_id)rrrr r*sr*)N)N)N)NN)N)N)NN)r contextlibrZsentry_sdk.hubrZsentry_sdk.scoperZAnyOptionalr CallableDictZContextManagerr rrrrrr r"r'r)r*rrrr s>