traceloop / traceloop/openllmetry

LangchainTool definition missing

Open Beginner friendly
#4,454 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.