Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] crewAI kikoff spans incorrectly contain token counts #1154

Closed
mikeldking opened this issue Dec 6, 2024 · 0 comments · Fixed by #1213
Closed

[bug] crewAI kikoff spans incorrectly contain token counts #1154

mikeldking opened this issue Dec 6, 2024 · 0 comments · Fixed by #1213
Assignees
Labels
bug Something isn't working language: python Related to Python integration

Comments

@mikeldking
Copy link
Contributor

          @mikeldking Thanks for your reply! You are right I was having both openAI and llamaindex instrumentations in the llamaindex workflow. I have removed openAI instrumentation and it worked fine. 

But in the llamaindex workflow I have one step with llamaindex ReAct agent and the other step with crew AI agent. I used the below codes for the crew AI according to the documentation but it turned out there is double counting as shown in the screenshot. I tried deleting the LiteLLMInstrumentor().instrument(tracer_provider=tracer_provider) but the it's the same. Is there something wrong? Thanks!

tracer_provider = register(project_name="my-llm-app")
LlamaIndexInstrumentor().instrument(tracer_provider=tracer_provider)
CrewAIInstrumentor().instrument(tracer_provider=tracer_provider)
LiteLLMInstrumentor().instrument(tracer_provider=tracer_provider) # I am using CrewAI>= 0.63.0

image

_Originally posted by @Howie-Arup in #1193

@mikeldking mikeldking transferred this issue from Arize-ai/phoenix Dec 6, 2024
@mikeldking mikeldking added bug Something isn't working triage Issues that require triage labels Dec 6, 2024
@dosubot dosubot bot added the language: python Related to Python integration label Dec 6, 2024
@mikeldking mikeldking removed the triage Issues that require triage label Dec 9, 2024
@mikeldking mikeldking removed this from phoenix Dec 17, 2024
@nate-mar nate-mar moved this to In Progress in Instrumentation Jan 17, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in Instrumentation Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working language: python Related to Python integration
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants