bstraehle commited on
Commit
7314e00
·
verified ·
1 Parent(s): 4be21b6

Update crew.py

Browse files
Files changed (1) hide show
  1. crew.py +4 -4
crew.py CHANGED
@@ -42,8 +42,8 @@ from arize.otel import register
42
 
43
  # Import OpenInference instrumentors, use either Langchain or LiteLLM
44
  from openinference.instrumentation.crewai import CrewAIInstrumentor
45
- from openinference.instrumentation.langchain import LangChainInstrumentor
46
- from openinference.instrumentation.litellm import LiteLLMInstrumentor
47
 
48
  tracer_provider = register(
49
  space_id = "U3BhY2U6MTk3MTU6cUk3dQ==",
@@ -54,9 +54,9 @@ tracer_provider = register(
54
  CrewAIInstrumentor().instrument(tracer_provider=tracer_provider)
55
 
56
  # Instrument the underlying LLM call handler (e.g., LangChain)
57
- LangChainInstrumentor().instrument(tracer_provider=tracer_provider)
58
  # If using LiteLLM directly via a newer CrewAI version for model calls:
59
- LiteLLMInstrumentor().instrument(tracer_provider=tracer_provider)
60
  ###
61
 
62
  @CrewBase
 
42
 
43
  # Import OpenInference instrumentors, use either Langchain or LiteLLM
44
  from openinference.instrumentation.crewai import CrewAIInstrumentor
45
+ #from openinference.instrumentation.langchain import LangChainInstrumentor
46
+ #from openinference.instrumentation.litellm import LiteLLMInstrumentor
47
 
48
  tracer_provider = register(
49
  space_id = "U3BhY2U6MTk3MTU6cUk3dQ==",
 
54
  CrewAIInstrumentor().instrument(tracer_provider=tracer_provider)
55
 
56
  # Instrument the underlying LLM call handler (e.g., LangChain)
57
+ #LangChainInstrumentor().instrument(tracer_provider=tracer_provider)
58
  # If using LiteLLM directly via a newer CrewAI version for model calls:
59
+ #LiteLLMInstrumentor().instrument(tracer_provider=tracer_provider)
60
  ###
61
 
62
  @CrewBase