If Logfire with Celery throws 'Failed to detach context' errors, update with pip install -U 'logfire[celery]' (logfire 2.7.0 and opentelemetry-instrumentation-celery 0.49b2 are the versions the reporter confirmed fixed it). Also note the docs hook logfire.instrument_celery() to the worker_init signal, not worker_process_init.

_Source: gh:pydantic/logfire#653 (Pydantic Logfire)_