
    g                    F   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 ddlmZmZmZmZmZmZ dd	lmZ dd
lmZmZ ddlmZmZ ddlmZ ddlmZ ddlmZ  ddl!m"Z"  e       Z#e#jH                  Z$e#jJ                  Z%e#jL                  Z&e#jN                  Z'e#jP                  Z(e#jR                  Z)e#jT                  Z*e#jV                  Z+e#jX                  Z,e#jZ                  Z-e#j\                  Z.e#j^                  Z/e#j`                  Z0e#jb                  Z1e#jd                  Z2e#jf                  Z3e#jh                  Z4e#jj                  Z5e#jl                  Z6e#jn                  Z7e#jp                  Z8e#jr                  Z9e#jt                  Z:e#jv                  Z;e#jx                  Z<e#jz                  Z=e#j|                  Z>e#j~                  Z?e#j                  Z@e#j                  ZAe#j                  ZBe#j                  ZCe#j                  ZDe#j                  ZEe#j                  ZFe#j                  ZGe#j                  ZHe#j                  ZIe#j                  ZJe#j                  ZKe#j                  ZLe#j                  ZMe#j                  ZNe#j                  ZOe#j                  ZPe#j                  ZQe#j                  ZRddZSe"ZTdZUy)zF**Logfire** is the observability tool focused on developer experience.    )annotations)Any)SamplingOptions   )AutoTraceModule)no_auto_trace)AdvancedOptions
CodeSourceConsoleOptionsMetricsOptionsPydanticPlugin	configure)	LevelName)LogfireLogfireSpan)ScrubbingOptions
ScrubMatch)suppress_instrumentation)LogfireLoggingHandler)LogfireProcessor)VERSIONc                 4    ddl m}  | j                         ddS )zxCreate a **Logfire** handler for Loguru.

    Returns:
        A dictionary with the handler and format for Loguru.
    r   loguruz	{message})sinkformat)integrationsr   LogfireHandlerr   s    E/var/www/openai/venv/lib/python3.12/site-packages/logfire/__init__.pyloguru_handlerr    K   s     %))+{CC    );r   r   r   r	   r   r
   r   r   span
instrumentlogtracedebugnoticeinfowarnerror	exceptionfatalforce_flushlog_slow_async_callbacksinstall_auto_tracinginstrument_asgiinstrument_wsgiinstrument_pydanticinstrument_fastapiinstrument_openaiinstrument_anthropicinstrument_asyncpginstrument_httpxinstrument_celeryinstrument_requestsinstrument_psycopginstrument_djangoinstrument_flaskinstrument_starletteinstrument_aiohttp_clientinstrument_sqlalchemyinstrument_sqlite3instrument_aws_lambdainstrument_redisinstrument_pymongoinstrument_mysqlinstrument_system_metricsr   	with_tagswith_settingssuppress_scopesshutdownr   r   r   r   r   StructlogProcessorr   r    r   r   N)returnr   )V__doc__
__future__r   typingr   logfire.samplingr   _internal.auto_tracer    _internal.auto_trace.rewrite_astr   _internal.configr	   r
   r   r   r   r   _internal.constantsr   _internal.mainr   r   _internal.scrubbingr   r   _internal.utilsr   integrations.loggingr   integrations.structlogr   rJ   versionr   DEFAULT_LOGFIRE_INSTANCEr"   r#   r-   r.   r/   r2   r0   r1   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   rE   rH   rI   rF   rG   r$   r%   r&   r(   r'   r)   r*   r,   r+   metric_countermetric_histogrammetric_up_down_countermetric_gaugemetric_counter_callbackmetric_gauge_callbackmetric_up_down_counter_callbackr    __version____all__ r!   r   <module>re      sr   L "  , 1 ; t t * 0 = 5 7 J "9 $$%00
&223LL /DD .BB *::*::-@@ ,>> /DD -@@ +<< ,>> .BB -@@ ,>> +<< /DD 4NN 0FF -@@ 0FF +<< -@@ +<< 4NN *::#,,$..	(66 "" && &&$$	!	(	($$ && &&$..	 *88+<< 1HH '442JJ 0FF ":"Z"Z D =r!   