open-telemetry / open-telemetry/opentelemetry-python-genai
[bedrock] Add retrieve 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 #568.
Add instrumentation for retrieve in AWS Bedrock Agent Runtime (bedrock-agent-runtime) to trace knowledge base queries.
- Operation: maps to GenAI
retrieval(gen_ai.operation.name: "retrieval") - Span kind:
client - Attributes:
gen_ai.provider.name: "aws.bedrock",aws.bedrock.knowledge_base.id(fromknowledgeBaseId),gen_ai.retrieval.query.text(fromretrievalQuery.text),gen_ai.retrieval.top_k(fromvectorSearchConfiguration.numberOfResults),gen_ai.retrieval.documents(fromretrievalResults),server.address,server.port
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 existing AWS Bedrock Agent Runtime instrumentation and the entry point for retrieve operations. Compare related GenAI span mappings and confirm how retrieve responses expose the listed attributes. Done means retrieve emits a client span with the specified operation, provider, knowledge-base, query, result, server, and top-k attributes, with tests covering the behavior.
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
- 58/100