Viewing File: /opt/alt/python38/lib/python3.8/site-packages/sentry_sdk/__pycache__/transport.cpython-38.pyc
U
\' @ s d dl mZ d dlZd dlZd dlZd dlZd dlZd dlmZmZ d dl m
Z
d dlmZm
Z
mZ d dlmZ zd dlmZ W n ek
r d dlmZ Y nX G dd d eZG d
d deZ G dd
d
eZ!dd Z"dS ) )print_functionN)datetime timedelta)VERSION)Dsnloggercapture_internal_exceptions)BackgroundWorker)
getproxiesc @ s@ e Zd ZdZdZd
ddZdd ZdddZd d
Zdd Z dS ) TransportzWBaseclass for all transports.
A transport is used to send an event to sentry.
Nc C s, || _ |r"|d r"t|d | _nd | _d S )Ndsn)optionsr
parsed_dsn)selfr
r
/transport.py__init__( s zTransport.__init__c C s
t dS )zdThis gets invoked with the event dictionary when an event should
be sent to sentry.
N)NotImplementedErrorr eventr r r
capture_event0 s zTransport.capture_eventc C s dS )z=Wait `timeout` seconds for the current events to be sent out.Nr r Ztimeoutcallbackr r r flush6 s zTransport.flushc C s dS )zForcefully kills the transport.Nr r r r r kill: s zTransport.killc C s&