Skip to content

Proposal: Log raw LLM requests and responses in tracing for improved debugging #1663

Open
@waldekmastykarz

Description

@waldekmastykarz

Proposal

Enhance the tracing functionality by logging raw HTTP requests and responses sent to and received from LLMs. This would aid in debugging issues related to prompt input, model responses, and integration errors.

Rationale

  • Debugging LLM interactions is challenging when only high-level errors or summaries are available.
  • Capturing the full raw request and response enables developers to reproduce issues, inspect prompt formatting, and analyze model behavior.
  • Tracing raw data helps identify encoding issues, unintentional prompt modifications, or unexpected output formats.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions