Buckets:

download
raw
636 Bytes
from __future__ import annotations
from typing import Any
try:
from opentelemetry.instrumentation.celery import CeleryInstrumentor
except ImportError:
raise RuntimeError(
'`logfire.instrument_celery()` requires the `opentelemetry-instrumentation-celery` package.\n'
'You can install this with:\n'
" pip install 'logfire[celery]'"
)
def instrument_celery(**kwargs: Any) -> None:
"""Instrument the `celery` module so that spans are automatically created for each task.
See the `Logfire.instrument_celery` method for details.
"""
return CeleryInstrumentor().instrument(**kwargs)

Xet Storage Details

Size:
636 Bytes
·
Xet hash:
24c9de695b7e6a152f4d58ce45c2e9c5d78526e39ec7323e782cc4779267a5f9

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.