Skip to content

Langfuse: Async TracesΒ #510

@AkhileshNegi

Description

@AkhileshNegi

Is your feature request related to a problem?

Glific AI flows experienced an outage where flows were stuck due to no response from Kaapi. Root cause: Langfuse was returning errors while creating traces for orgs with Langfuse credentials (Bandhu, Veddis, Rocket Learning, Antara, Sneha).

As a quick fix, we marked Langfuse credentials as is_active: false to restore Kaapi responses, but traces are now not being captured.

Current behavior:

  • Trace creation is synchronous
  • Langfuse failures block the entire flow
  • External service outages directly impact core functionality

Describe the solution you'd like

Make Langfuse trace creation asynchronous so:

  • Normal flow execution continues regardless of Langfuse status
  • Trace failures are logged but don't block responses
  • Core functionality remains unaffected by observability layer issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions