open-telemetry / open-telemetry/opentelemetry-python-genai
[bedrock] Capture buffered completion stream content on invoke_agent
Nobody has claimed this yet.
- 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 #568.
Capture and buffer the completion event stream chunks on invoke_agent and record the aggregated output message once iteration finishes.
- Attributes:
gen_ai.output.messages(role: assistant, text parts accumulated from stream chunk bytes)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the existing invoke_agent instrumentation and inspect the completion event stream handling, then review related issue #568 for surrounding requirements. Done means buffering completion chunks through the end of an iteration and recording the aggregated assistant text in gen_ai.output.messages; confirm the behavior with the relevant existing test coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- cloud, observability
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100