open-telemetry / open-telemetry/opentelemetry-python-genai
[google-genai] Add Interactions.get span
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.
Add instrumentation for Interactions.get (sync and async) in the Google GenAI SDK to trace retrieving previously created interactions.
- Operation: maps to GenAI
fetch_response(gen_ai.operation.name: "fetch_response") - Attributes:
gen_ai.response.id,gen_ai.request.stream_cursor(fromlast_event_id),gen_ai.request.stream
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 by reviewing the Google GenAI SDK's Interactions.get operation and the instrumentation for related interaction methods. Add tracing for both sync and async retrieval, including the listed operation name and response, cursor, and stream attributes; done means both paths emit the expected span data.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- observability-sre
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100