traceloop / traceloop/openllmetry

🚀 Feature: Add `gen_ai.request.model` to data points attributes of meter

Open
#3,144 4 comments 0 reactions 1 assignee View on GitHub

@jyotirmayc is already working on this.

Since Sep 7, 2025.

Dominant language
Python
Stars
7.4k
Forks
1.1k
Avg merge
8d 14h
Merged PRs (30d)
2

Description

Which component is this feature for?

OpenAI Instrumentation

🔖 Feature description

Now the data points attributes of meter only has the attribute gen_ai.response.model but doesn't have gen_ai.request.model. Taking gen_ai.server.time_to_first_token as an example:

Data point attributes:
     -> gen_ai.system: Str(openai)
     -> gen_ai.response.model: Str(moonshot-v1-128k)
     -> gen_ai.operation.name: Str(chat)
     -> server.address: Str(https://api.moonshot.cn/v1/)
     -> stream: Bool(true)

Maybe we should also add it?

🎤 Why is this feature needed ?

Enrich meter attributes

✌️ How do you aim to achieve this?

Similar to the existing attr gen_ai.reponse.model

🔄️ Additional Information

No response

👀 Have you spent some time to check if this feature request has been raised before?
  • I checked and didn't find similar issue
Are you willing to submit PR?

Yes I am willing to submit a PR!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.