Observability
Observability is a measure of how well internal states of a system can be inferred from knowledge of its external outputs. In the context of a software system, observability is the ability to understand the internal state of the system by examining its outputs. This is important for debugging, monitoring, and maintaining the system.
Observability In DB-GPT
DB-GPT provides observability through the following mechanisms:
- Logging: DB-GPT logs various events and metrics to help you understand the internal state of the system.
- Tracing: DB-GPT provides tracing capabilities to help you understand the flow of requests through the system.
Logging
You can configure the logging level and storage location for DB-GPT logs. By default,
logs are stored in the logs
directory in the DB-GPT root directory. You can change
the log level and storage location by setting the DBGPT_LOG_LEVEL
and DBGPT_LOG_DIR
environment.
Tracing
DB-GPT has built-in tracing capabilities that allow you to trace the flow of requests through the system.