You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Evo AI platform natively supports integration with [Langfuse](https://langfuse.com/) for detailed tracing of agent executions, prompts, model responses, and tool calls, using the OpenTelemetry (OTel) standard.
307
+
308
+
### Why use Langfuse?
309
+
310
+
- Visual dashboard for agent traces, prompts, and executions
311
+
- Detailed analytics for debugging and evaluating LLM apps
312
+
- Easy integration with Google ADK and other frameworks
313
+
314
+
### How it works
315
+
316
+
- Every agent execution (including streaming) is automatically traced via OpenTelemetry spans
317
+
- Data is sent to Langfuse, where it can be visualized and analyzed
318
+
319
+
### How to configure
320
+
321
+
1.**Set environment variables in your `.env`:**
322
+
323
+
```env
324
+
LANGFUSE_PUBLIC_KEY="pk-lf-..." # Your Langfuse public key
325
+
LANGFUSE_SECRET_KEY="sk-lf-..." # Your Langfuse secret key
326
+
OTEL_EXPORTER_OTLP_ENDPOINT="https://cloud.langfuse.com/api/public/otel" # (or us.cloud... for US region)
327
+
```
328
+
329
+
> **Attention:** Do not swap the keys! `pk-...` is public, `sk-...` is secret.
330
+
331
+
2.**Automatic initialization**
332
+
333
+
- Tracing is automatically initialized when the application starts (`src/main.py`).
334
+
- Agent execution functions are already instrumented with spans (`src/services/agent_runner.py`).
335
+
336
+
3.**View in the Langfuse dashboard**
337
+
- Access your Langfuse dashboard to see real-time traces.
338
+
339
+
### Troubleshooting
340
+
341
+
-**401 Error (Invalid credentials):**
342
+
- Check if the keys are correct and not swapped in your `.env`.
343
+
- Make sure the endpoint matches your region (EU or US).
344
+
-**Context error in async generator:**
345
+
- The code is already adjusted to avoid OpenTelemetry context issues in async generators.
346
+
-**Questions about integration:**
347
+
- See the [official Langfuse documentation - Google ADK](https://langfuse.com/docs/integrations/google-adk)
348
+
304
349
## 🤖 Agent 2 Agent (A2A) Protocol Support
305
350
306
351
Evo AI implements the Google's Agent 2 Agent (A2A) protocol, enabling seamless communication and interoperability between AI agents. This implementation includes:
0 commit comments