Skip to content

GenAI Client Duration Metric has required provider attribute #3631

@keith-decker

Description

@keith-decker

Area(s)

area:gen-ai

What's the problem?

The duration metric for GenAI client duration metric at https://github.com/open-telemetry/semantic-conventions/blob/main/docs/gen-ai/gen-ai-metrics.md#metric-gen_aiclientoperationduration lists provider as required. When implementing the metrics for Execute Tools in GenAI Utils for python, it's become apparant that provider is not always available, since tool calls may not make calls to LLM providers.

Describe the solution you'd like

Perhaps setting that attribute to Conditionally Required may be the most prudent fix?

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Need triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions