Source code for langchain_core.tracers.langchain_v1

"""This module is deprecated and will be removed in a future release.

Please use LangChainTracer instead.
"""

from typing import Any


[docs] def get_headers(*args: Any, **kwargs: Any) -> Any: # noqa: ARG001 """Throw an error because this has been replaced by get_headers.""" msg = ( "get_headers for LangChainTracerV1 is no longer supported. " "Please use LangChainTracer instead." ) raise RuntimeError(msg)
[docs] def LangChainTracerV1(*args: Any, **kwargs: Any) -> Any: # noqa: N802,ARG001 """Throw an error because this has been replaced by LangChainTracer.""" msg = ( "LangChainTracerV1 is no longer supported. Please use LangChainTracer instead." ) raise RuntimeError(msg)