messages
agent_cover.messages
Centralized logging utilities for AgentCover instrumentation.
This module acts as the Single Source of Truth for log messages emitted during the instrumentation process. It standardizes how the library reports events, errors, and skipped targets.
AgentCover adopts a "Best Effort" instrumentation strategy. It attempts to patch various third-party libraries (LangChain, PromptFlow, etc.) across many versions. Consequently, some targets will inevitably be missing in a specific user environment.
Classes
InstrumentationLogger
Centralized logging helper for Instrumentation logic.
Source code in src/agent_cover/messages.py
Functions
log_import_error(logger, mod_name, error)
staticmethod
Log WARNING if module exists but import fails.
log_skip_missing_attr(logger, mod_name, attr_name)
staticmethod
Log in DEBUG when skipping a missing attribute.
Source code in src/agent_cover/messages.py
log_skip_missing_module(logger, mod_name)
staticmethod
Log in DEBUG if a module is not found.