Releases: pydantic/logfire
Releases · pydantic/logfire
v0.52.0
What's Changed
- Handle FastAPI update with SolvedDependencies by @alexmojaki in #415
- Add experimental client for the Logfire Query API by @dmontagu in #405
- Remove
default_span_processor
parameter fromconfigure
by @alexmojaki in #400 - Remove
custom_scope_suffix
parameter ofLogfire.log
by @alexmojaki in #399 - Add missing
service_version
field to_LogfireConfigData
so that it gets copied into subprocesses by @alexmojaki in #401
Full Changelog: v0.51.0...v0.52.0
v0.51.0
What's Changed
BREAKING CHANGES
- System metrics are no longer collected by default when the correct dependency is installed. Use
logfire.instrument_system_metrics()
to enable system metrics collection. If you are simply using the old 'Basic System Metrics' dashboard, then no further code changes are required, but that dashboard will no longer work properly and you should create a new dashboard from the template named 'Basic System Metrics (Logfire)'. If you were using other collected metrics, see the documentation for how to collect those. By @alexmojaki in #373 - Stop collecting package versions by @alexmojaki in #387
- Don't auto-trace generators by @alexmojaki in #386
- Disable ASGI send/receive spans by default by @alexmojaki in #371
Other fixes
- Add py.typed file to logfire-api by @jackmpcollins in #379
- Check
LambdaRuntimeClient
before logging tracebacks in_ensure_flush_after_aws_lambda
by @alexmojaki in #388
New Contributors
- @jackmpcollins made their first contribution in #379
Full Changelog: v0.50.1...v0.51.0
v0.50.1
What's Changed
- Move TestExporter to avoid requiring pytest by @alexmojaki in #368
Full Changelog: v0.50.0...v0.50.1
v0.50.0
What's Changed
- BREAKING CHANGES: Separate sending to Logfire from using standard OTEL environment variables by @alexmojaki in #351. See https://docs.pydantic.dev/logfire/guides/advanced/alternative_backends/ for details. Highlights:
OTEL_EXPORTER_OTLP_ENDPOINT
is no longer just an alternative toLOGFIRE_BASE_URL
. SettingOTEL_EXPORTER_OTLP_ENDPOINT
,OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
, and/orOTEL_EXPORTER_OTLP_METRICS_ENDPOINT
will set up appropriate exporters in addition to sending to Logfire, which must be turned off separately if desired. These are basic exporters relying on OTEL defaults. In particular they don't use our custom retrying logic.LOGFIRE_BASE_URL
/logfire.configure(base_url=...)
is now only intended for actual alternative Logfire backends, which are currently only available to Logfire developers, and unlikeOTEL_EXPORTER_OTLP_ENDPOINT
requires authenticating with Logfire.- Pending spans are only sent to logfire-specific exporters.
- Add
capture_statement
to Redis instrumentation by @Kludex in #355
Full Changelog: v0.49.1...v0.50.0
v0.49.1
v0.49.0
What's Changed
- Add the
logfire.instrument_mysql()
by @aditkumar72 in #341 - Set OTEL status description when logging exceptions by @alexmojaki in #348
- Switch UpDownCounters to cumulative aggregation temporality by @alexmojaki in #347
- Log more info about internal errors by @alexmojaki in #346
New Contributors
- @aditkumar72 made their first contribution in #341
Full Changelog: v0.48.1...v0.49.0
v0.48.1
What's Changed
- Handle newer opentelemetry versions by @alexmojaki in #337
- More lenient handling of loguru message mismatch and better warnings by @alexmojaki in #338
- Add better type hints for HTTPX and AsyncPG by @Kludex in #342
- Handle
setuptools
changingsys.path
for importingpackaging.version
by @alexmojaki in #344
Full Changelog: v0.48.0...v0.48.1
v0.48.0
What's Changed
- Add
instrument_celery
method by @Kludex in #322 capture_headers
by @alexmojaki in #318- Handle message formatting errors by @alexmojaki in #329
- Handle logging
None
withloguru
by @alexmojaki in #331
Full Changelog: v0.47.0...v0.48.0
v0.47.0
What's Changed
- Fix recursive logging from OTEL's
BatchSpanProcessor
by @alexmojaki in #306 - Set sqlalchemy 'connect' spans to debug level by @alexmojaki in #307
- Add type hints to instrument methods by @Kludex in #320
- Handle older versions of anthropic by @alexmojaki in #316
- Update dependencies, handle change in importlib by @alexmojaki in #323
- Summarize db.statement in message by @alexmojaki in #308
- Handle and test other OpenAI/Anthropic client methods by @alexmojaki in #312
Full Changelog: v0.46.1...v0.47.0