Uncomplicated Observability for Python and beyond! 🪵🔥
ignore_no_config
setting added to pyproject.toml
by @deepakdinesh1123 in https://github.com/pydantic/logfire/pull/254
logfire whoami
respect the LOGFIRE_TOKEN
env var by @alexmojaki in https://github.com/pydantic/logfire/pull/256
Full Changelog: https://github.com/pydantic/logfire/compare/v0.41.0...v0.42.0
anthropic>=0.27.0
Full Changelog: https://github.com/pydantic/logfire/compare/v0.40.0...v0.41.0
processors
parameter of logfire.configure()
has been replaced by additional_span_processors
. Passing processors
will raise an error. Unlike processors
, setting additional_span_processors
to an empty sequence will not disable the default span processor which exports to Logfire. To do that, pass send_to_logfire=False
. Similarly metric_readers
has been replaced by additional_metric_reader
. By @alexmojaki in https://github.com/pydantic/logfire/pull/233
Full Changelog: https://github.com/pydantic/logfire/compare/v0.39.0...v0.40.0
Add new methods for easier integration in https://github.com/pydantic/logfire/pull/207:
instrument_flask
instrument_starlette
instrument_aiohttp_client
instrument_sqlalchemy
instrument_pymongo
instrument_redis
BREAKING CHANGE: Calling logfire.info
, logfire.error
, logfire.span
etc. will no longer automatically configure logfire if it hasn't been configured already. Instead it will emit a warning and not log anything.
Users must call logfire.configure()
before they want logging to actually start, even if they don't pass any arguments to configure
and all configuration is done by environment variables.
Using integrations like logfire.instrument_fastapi()
before calling configure
will also emit a warning but it will still set up the instrumentation, although it will not log anything until configure
is called.
Full Changelog: https://github.com/pydantic/logfire/compare/v0.37.0...v0.38.0
logfire.suppress_instrumentation
context manager, silence urllib3
debug logs from exporting by @jlondonobo in https://github.com/pydantic/logfire/pull/197
Full Changelog: https://github.com/pydantic/logfire/compare/v0.36.1...v0.37.0
Full Changelog: https://github.com/pydantic/logfire/compare/v0.35.0...v0.36.0
logfire.instrument_requests()
by @tlpinney in https://github.com/pydantic/logfire/pull/196
logfire.instrument_httpx()
by @tlpinney in https://github.com/pydantic/logfire/pull/198
logfire.instrument_django()
by @inspirsmith in https://github.com/pydantic/logfire/pull/200
Full Changelog: https://github.com/pydantic/logfire/compare/v0.34.0...v0.35.0
Full Changelog: https://github.com/pydantic/logfire/compare/v0.33.0...v0.34.0