Skip to content

[FR]: Use span provider hint to order heuristics rather than only using fixed registry.ts order #7658

Description

@charles-dyfis-net

Proposal summary

Opik allows spans to tag provider -- but this is never used to populate the formatHint field used during rendering in practice, so detection order is always fixed.

Motivation

Adding support for Anthropic is my primary relevant goal. In most cases, it's possible to disambiguate OpenAI and Anthropic wire formats -- but there are corner cases where neither detector can give an authoritative answer.

Honoring the metadata that's already collected at ingestion time to set a preference is a sensible resolution to this conundrum.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions