libs/sentry.py
def make_error_sentry(sentry_type:str, tags:dict=None):
    """ Creates an ErrorSentry, defaults to error limit 10.
    If the applicable sentry DSN is missing will return an ErrorSentry,
    but if null truthy a NullErrorHandler will be returned instead. """

    if FORCE_SENTRY_OFF:
        return null_error_handler

    tags = tags or {}
    tags["sentry_type"] = sentry_type

    try:
        return ErrorSentry(
            get_dsn_from_string(sentry_type),
            sentry_client_kwargs={'tags': tags, 'transport': HTTPTransport},
            sentry_report_limit=10
        )
    except InvalidDsn:
            return null_error_handler
 Creates an ErrorSentry, defaults to error limit 10.
    If the applicable sentry DSN is missing will return an ErrorSentry,
    but if null truthy a NullErrorHandler will be returned instead. 
Creates an ErrorSentry, defaults to error limit 10.
If the applicable sentry DSN is missing will return an ErrorSentry,
but if null truthy a NullErrorHandler will be returned instead.
Creates an ErrorSentry defaults to error limit 10 . If the applicable sentry DSN is missing will return an ErrorSentry but if null truthy a NullErrorHandler will be returned instead .
def make_error_sentry(sentry_type:str, tags:dict=None):
    if FORCE_SENTRY_OFF:
        return null_error_handler
    tags = tags or {}
    tags["sentry_type"] = sentry_type
    try:
        return ErrorSentry(
            get_dsn_from_string(sentry_type),
            sentry_client_kwargs={'tags': tags, 'transport': HTTPTransport},
            sentry_report_limit=10
        )
    except InvalidDsn:
            return null_error_handler
def make_error_sentry ( sentry_type : str , tags : dict = None ) : if FORCE_SENTRY_OFF : return null_error_handler tags = tags or { } tags [ "sentry_type" ] = sentry_type try : return ErrorSentry ( get_dsn_from_string ( sentry_type ) , sentry_client_kwargs = { 'tags' : tags , 'transport' : HTTPTransport } , sentry_report_limit = 10 ) except InvalidDsn : return null_error_handler
Creates an ErrorSentry, defaults to error limit 10.
Creates an ErrorSentry defaults to error limit 10 .
""" Creates an ErrorSentry, defaults to error limit 10.
    If the applicable sentry DSN is missing will return an ErrorSentry,
    but if null truthy a NullErrorHandler will be returned instead. """
sentry_type
str
tags
dict