open-telemetry / open-telemetry/opentelemetry-python-contrib

Metric: gen_ai.server.time_to_first_token

Open
#3,932 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request
Dominant language
Python
Stars
1.1k
Forks
1.1k
Avg merge
4d 15h
Merged PRs (30d)
16

Description

What problem do you want to solve?

In Semantic Conventions 1.38.0, there is a standard definition for the TTFT (Time to First Transaction) metric in the metrics section. However, the current agent does not yet implement this metric. Is there any plan to implement this metric in the future? If not, what would be the approach to customizing the implementation of this metric?

Describe the solution you'd like
  1. Follow-up plan for achieving the TTFT metric.
  2. Developer's approach to customizing the TTFT metric.
Describe alternatives you've considered

No response

Additional Context

No response

Would you like to implement a fix?

None

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.

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.

Research direction

Start by reviewing Semantic Conventions 1.38.0 and the current agent support for gen_ai metrics. Clarify whether TTFT will be implemented and document the customization approach; done means the follow-up plan and developer guidance are agreed and recorded.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
observability-sre
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.