x։)ddlZddlZddlmZddlmZddlmZmZddl m Z ddl m Z m Z ddlmZddlmZmZmZmZmZmZ ddlZdd lmZdd lmZmZmZn#e$r ed wxYwdd l m!Z!e!r&>&>@ "3c ttttjddd}n<#t t f$r(tdtwxYw|dkrtdtstdtztdtj fd}|t_ tjfd }|t_dS) N.zAIOHTTP version unparseable: {})zAIOHTTP 3.4 or newer required.zSThe aiohttp integration for Sentry requires Python 3.7+ or aiocontextvars package.zaiohttp.servercKtj}|t ||g|Ri|d{VSt j|}ttj5}|5}||t|dddn #1swxYwYtj |j dd}| |d|i5  ||d{V}nr#t$r } || jd} ~ wt"j$r|dt($rt+t-|YnwxYw||j|cdddcdddS#1swxYwY ddddS#1swxYwYdS)Nz http.serverzgeneric AIOHTTP request)opnameaiohttp_request)custom_sampling_context cancelled)rcurrentget_integrationr#weakrefrefconfigure_scopeclear_breadcrumbsadd_event_processor_make_request_processorr continue_from_headersheadersstart_transactionrset_http_status status_codeasyncioCancelledError set_status Exceptionr_capture_exceptionstatus) r*requestargskwargshub weak_requestscope transactionresponsee old_handles r+sentry_app_handlez8AioHttpIntegration.setup_once..sentry_app_handleWs#+C""#566>'ZgGGGGGGGGGGGGG";w//LS[!! $S((**Ue++-----.El.S.STTTUUUUUUUUUUUUUUU*?O$3  **:KW9U+$$ :)3D')B)B#B#B#B#B#B#B(#33AMBBB"1#..{;;;$::: !3C!8!89999:  //@@@##$$$$$$$ $ $ $ $ $ $ $ $$$$$$$$$$ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $s*G?7C6 GC G C 8GF=DF= F!D<.sentry_urldispatcher_resolves`00w????????B+C--.@AAKD 0NBB4RZ@@DD 26OOO!#J(nnV44S {8S8SG">>'.'BBD    [0022-e(,E%---------------Is$BC CC4DD D )tuplemapintAIOHTTP_VERSIONsplit TypeErrorr(rr]rrrr_handlerresolve)versionrVrdrUrcs @@r+ setup_oncezAioHttpIntegration.setup_once=s. C_%:3%?%?%CDDEEGG:&   188II   V  ?@@ @# .0IJ  &''' ( ' $' $' $' $' $R0 $1$9!     2!= s .aiohttp_processors2 ,.. ?L ( * * J J ++Ir::L  #L  ,3+?L (%,^L "#0'."AL +C&5d7?6K6K&L&LL # $s:WW ?-g  9555%$$ 4r-)5rr;sentry_sdk._compatrsentry_sdk.hubrsentry_sdk.integrationsrrsentry_sdk.integrations.loggingr$sentry_sdk.integrations._wsgi_commonrr sentry_sdk.tracingr sentry_sdk.utilsr r r rrrrFr$rrh aiohttp.webrrr ImportErrorsentry_sdk._typesraiohttp.web_requestr aiohttp.abcrtypingrrrrrrrrr'r#r@rJrrrtr-r+rs &&&&&&========999999+*****0NNN666666EEEEEEEEEEE000 ,. / //0#""""" 1++++++------((((((000000Gl=l=l=l=l=l=l=l=^"""J   Ss AA(