Skip to content

Adding Langsmith trace processor introduces huge latency to chat #529

Closed
@kmariunas

Description

@kmariunas

Describe the bug

Hey, when we add a langsmith trace processor, our latency goes through the roof. We have a suspicion, that tracing is not done asynchronously. Is there a way to make it async?

This is before and after we removed langsmith (but kept openai) tracing:
Image

Debug information

  • Agents SDK version: (e.g. v0.0.6)
  • Python version (e.g. Python 3.12.8)

Repro steps

from agents import (
    add_trace_processor,
)
from langsmith.wrappers import OpenAIAgentsTracingProcessor
add_trace_processor(OpenAIAgentsTracingProcessor())

Expected behavior

Tracing does not intrduce any latency to the system

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions