mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
Update arize-phoenix-observability.mdx (#2595)
missing code to kickoff the monitoring for the crew Co-authored-by: Lorenze Jay <63378463+lorenzejay@users.noreply.github.com> Co-authored-by: Tony Kipkemboi <iamtonykipkemboi@gmail.com>
This commit is contained in:
@@ -68,7 +68,13 @@ We'll create a CrewAI application where two agents collaborate to research and w
|
|||||||
```python
|
```python
|
||||||
from crewai import Agent, Crew, Process, Task
|
from crewai import Agent, Crew, Process, Task
|
||||||
from crewai_tools import SerperDevTool
|
from crewai_tools import SerperDevTool
|
||||||
|
from openinference.instrumentation.crewai import CrewAIInstrumentor
|
||||||
|
from phoenix.otel import register
|
||||||
|
|
||||||
|
# setup monitoring for your crew
|
||||||
|
tracer_provider = register(
|
||||||
|
endpoint="http://localhost:6006/v1/traces")
|
||||||
|
CrewAIInstrumentor().instrument(skip_dep_check=True, tracer_provider=tracer_provider)
|
||||||
search_tool = SerperDevTool()
|
search_tool = SerperDevTool()
|
||||||
|
|
||||||
# Define your agents with roles and goals
|
# Define your agents with roles and goals
|
||||||
|
|||||||
Reference in New Issue
Block a user