You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure that all docs explicitly call logfire.configure() before anything else.
logfire.instrument_*() methods #193 so that instument_* methods can emit a warning if called before configuring. Currently the problem is that users may call e.g. SQLAlchemyInstrumentor().instrument() and forget to configure and we can't do anything about that.
Emit warnings when calling methods before configure.
Stop emitting spans (but keep the warning) when calling methods before configure.
The text was updated successfully, but these errors were encountered:
As announced in https://pydanticlogfire.slack.com/archives/C06EDRBSAH3/p1716143149301069, the log/span/instrument methods shouldn't implicitly initialize config. This requires a few steps:
logfire.configure()
before anything else.logfire.instrument_*()
methods #193 so thatinstument_*
methods can emit a warning if called before configuring. Currently the problem is that users may call e.g.SQLAlchemyInstrumentor().instrument()
and forget to configure and we can't do anything about that.The text was updated successfully, but these errors were encountered: