Agent Platform Tracing is a Salesforce feature that captures every Agentforce action execution as an OpenTelemetry trace tree stored in Data 360. It records LLM calls, Flow executions, and Apex invocations with timing and status, enabling root cause analysis via SOQL queries. The post explains how to enable the feature, how trace trees are structured using parent-child span relationships, how it differs from Agentforce Session Tracing (planner-level vs. service-level), and how to join both for end-to-end observability. A practical pattern using Slackbot as a natural language interface for querying trace data is also demonstrated, allowing teams to diagnose agent issues without leaving Slack.

7m read timeFrom developer.salesforce.com
Post cover image
Table of contents
How to enable Agent Platform TracingHow Agent Platform Tracing builds a trace treeComparing Agentforce session tracing and Agent Platform TracingQuerying trace data with SOQLQuery Agent Platform Tracing data from Slack with SlackbotJoining Agentforce Session Tracing and Agent Platform Tracing dataGetting started

Sort: