Loading...
Loading...
Generate EventSettings metadata to enable or disable Platform Tracing (TraceSpanEvent publishing) in Event Monitoring. Use this skill for any EventSettings enablePlatformTracing metadata work. TRIGGER when: user mentions Platform Tracing, TraceSpanEvent, enable tracing in Event Monitoring Settings, event monitoring tracing toggle, enablePlatformTracing, .settings-meta.xml for Event settings tracing, turn on trace span events, or stop publishing trace spans. DO NOT TRIGGER when: user wants Agentforce agent tracing to Data Cloud (use platform-tracing-agentforce-configure), wants Event Log Files or ELF generation, 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-configureenablePlatformTracingEvent.settings-meta.xmlenablePlatformTracingplatform-tracing-agentforce-configureenableDeleteMonitoringDataenableLoginForensicsPlatformTracingenablePlatformTracingsfdx-project.jsonsourceApiVersion68.0truefalsetruefalsePlatformTracingassets/EventSettings-template.xml{ENABLED}truefalsesettings/Event.settings-meta.xml| Constraint | Rationale |
|---|---|
Only include | Other fields in EventSettings are owned by other teams. Including them risks overwriting unrelated settings during deploy. |
XML namespace must be | Any other namespace causes deploy failure. |
File must be named | SFDX source format convention — the type name prefix for EventSettings is |
Requires | Without this permission, the setting deploys but has no effect on TraceSpanEvent publishing. |
| Requires API v68.0+ | Older orgs/tooling reject the field entirely. |
| Issue | Resolution |
|---|---|
| Deploy succeeds but TraceSpanEvent not published | Org lacks the |
| Tooling is on API version < 68.0. Update |
| User confuses this with Agentforce tracing | Clarify: this publishes TraceSpanEvent for platform operations. For Agentforce agent spans to Data Cloud, use the |
| User wants to configure all Event Monitoring settings | Only |
settings/Event.settings-meta.xmlhttp://soap.sforce.com/2006/04/metadataEvent.settings-meta.xmlenablePlatformTracingsourceApiVersionsfdx-project.json68.0| Need | Delegate to |
|---|---|
| Enable Agentforce agent tracing to Data Cloud | |
| Set up Change Data Capture | |
| Configure ManagedEventSubscription | |
| File | When to read |
|---|---|
| Step 2 — template for generating the settings file |