0isbddlZddlmZddlmZddlmZmZddlm Z ddl m Z GddeZ y) N) Integration)SentryWsgiMiddleware)ensure_integration_enabledevent_from_exception)TrytonException)appc0eZdZdZdeZdZedZy)TrytondWSGIIntegration trytond_wsgiz auto.http.cyN)selfs N/opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/trytond.py__init__zTrytondWSGIIntegration.__init__s c$ttjtjt_t tdt tdrtjfd}ytjjy)N) span_originct|trytj}t ||j ddd\}}tj ||y)NtrytondF)typehandled)client_options mechanism)hint) isinstancer sentry_sdk get_clientroptions capture_event)eclienteventrs r error_handlerz8TrytondWSGIIntegration.setup_once..error_handlersO!_-#..02#)>>'0UC t ((T:rr$c|yr r)rrequestr!r$s r_z,TrytondWSGIIntegration.setup_once.._-s a r) rrwsgi_appr originrhasattrr$error_handlersappend)r'r$s @r setup_oncez!TrytondWSGIIntegration.setup_oncess+ LL.55  $$: ; ; < ; 3 (    ! !    % %m 4rN)__name__ __module__ __qualname__ identifierr)r staticmethodr-rrrr r s,J* &F 55rr ) rsentry_sdk.integrationsrsentry_sdk.integrations.wsgirsentry_sdk.utilsrrtrytond.exceptionsr trytond.wsgirr rrrr8s#/=M. %5[%5r