Skip to content

[FEATURE] OTEL exporter to be an asynchronous operation #2036

@harniva14

Description

@harniva14

Problem Statement

Key ask: make force_flush either optional (configurable), or run it non-blocking in a daemon thread.

Every time a span ends, force_flush() is called synchronously. This affects:

  • After every tool call span (end_tool_call_span)
  • After the full agent span (end_agent_span)
  • On errors (end_span_with_error)

Proposed Solution

Make force_flush either optional (configurable), or run it non-blocking in a daemon thread

Use Case

N/A

Alternatives Solutions

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions