{"library":"logfire","install":[{"cmd":"pip install logfire","imports":["import logfire\n\n# Must call configure() FIRST — before any spans or instrumentation\n# Reads LOGFIRE_TOKEN env var automatically if set\nlogfire.configure()\n\n# Then instrument libraries\nlogfire.instrument_fastapi(app)\nlogfire.instrument_httpx()\nlogfire.instrument_sqlalchemy(engine)\n\n# Structured logging\nlogfire.info('User {user_id} logged in', user_id=123)\n\n# Manual spans\nwith logfire.span('Processing order {order_id}', order_id=order.id):\n    result = process(order)"]},{"cmd":"pip install logfire[fastapi]","imports":[]},{"cmd":"pip install logfire[httpx,requests,sqlalchemy,asyncpg]","imports":[]},{"cmd":"pip install pydantic-logfire","imports":[]}]}