Loading...
Loading...
Generate AgentforcePlatformTracingSettings metadata to enable or disable Agentforce agent execution trace spans flowing to Data Cloud. Use this skill for any AgentforcePlatformTracingSettings metadata work. TRIGGER when: user mentions Agentforce tracing, agent trace spans, Data Cloud tracing, AgentforcePlatformTracingSettings, platform observability tracing, enable agent tracing, wants agent execution spans in Data Cloud, mentions .settings-meta.xml for AgentforcePlatformTracing, or asks about enabling observability for Agentforce agents. DO NOT TRIGGER when: user wants Platform Tracing for TraceSpanEvent (use platform-tracing-configure), wants to query or analyze existing agent trace data in Data Cloud (use agentforce-observe), wants Event Log Files or ELF configuration, wants Change Data Capture (use integration-eventing-cdc-configure), or wants ManagedEventSubscription (use integration-eventing-subscription-configure).
npx skill4agent add forcedotcom/sf-skills platform-tracing-agentforce-configureAgentforcePlatformTracing.settings-meta.xmlplatform-tracing-configurePlatformObservabilityAgentforcePlatformTracingSettingstruefalsetruefalsePlatformObservabilityassets/AgentforcePlatformTracing-template.xml{ENABLED}truefalsesettings/AgentforcePlatformTracing.settings-meta.xml| Constraint | Rationale |
|---|---|
| Singleton — only one file per org, one boolean field | The metadata type has exactly one instance. Deploying the file sets the org-wide preference. |
XML namespace must be | Any other namespace causes deploy failure. |
File must be named | SFDX source format convention for this Settings type. |
Only include | No other fields exist on this type. |
| Requires API v68.0+ | Older orgs reject the metadata type entirely. |
| Issue | Resolution |
|---|---|
| Deploy succeeds but tracing doesn't activate | Org lacks |
| Org or tooling is on API version < 68.0. Update |
| User confuses this with Platform Tracing (TraceSpanEvent) | Clarify: this sends Agentforce agent execution spans to Data Cloud. For TraceSpanEvent publishing, use the |
settings/AgentforcePlatformTracing.settings-meta.xmlhttp://soap.sforce.com/2006/04/metadataAgentforcePlatformTracing.settings-meta.xmlenableAgentforcePlatformTracing| Need | Delegate to |
|---|---|
| Enable TraceSpanEvent publishing (Platform Tracing) | |
| Query or analyze existing Agentforce agent trace data in Data Cloud | |
| Set up Change Data Capture | |
| Configure ManagedEventSubscription | |
| File | When to read |
|---|---|
| Step 2 — template for generating the settings file |