import os from dotenv import load_dotenv import logfire as lf load_dotenv() lf.configure( token=os.getenv('LOGFIRE_TOKEN'), # pydantic_plugin=lf.PydanticPlugin(record='all'), console=lf.ConsoleOptions(min_log_level= os.getenv('LOG_LEVEL')) ) lf.instrument_redis() lf.instrument_httpx() lf.instrument_requests() logger = lf