def get_structured_filter(name='', **kwargs):
    class StructuredFilter(logging.Filter):
        """
        Injects contextual information into log records.
        """
        def filter(self, record):
            """Adds contextual information to a log record

            Args:
                record (obj): The event to contextualize

            Returns:
                bool: True
            """
            for k, v in kwargs.items():
                setattr(record, k, v)

            return True

    return StructuredFilter(name)
Drops a UDF
dataset/ETHPy150Open reubano/pygogo/pygogo/utils.py/get_structured_filter--crossover with--dataset/ETHPy150Open cloudera/ibis/ibis/impala/client.py/ImpalaClient.drop_udf