Quickstart: Add Go Agent to AUT
Quickstart: Adding the Go Agent to an Application
This page is meant as a quick reference only. You can find important details for each of these steps at Steps for Instrumenting an Application (AUT) with SeaLights Go Agent
Download the Agent
Go Agent Configuration and BSID Generation
Base Command: ./slgoagent config [options]
Example Configurations:
Example 1: All parameters as CLI flags
./slgoagent config \
--token="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
--app-name="shopping-cart-service" \
--branch="feature-checkout" \
--build="v1.2.3-build-456" \
--lab-id="shoppingcart.dev.qa-blue"
Scan and Instrument the Application Code
Base Command: ./slgoagent scan
This command does not typically need additional parameters passed with it. Use ./slgoagent scan --help
for details.
Run Unit Tests (Optional)
This is the point in the flow at which Unit Tests should be run, using your normal test commands. The Go Agent will automatically track coverage of Unit Tests. Note that this applies *only* to unit tests. Other test stages must be tracked using a SeaLights Agent or by opening a Manual Test Stage with SeaLights.
Last updated
Was this helpful?