open-telemetry / open-telemetry/opentelemetry-python-genai
[google-genai] Capture generation_config request parameters on interactions.create
Open
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.
Capture request configuration parameters from generation_config when creating an interaction.
- Attributes:
gen_ai.request.temperature,gen_ai.request.top_p,gen_ai.request.max_tokens,gen_ai.request.seed,gen_ai.request.stop_sequences,gen_ai.output.type(fromresponse_formatorresponse_mime_type)
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 interactions.create instrumentation and trace how generation_config, response_format, and response_mime_type are handled. Add the listed gen_ai.request and gen_ai.output attributes for these values, then verify that interactions created with each supported parameter record the expected attributes.
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