Updating your ECS task to support Subtrace
-
Open ECS → Task definitions, go to your task and click Create new revision with JSON.

-
In the JSON editor, add the
SYS_PTRACELinux capability to your containerlinuxParametersfield:TheSYS_PTRACEcapability is required because it’s what allows Subtrace to automatically monitor network activity without any code changes or root privileges. The ECS UI does not expose this field, hence the JSON-based update to the task definition. Set the API token that you created in the Subtrace dashboard as an environment variable:As an example, here’s what the task JSON should look like:
- Click Create to create a new task revision.
Deploying a new revision of your service
-
Back in Clusters → Services →
my-app-service, click on Update service.
-
In the dropdown, select the revision you just created (or leave blank for “latest”).

- Click Update at the bottom. ECS will spin up a new task with the new definition; when it’s healthy, the old one will be stopped.
- Go to the Subtrace UI and see a realtime stream of all network activity in your service.