open-telemetry / open-telemetry/opentelemetry-python-genai

[langchain] Capture number of inference and tool calls on agent invocations

Open Beginner friendly
#598 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
39
Forks
63
Avg merge
1d 15h
Merged PRs (30d)
175

Description

Track and record gen_ai.invoke_agent.inference_calls and gen_ai.invoke_agent.tool_calls on AgentInvocation in LangChain instrumentation.

Part of #597.

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 with the LangChain instrumentation for AgentInvocation and trace where agent invocations record inference and tool activity. Add recording for gen_ai.invoke_agent.inference_calls and gen_ai.invoke_agent.tool_calls, then verify both values are captured on AgentInvocation invocations.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
observability
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.