LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Caches
    • Callbacks
    • Documents
    • Document loaders
    • Embeddings
    • Exceptions
    • Language models
    • Serialization
    • Output parsers
    • Prompts
    • Rate limiters
    • Retrievers
    • Runnables
    • Utilities
    • Vector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewCachesCallbacksDocumentsDocument loadersEmbeddingsExceptionsLanguage modelsSerializationOutput parsersPromptsRate limitersRetrieversRunnablesUtilitiesVector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-coretracers
    Module●Since v0.1

    tracers

    Tracers are classes for tracing runs.

    Attributes

    attribute
    Run: RunTree

    Functions

    function
    import_attr

    Classes

    class
    BaseTracer
    class
    EvaluatorCallbackHandler
    class
    LangChainTracer
    class
    LogStreamCallbackHandler
    class
    RunLog
    class
    RunLogPatch
    class
    ConsoleCallbackHandler

    Modules

    View source on GitHub
    module
    stdout
    module
    core
    module
    evaluation
    module
    log_stream
    module
    root_listeners
    module
    run_collector
    module
    langchain
    module
    schemas
    module
    event_stream
    module
    memory_stream
    module
    context
    module
    base

    Import an attribute from a module located in a package.

    This utility function is used in custom __getattr__ methods within __init__.py files to dynamically import attributes.

    Base interface for tracers.

    Tracer that runs a run evaluator whenever a run is persisted.

    Implementation of the SharedTracer that POSTS to the LangChain endpoint.

    Tracer that streams run logs to a stream.

    Run log.

    Patch to the run log.

    Tracer that prints to the console.

    Tracers that print to the console.

    Utilities for the root listener.

    A tracer that runs evaluators over completed runs.

    Tracer that streams run logs to a stream.

    Tracers that call listeners.

    A tracer that collects all nested runs in a list.

    A tracer implementation that records to LangChain endpoint.

    Schemas for tracers.

    Internal tracer to power the event stream API.

    Module implements a memory stream for communication between two co-routines.

    This module provides a way to communicate between two co-routines using a memory channel. The writer and reader can be in the same event loop or in different event loops. When they're in different event loops, they will also be in different threads.

    Useful in situations when there's a mix of synchronous and asynchronous used in the code.

    Context management for tracers.

    Base interfaces for tracing runs.