def _get_module_path(self, record: logging.LogRecord) -> str:
        """Extract the full module path from the log record.

        Args:
        ----
            record (logging.LogRecord): The log record

        Returns:
        -------
            str: Full module path (e.g., 'airweave.integrations.qdrant')

        """
        # Check cache first
        pathname = record.pathname
        if pathname in self._module_cache:
            return self._module_cache[pathname]

        try:
            # Simple string manipulation - find "airweave" in the path
            if "airweave" in pathname:
                # Split by path separator and find where airweave starts
                parts = pathname.replace("\\", "/").split("/")

                # Find the last occurrence of 'airweave' (in case it appears multiple times)
                airweave_indices = [i for i, part in enumerate(parts) if part == "airweave"]
                if airweave_indices:
                    # Take the last occurrence
                    start_idx = airweave_indices[-1]
                    module_parts = parts[start_idx:]

                    # Remove .py extension from last part
                    if module_parts and module_parts[-1].endswith(".py"):
                        module_parts[-1] = module_parts[-1][:-3]

                    module_path = ".".join(module_parts)
                    self._module_cache[pathname] = module_path
                    return module_path

            # Fallback to simple module name
            module_path = record.module
            self._module_cache[pathname] = module_path
            return module_path

        except Exception:
            # If anything goes wrong, use the simple module name
            return record.module
Extract the full module path from the log record.

        Args:
        ----
            record (logging.LogRecord): The log record

        Returns:
        -------
            str: Full module path (e.g., 'airweave.integrations.qdrant')

        
backend/airweave/core/logging.py