traceloop / traceloop/openllmetry
LangchainTool definition missing
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 7.4k
- Forks
- 1.1k
- Avg merge
- 8d 14h
- Merged PRs (30d)
- 2
Description
Which component is this bug for?
Langchain Instrumentation
📜 Description
The otel schema for gen_ai.tool.definitions requires the type field for each tool definition.
But the langchain instrumentation does not emit it, see here:
https://github.com/traceloop/openllmetry/blob/62e24c2ffde6c1ee04dc290e52d8d5dbda054cff/packages/opentelemetry-instrumentation-langchain/opentelemetry/instrumentation/langchain/span_utils.py#L198
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 in packages/opentelemetry-instrumentation-langchain/opentelemetry/instrumentation/langchain/span_utils.py around line 198, then compare the emitted tool definitions with the linked gen-ai-tool-definitions.json schema. Confirm the Langchain instrumentation emits the required type field for each tool definition and verify the resulting instrumentation output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- observability
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 78/100