Skip to main content
AgentScope Java provides multiple mechanisms for observing and debugging agent execution:
  • Studio (Visual Debugging): Real-time visualization and interactive debugging through a Web UI
  • OpenTelemetry Tracing: Export trace data to external observability platforms (e.g., Langfuse, Jaeger) via the OTLP protocol

Studio (Visual Debugging)

Studio provides a Web interface for real-time visualization of Agent execution processes, supporting interactive debugging and message tracing.

Core Features

  • Real-time Visualization: Web interface displays Agent reasoning and execution processes
  • Interactive Input: Interact with Agent through Web UI
  • Message Tracing: View complete message flow and Trace
  • Multi-Run Management: Support organization and comparison of multiple experimental runs

Quick Start

1. Start Studio Server

Start from source code
Install via npm
Studio will run at http://localhost:5173 (frontend dev server) Studio Server Page

2. Java Application Integration

3. View Trace Information in AgentScope Studio

Trace Information

StudioUserAgent

Receive user input through Web UI.
You can find the Project in Studio’s Projects and debug through the WebUI Studio Server Web UI Input Interface

Conversation Loop


Complete Example


Advanced Usage

Manual Message Pushing

Multi-Agent Visualization


OpenTelemetry Tracing

AgentScope Java integrates with OpenTelemetry to provide distributed tracing for agent execution. You can export traces to any platform that supports the OTLP protocol, such as Langfuse.

Quick Start

Use TelemetryTracer and register it via TracerRegistry to enable automatic tracing for all agent calls, model calls, and tool executions:
Once registered, the tracer automatically captures:
  • Agent calls — span for each agent.call()
  • Model calls — span for each LLM invocation
  • Tool executions — span for each tool call
  • Formatting — span for message formatting
No additional code is needed — tracing is applied globally.

Configuration

TelemetryTracer supports the following builder options:

Integration with Langfuse

Langfuse is an open-source observability platform that supports the OpenTelemetry protocol. You can send traces to Langfuse Cloud or a self-hosted instance.
Note: The x-langfuse-ingestion-version header is required by Langfuse when using the OTLP endpoint. Make sure to include it.
After running your agent, you can view the traces in the Langfuse dashboard, including the full call chain, latency, and input/output of each step.

Integration with Other OTLP Backends

Any platform that supports the OTLP protocol can be used. For example, to send traces to a local Jaeger instance:

More Resources