(self, config=None)
New instance of DatadogHandler class
New instance of DatadogHandler class
New instance of DatadogHandler class
def __init__(self, config=None):
        """
        New instance of DatadogHandler class
        """

        Handler.__init__(self, config)
        logging.debug("Initialized Datadog handler.")

        if dogapi is None:
            logging.error("Failed to load dogapi module.")
            return

        self.api = dogapi.dog_http_api
        self.api.api_key = self.config.get('api_key', '')
        self.queue_size = self.config.get('queue_size', 1)
        self.queue = deque([])
def __init__ ( self , config = None ) : Handler . __init__ ( self , config ) logging . debug ( "Initialized Datadog handler." ) if dogapi is None : logging . error ( "Failed to load dogapi module." ) return self . api = dogapi . dog_http_api self . api . api_key = self . config . get ( 'api_key' , '' ) self . queue_size = self . config . get ( 'queue_size' , 1 ) self . queue = deque ( [ ] )