4k =ddlmZddlmZddlmZmZddlmZddl m Z ddl m Z e rddl mZddl mZdd l mZdd l mZ dd lmZdd lmZdd lmZn#e$r edwxYwGddeZdZdZdZdS))absolute_import)Hub) Integration DidNotEnable)Span)partial)MYPY)Any)Dict)Optional)Type) BaseClient) StreamingBody) AWSRequestzbotocore is not installedc(eZdZdZedZdS)Boto3Integrationboto3cBtjfd}|t_dS)NcH|g|Ri||j}|jj}|jdt t||jdt|jdtdS)Nzrequest-created) service_idz after-callzafter-call-error) meta service_modelr hyphenizeeventsregisterr_sentry_request_created_sentry_after_call_sentry_after_call_error)selfargskwargsrr orig_inits }/builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib/python3.11/site-packages/sentry_sdk/integrations/boto3.pysentry_patched_initz8Boto3Integration.setup_once..sentry_patched_init s Id ,T , , ,V , , ,9D+6@@BBJ K !/JGGG    K /A B B B K !35M N N N N N)r__init__)r$r"s @r# setup_oncezBoto3Integration.setup_onces;'  O O O O O2 r%N)__name__ __module__ __qualname__ identifier staticmethodr'r%r#rrs2J22\222r%rc `tj}|tdSd|d|}||d|}|d||d||d|j|||j d<dS) Nzaws..z aws.request)hubop descriptionzaws.service_idzaws.operation_namezaws.request.url_sentrysdk_span) rcurrentget_integrationr start_spanset_tagset_dataurl __enter__context)rrequestoperation_namer!r0r2spans r#rr/s +C +,,45",^^>     D  LL!:...LL%~666MM#W[111 NN*.GO%&&&r%c N |dd}|dS|ddd|d}t|tsdS|d|j |j|j fd}||_ fd}||_dS)Nr3Bodyzaws.request.stream)r1r2c |i|}|s|S#t$rwxYwN)finish Exception)r r!ret orig_readstreaming_spans r#sentry_streaming_body_readz6_sentry_after_call..sentry_streaming_body_read]sk )T,V,,C (%%'''J     ! ! # # #  s # Ac@|i|dSrB)rC)r r! orig_closerGs r#sentry_streaming_body_closez7_sentry_after_call..sentry_streaming_body_closejs0 D#F#####r%) pop__exit__get isinstancer start_childr2readclose) r;parsedr!r>bodyrHrKrJrFrGs @@@r#rrHs ;;($ / /D |MM$d### ::f  D dM * *%% $&N  IJ      +DI$$$$$$ -DJJJr%c |dd}|dS|t||ddS)Nr3)rLrMtype)r; exceptionr!r>s r#rrrsD ;;($ / /D |MM$y//9d33333r%N) __future__r sentry_sdkrsentry_sdk.integrationsrrsentry_sdk.tracingrsentry_sdk._functoolsrsentry_sdk._typesr typingr r r r botocore.clientrbotocore.responserbotocore.awsrequestr ImportErrorrrrrr-r%r#rcs&&&&&&========######))))))""""""4******//////.......444 ,2 3 33422222{222....2'-'-'-T44444s AA&