11from ._internal .auto_trace import AutoTraceModule as AutoTraceModule
22from ._internal .auto_trace .rewrite_ast import no_auto_trace as no_auto_trace
3- from ._internal .config import ConsoleOptions as ConsoleOptions , METRICS_PREFERRED_TEMPORALITY as METRICS_PREFERRED_TEMPORALITY , PydanticPlugin as PydanticPlugin , configure as configure
3+ from ._internal .config import (
4+ ConsoleOptions as ConsoleOptions ,
5+ METRICS_PREFERRED_TEMPORALITY as METRICS_PREFERRED_TEMPORALITY ,
6+ PydanticPlugin as PydanticPlugin ,
7+ configure as configure ,
8+ )
49from ._internal .constants import LevelName as LevelName
510from ._internal .exporters .file import load_file as load_spans_from_file
611from ._internal .exporters .tail_sampling import TailSamplingOptions as TailSamplingOptions
@@ -11,7 +16,56 @@ from .integrations.logging import LogfireLoggingHandler as LogfireLoggingHandler
1116from .integrations .structlog import LogfireProcessor as StructlogProcessor
1217from .version import VERSION as VERSION
1318
14- __all__ = ['Logfire' , 'LogfireSpan' , 'LevelName' , 'ConsoleOptions' , 'PydanticPlugin' , 'configure' , 'span' , 'instrument' , 'log' , 'trace' , 'debug' , 'notice' , 'info' , 'warn' , 'error' , 'fatal' , 'force_flush' , 'log_slow_async_callbacks' , 'install_auto_tracing' , 'instrument_fastapi' , 'instrument_openai' , 'instrument_anthropic' , 'instrument_asyncpg' , 'instrument_httpx' , 'instrument_requests' , 'instrument_psycopg' , 'instrument_django' , 'instrument_flask' , 'instrument_starlette' , 'instrument_aiohttp_client' , 'instrument_sqlalchemy' , 'instrument_redis' , 'instrument_pymongo' , 'AutoTraceModule' , 'with_tags' , 'with_settings' , 'shutdown' , 'load_spans_from_file' , 'no_auto_trace' , 'METRICS_PREFERRED_TEMPORALITY' , 'ScrubMatch' , 'ScrubbingOptions' , 'VERSION' , 'suppress_instrumentation' , 'StructlogProcessor' , 'LogfireLoggingHandler' , 'TailSamplingOptions' ]
19+ __all__ = [
20+ 'Logfire' ,
21+ 'LogfireSpan' ,
22+ 'LevelName' ,
23+ 'ConsoleOptions' ,
24+ 'PydanticPlugin' ,
25+ 'configure' ,
26+ 'span' ,
27+ 'instrument' ,
28+ 'log' ,
29+ 'trace' ,
30+ 'debug' ,
31+ 'notice' ,
32+ 'info' ,
33+ 'warn' ,
34+ 'error' ,
35+ 'fatal' ,
36+ 'force_flush' ,
37+ 'log_slow_async_callbacks' ,
38+ 'install_auto_tracing' ,
39+ 'instrument_fastapi' ,
40+ 'instrument_openai' ,
41+ 'instrument_anthropic' ,
42+ 'instrument_asyncpg' ,
43+ 'instrument_httpx' ,
44+ 'instrument_celery' ,
45+ 'instrument_requests' ,
46+ 'instrument_psycopg' ,
47+ 'instrument_django' ,
48+ 'instrument_flask' ,
49+ 'instrument_starlette' ,
50+ 'instrument_aiohttp_client' ,
51+ 'instrument_sqlalchemy' ,
52+ 'instrument_redis' ,
53+ 'instrument_pymongo' ,
54+ 'AutoTraceModule' ,
55+ 'with_tags' ,
56+ 'with_settings' ,
57+ 'shutdown' ,
58+ 'load_spans_from_file' ,
59+ 'no_auto_trace' ,
60+ 'METRICS_PREFERRED_TEMPORALITY' ,
61+ 'ScrubMatch' ,
62+ 'ScrubbingOptions' ,
63+ 'VERSION' ,
64+ 'suppress_instrumentation' ,
65+ 'StructlogProcessor' ,
66+ 'LogfireLoggingHandler' ,
67+ 'TailSamplingOptions' ,
68+ ]
1569
1670DEFAULT_LOGFIRE_INSTANCE = Logfire ()
1771span = DEFAULT_LOGFIRE_INSTANCE .span
@@ -24,6 +78,7 @@ instrument_openai = DEFAULT_LOGFIRE_INSTANCE.instrument_openai
2478instrument_anthropic = DEFAULT_LOGFIRE_INSTANCE .instrument_anthropic
2579instrument_asyncpg = DEFAULT_LOGFIRE_INSTANCE .instrument_asyncpg
2680instrument_httpx = DEFAULT_LOGFIRE_INSTANCE .instrument_httpx
81+ instrument_celery = DEFAULT_LOGFIRE_INSTANCE .instrument_celery
2782instrument_requests = DEFAULT_LOGFIRE_INSTANCE .instrument_requests
2883instrument_psycopg = DEFAULT_LOGFIRE_INSTANCE .instrument_psycopg
2984instrument_django = DEFAULT_LOGFIRE_INSTANCE .instrument_django
0 commit comments