Пример #1
0
    def filter(self, record: logging.LogRecord) -> Literal[True]:
        context_dict = _get_context()

        record.currently_executed_instance_id = context_dict.get(  # type: ignore
            "currently_executed_instance_id", None)
        record.currently_executed_component_id = context_dict.get(  # type: ignore
            "currently_executed_component_id", None)

        record.currently_executed_component_node_name = context_dict.get(  # type: ignore
            "currently_executed_component_node_name", None)
        return True