open-telemetry / open-telemetry/opentelemetry-python-genai
[google-genai] Capture previous_interaction_id on interactions.create
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 #560.
Capture previous_interaction_id from the request parameters when creating an interaction.
- Attribute: maps to
gen_ai.request.previous_response.idon inference and agent invocation spans
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
Locate the google-genai interactions.create instrumentation and compare how request parameters are captured for inference and agent invocation spans. Add coverage for previous_interaction_id, confirming it maps to gen_ai.request.previous_response.id in both span types. Done when the relevant tests pass and the attribute is captured from the request parameters.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- observability-sre
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100