traceloop / traceloop/openllmetry

๐Ÿ› Bug Report: LiteLLM tracing when not using openAI models not complete

Open
#3,167 8 comments 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?

Traceloop SDK

๐Ÿ“œ Description

When using the litellm with anthropic models, the proper/full tracing expected isn't showing up.

This is the information that I see

Image
๐Ÿ‘Ÿ Reproduction steps

Use litellm with an anthropic model.

๐Ÿ‘ Expected behavior

I should expect something similar to openai for openllmetry supported models through litellm, like openai

Image
๐Ÿ‘Ž Actual Behavior with Screenshots

See screenshot above

๐Ÿค– Python Version

Python 3.11

๐Ÿ“ƒ Provide any additional context for the Bug.

No response

๐Ÿ‘€ Have you spent some time to check if this bug has been raised before?
  • I checked and didn't find similar issue
Are you willing to submit PR?

None

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 at the Traceloop SDK's LiteLLM instrumentation entry point and reproduce the issue with Python 3.11 using LiteLLM and an Anthropic model. Compare its trace with the OpenAI-model example; done means supported non-OpenAI models produce the expected complete tracing.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai, observability-sre
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.