Skip to content
forcedotcom avatar

Platform Tracing Configure

Generate Event Monitoring metadata that turns Platform Tracing (TraceSpanEvent publishing) on or off.

CCM score
71 of 100
skills.sh installs
5.4K
GitHub stars
1.2K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers a single toggle: writes enablePlatformTracing to settings/Event.settings-meta.xml set to true or false
  • Warns that the PlatformTracing org permission and API version 68.0 or higher are required for the setting to take effect
  • Limits output to enablePlatformTracing so other EventSettings fields owned by other teams are not overwritten on deploy
  • Designed for admins and developers in SFDX projects, with Agentforce, CDC, and subscription tracing routed to sibling skills

Install

$ npx -y skills add forcedotcom/sf-skills --skill platform-tracing-configure -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Platform Tracing — Configure

Generate EventSettings metadata to enable or disable the Platform Tracing toggle, which controls whether TraceSpanEvent is published at a sample rate. This modifies a single field (enablePlatformTracing) within the existing EventSettings metadata type.

Scope

  • In scope: Generating Event.settings-meta.xml with the enablePlatformTracing field to enable or disable TraceSpanEvent publishing.
  • Out of scope: Agentforce agent tracing to Data Cloud (use platform-tracing-agentforce-configure). Other EventSettings fields (enableDeleteMonitoringData, enableLoginForensics, etc.) owned by other teams. Event Log Files. Change Data Capture.

Prerequisites

Before generating, inform the user of these requirements:

Details

Repository
github.com/forcedotcom/sf-skills
Category
DevOps & Cloud
First seen
Jul 14, 2026

Questions

What does the platform-tracing-configure skill do?

It generates Event.settings-meta.xml metadata that turns the enablePlatformTracing field on or off in Event Monitoring, which controls whether TraceSpanEvent is published at a sample rate. It changes only that single field and leaves other EventSettings fields alone.

What do I need before platform-tracing-configure will work?

The org must have the PlatformTracing permission, which is provisioned rather than set through metadata, or the setting deploys with no effect on TraceSpanEvent. Your project's sourceApiVersion should also be 68.0 or higher, since older tooling does not recognize the field.

How do I install platform-tracing-configure?

Run npx -y skills add forcedotcom/sf-skills --skill platform-tracing-configure -y in a project. The skill then lets your agent generate the Event settings file that enables or disables Platform Tracing.

When should I not use platform-tracing-configure?

Do not use it for Agentforce agent tracing to Data Cloud, which belongs to platform-tracing-agentforce-configure, or for Event Log Files, Change Data Capture or ManagedEventSubscription. Those tasks have their own skills.

More from forcedotcom/sf-skills

All 78

Similar to Platform Tracing Configure

More DevOps & Cloud