Skip to content

[FR]: Error field support in metrics constructor / default error chart #3169

@seldereyy

Description

@seldereyy

Proposal summary

Currently, when logging errors, Opik adds an Error field to the input/output section. However, this field is not accessible in the online evaluation → code metric constructor.

Because of this limitation, it’s not possible to track the dynamics of error frequency in the UI.

I’d like to request one of the following improvements:

  1. Add a default chart for errors (e.g., error count over time), possibly with breakdowns by error type or by agent that generated the error.
  2. Expose the Error field in the metrics constructor, so that custom metrics can leverage it directly.
Image Image

Motivation

This would make it easier to monitor system reliability and evaluate error trends without additional workarounds.

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