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

[google-genai] Capture intermediate tool calls from automatic function calling history

Open
#565 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

[!NOTE]
This issue was generated with AI assistance and requires investigation and confirmation prior to being worked on.

Part of #560.

When automatic function calling is enabled in generate_content, capture intermediate tool calls and responses recorded in response.automatic_function_calling_history.

  • Attributes: gen_ai.output.messages

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 tracing the generate_content instrumentation and how response.automatic_function_calling_history is currently handled. Confirm the intermediate tool calls and responses that need to be captured, then verify that they are emitted through the gen_ai.output.messages attribute with coverage for automatic function calling.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.