Documentation
¶
Overview ¶
Agent simulation test - wake a running Go app and observe it.
This script simulates what an AI agent typically does with Detrix:
- Starts a target application (detrix_example_app)
- Waits for it to initialize
- Wakes the Detrix client in the app via control plane
- Sets metrics on the running process via daemon API
- Receives and displays captured events
Usage:
Make sure the Detrix daemon is running: $ detrix serve --daemon
Build the fixture app (from fixtures/go directory): $ go build -gcflags="all=-N -l" -o detrix_example_app .
Run this test (from clients/go directory): $ go run ./examples/test_wake
Or with custom daemon port: $ go run ./examples/test_wake --daemon-port 9999
Click to show internal directories.
Click to hide internal directories.