Use OpenTelemetry instrumentation for debugging
Use for general purposeJaeger is Open source, distributed tracing platform OpenTelemetry data visualization. This tool has base UI and it’s not so fancy as Phoenix, but you can see data from all spans and it’s not limited to agent observability.
open instance on http://localhost:16686/search
in the browser.
AI-focused debuggingPhoenix is an open-source AI observability platform designed for experimentation, evaluation, and troubleshooting by Arize AI company that has its own semantic conventions that all supported frameworks must follow. The advantage is defining more custom attributes for trace’s well-visualization and evaluation. Use Phoenix when your primary focus is agent observability. The main disadvantage is that the platform truncates the custom data attributes that are not correctly parsed. You cannot debug the ACP, fastify server, etc…
By default, Phoenix runs on port 6006. You can either map this to the standard OTLP port 4318 or update the OTEL_EXPORTER_OTLP_ENDPOINT
to point to the correct port.
open instance on http://localhost:4318/projects
in the browser.
Jaeger
for this example.
uv
. See the uv
primer for more details.agent.py
, telemetry.py
and client.py
files:
configure_telemetry=True
in the server.run
function in the agent.py file.
http://localhost:16686/search
in your browser, select acp-client in the Service
input on the left menu and click on the Find Traces
button.
You should see your first trace. When you click on the trace, you should see the following details:
Phoenix
for these examples.
Be sure you have a running Phoenix instance before you start! See the Run Phoenix section for more details.
agent.py
, telemetry.py
and client.py
files:
LangChainInstrumentor().instrument()
line when we turn on the LangChain instrumentation (LangGraph included) in the agent.py file.
http://localhost:4318/projects
in your browser and choose the default project.
You should see your first trace called session
. When you click on the trace, you should see these details: