Skip to main content
skill CX Codex

platform-tracing-configure — Claude Code skill: what it does, install

Generates Event.settings-meta.xml with a single enablePlatformTracing flag, so you can start or stop TraceSpanEvent publishing in Event Monitoring.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add forcedotcom/sf-skills --skill platform-tracing-configure -a claude-code
Open on GitHub

What platform-tracing-configure does

Point the skill at Salesforce and you get one metadata file: settings/Event.settings-meta.xml holding a single enablePlatformTracing boolean. That flag decides whether Event Monitoring puts out TraceSpanEvent at its sample rate. Nothing else is written into the XML. EventSettings carries many other fields, yet they belong to other teams, so adding them risks overwriting unrelated settings on the next deploy.

Mechanically the skill fills assets/EventSettings-template.xml with true or false and saves it under the name the source format expects for this type. Leave the namespace as http://soap.sforce.com/2006/04/metadata. Anything else breaks the deploy.

Two conditions come first. The org must have the PlatformTracing permission active, and that permission is provisioned rather than set through metadata. Deploy without it and the file lands while no spans are published. Tooling also has to be on API version 68.0 or higher, so sourceApiVersion in sfdx-project.json can't sit lower or the field is rejected.

What it helps with

  • turn on TraceSpanEvent publishing for an org
  • switch tracing off without touching other Event Monitoring settings
  • produce a deployable Event.settings-meta.xml with the correct namespace
  • track down missing spans after a deploy that reported success
  • confirm the project is on API 68.0 before wiring anything up

Example prompts for the agent

  • Enable Platform Tracing: write Event.settings-meta.xml with enablePlatformTracing set to true.
  • Stop publishing trace spans in Event Monitoring, keep everything else as it is.
  • Generate the Event settings file for tracing and check sourceApiVersion in sfdx-project.json.

How to install platform-tracing-configure

1Skills CLI (Vercel)

npx skills add forcedotcom/sf-skills --skill platform-tracing-configure -a claude-code

2Manually: put the files in place

~/.claude/skills/platform-tracing-configure/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/platform-tracing-configure/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about platform-tracing-configure

How do I install platform-tracing-configure in Claude Code?

Run npx skills add forcedotcom/sf-skills --skill platform-tracing-configure -a claude-code. The skill then sits at ~/.claude/skills/platform-tracing-configure/SKILL.md.

What does platform-tracing-configure do?

It writes a settings/Event.settings-meta.xml file that contains only enablePlatformTracing. Setting it to true turns TraceSpanEvent publishing on, false turns it off.

How is this different from the Agentforce tracing skill?

This one covers TraceSpanEvent for platform operations. Agent spans sent to Data Cloud are handled by a separate skill, platform-tracing-agentforce-configure.

Source text

SKILL.md · Apache-2.0
---
name: platform-tracing-configure
description: "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)."
metadata:
  version: "1.0"
  domains: ["Platform"]
  minApiVersion: "68.0"
  relatedSkills:
    - "integration-eventing-cdc-configure"
    - "integration-eventing-subscription-configure"
    - "platform-tracing-agentforce-configure"
---

# 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:

1. **`PlatformTracing` org permission** must be active — this permission gates the feature. It is provisioned (not settable via metadata). Without it, the setting deploys but TraceSpanEvent is not published.
2. **API version 68.0+** — `enablePlatformTracing` on EventSettings was introduced in Spring '25. Orgs or tooling on older API versions will not recognize the field. Update `sfdx-project.json` `sourceApiVersion` to `68.0` or higher if on an older tooling version.

If the user reports the setting isn't working after deploy, the most likely cause is a missing prerequisite above.

---

## Clarifying Questions

Before generating, confirm with the user if not already clear:

- Enable or disable? (Which state do you want for Platform Tracing / TraceSpanEvent?)

No other clarification needed — this controls a single boolean field.

---

## Required Inputs

Gather or infer before proceeding:

- **Desired state**: `true` (enable) or `false` (disable)

Defaults unless specified:
- If user says "enable" or "turn on": set to `true`
- If user says "disable" or "turn off": set to `false`

If the user provides a clear request, generate immediately without unnecessary back-and-forth.

---

## Workflow

1. **Warn about prerequisites** — inform the user that this feature requires the `PlatformTracing` org permission and API version 68.0+.

2. **Read the template** — load `assets/EventSettings-template.xml`.

3. **Generate the settings file** — replace `{ENABLED}` with `true` or `false` based on the user's desired state.

4. **Place the file** — output to `settings/Event.settings-meta.xml` in the project's source directory.

---

## Rules / Constraints

| Constraint | Rationale |
|---|---|
| Only include `enablePlatformTracing` in generated metadata | Other fields in EventSettings are owned by other teams. Including them risks overwriting unrelated settings during deploy. |
| XML namespace must be `http://soap.sforce.com/2006/04/metadata` | Any other namespace causes deploy failure. |
| File must be named `Event.settings-meta.xml` | SFDX source format convention — the type name prefix for EventSettings is `Event`. |
| Requires `PlatformTracing` org permission | Without this permission, the setting deploys but has no effect on TraceSpanEvent publishing. |
| Requires API v68.0+ | Older orgs/tooling reject the field entirely. |

---

## Gotchas

| Issue | Resolution |
|---|---|
| Deploy succeeds but TraceSpanEvent not published | Org lacks the `PlatformTracing` permission. This is provisioned, not settable via metadata. |
| `enablePlatformTracing` field not recognized by org/tooling | Tooling is on API version < 68.0. Update `sfdx-project.json` `sourceApiVersion` to `68.0` or higher. |
| User confuses this with Agentforce tracing | Clarify: this publishes TraceSpanEvent for platform operations. For Agentforce agent spans to Data Cloud, use the `platform-tracing-agentforce-configure` skill. |
| User wants to configure all Event Monitoring settings | Only `enablePlatformTracing` is in scope. Other EventSettings fields are owned by other teams and not managed by this skill. |

---

## Output Expectations

Deliverables:
- `settings/Event.settings-meta.xml`

Before delivering, verify:
- [ ] XML namespace is exactly `http://soap.sforce.com/2006/04/metadata`
- [ ] File is named `Event.settings-meta.xml`
- [ ] Only `enablePlatformTracing` is present (no other EventSettings fields)
- [ ] Project `sourceApiVersion` in `sfdx-project.json` is `68.0` or higher

---

## Cross-Skill Integration

| Need | Delegate to |
|---|---|
| Enable Agentforce agent tracing to Data Cloud | `platform-tracing-agentforce-configure` skill |
| Set up Change Data Capture | `integration-eventing-cdc-configure` skill |
| Configure ManagedEventSubscription | `integration-eventing-subscription-configure` skill |

---

## Reference File Index

| File | When to read |
|---|---|
| `assets/EventSettings-template.xml` | Step 2 — template for generating the settings file |

© forcedotcom · Apache-2.0 · forcedotcom/sf-skills

Similar skills

All skills for DevOps and infrastructure →

From the same set185

agentforce-d360-analyze Reconstructs Agentforce sessions from Salesforce Data Cloud audit logs. Useful for tracing conversation turns and diagnosing why an interaction escalated or failed. CX Codex +1 5,300installs platform-tracing-agentforce-configure Writes the AgentforcePlatformTracing.settings-meta.xml settings file that turns forwarding of Agentforce agent trace spans to Data Cloud on or off. CX Codex +1 5,200installs experience-ui-bundle-file-upload-generate Guides file uploads in Salesforce React UI bundle apps. Helps track transfer progress and attach uploads directly to ContentVersion records. CX Codex +1 5,200installs dx-app-analytics-query This skill retrieves managed package usage data through App Analytics and configures simulation mode. Use it when working with subscriber analytics queries. CX Codex +1 5,200installs experience-ui-bundle-custom-app-generate Generates Salesforce CustomApplication metadata to surface React UI bundles in Lightning App Launcher. Useful when exposing bundles without a Digital Experience Site. CX Codex +1 5,200installs experience-ui-bundle-salesforce-data-access Wires Salesforce record reads and writes into uiBundle components through @salesforce/platform-sdk. Useful when a page, table or form has to show real records. CX Codex +1 5,200installs experience-ui-bundle-deploy A skill that walks a UI bundle deploy into a Salesforce org step by step: auth, build, metadata, permissions, self-registration, SSO and codegen. CX Codex +1 5,200installs experience-ui-bundle-app-coordinate Orchestrates building complete React UI bundle applications on Salesforce from scratch. Useful when scaffolding full-stack SPAs across specialized UI bundle skills. CX Codex +1 5,300installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor