o
    ©i  ã                   @  sd  U d Z ddlmZ ddl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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* ddl+m,Z, eƒ Z-de.d< e-j/Z/e-j0Z0e-j1Z1e-j2Z2e-j3Z3e-j4Z4e-j5Z5e-j6Z6e-j7Z7e-j8Z8e-j9Z9e-j:Z:e-j;Z;e-j<Z<e-j=Z=e-j>Z>e-j?Z?e-j@Z@e-jAZAe-jBZBe-jCZCe-jDZDe-jEZEe-jFZFe-jGZGe-jHZHe-jIZIe-jJZJe-jKZKe-jLZLe-jMZMe-jNZNe-jOZOe-jPZPe-jQZQe-jRZRe-jSZSe-jTZTe-jUZUe-jVZVe-jWZWe-jXZXe-jYZYe-jZZZe-j[Z[e-j\Z\e-j]Z]e-j^Z^e-j_Z_e-j`Z`e-jaZae-jbZbe-jcZce-jdZde-jeZeddd„Zfe,ZgdZhdS )zF**Logfire** is the observability tool focused on developer experience.é    )Úannotations)ÚAny)Úattach_contextÚget_context)ÚSamplingOptionsé   )ÚAutoTraceModule)Úno_auto_trace)Úget_baggageÚset_baggage)Úlogfire_info)ÚAdvancedOptionsÚ
CodeSourceÚConsoleOptionsÚMetricsOptionsÚPydanticPluginÚ	configure)Ú	LevelName)ÚLogfireÚLogfireSpan)ÚScrubbingOptionsÚ
ScrubMatch)Úadd_non_user_code_prefix)Úsuppress_instrumentation)ÚLogfireLoggingHandler)ÚLogfireProcessor)ÚVERSIONr   ÚDEFAULT_LOGFIRE_INSTANCEÚreturnr   c                  C  s   ddl m}  |  ¡ 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   © r%   úV/var/www/html/karishye-ai-python/venv/lib/python3.10/site-packages/logfire/__init__.pyÚloguru_handlerW   s   r'   )Ir   r   r   r   r   r   r   r   ÚspanÚ
instrumentÚlogÚtraceÚdebugÚnoticeÚinfoÚwarnÚwarningÚerrorÚ	exceptionÚfatalÚforce_flushÚlog_slow_async_callbacksÚinstall_auto_tracingÚinstrument_asgiÚinstrument_wsgiÚinstrument_pydanticÚinstrument_pydantic_aiÚinstrument_fastapiÚinstrument_openaiÚinstrument_openai_agentsÚinstrument_anthropicÚinstrument_google_genaiÚinstrument_litellmÚinstrument_printÚinstrument_asyncpgÚinstrument_httpxÚinstrument_celeryÚinstrument_requestsÚinstrument_psycopgÚinstrument_djangoÚinstrument_flaskÚinstrument_starletteÚinstrument_aiohttp_clientÚinstrument_aiohttp_serverÚinstrument_sqlalchemyÚinstrument_sqlite3Úinstrument_aws_lambdaÚinstrument_redisÚinstrument_pymongoÚinstrument_mysqlÚinstrument_system_metricsÚinstrument_mcpr   Ú	with_tagsÚwith_settingsÚsuppress_scopesÚshutdownr	   r   r   r   r   r   ÚStructlogProcessorr   r'   r   r   r   r
   r   r   r   N)r   r   )iÚ__doc__Ú
__future__r   Útypingr   Úlogfire.propagater   r   Úlogfire.samplingr   Ú_internal.auto_tracer   Ú _internal.auto_trace.rewrite_astr	   Ú_internal.baggager
   r   Ú_internal.clir   Ú_internal.configr   r   r   r   r   r   Ú_internal.constantsr   Ú_internal.mainr   r   Ú_internal.scrubbingr   r   Ú_internal.stack_infor   Ú_internal.utilsr   Úintegrations.loggingr   Úintegrations.structlogr   rX   Úversionr   r   Ú__annotations__r(   r)   r4   r5   r6   r9   r:   r7   r8   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rV   rW   rT   rU   r*   r+   r,   r.   r-   r/   r0   r1   r3   r2   Ú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%   r%   r&   Ú<module>   sš     
