SSI means Single Step Instrumentation. It installs and injects a Datadog tracer without changes to the application code.
This page covers all local SSI test suites in system-tests.
| Test suite | Use it to test | Runs on | Validation |
|---|---|---|---|
| Docker SSI | Tracer versions, guardrails, service naming, and other fast checks | Local Docker | APM Test Agent |
| AWS SSI | Host and container injection on real virtual machines | AWS EC2 | Datadog backend |
| K8s library injection | Kubernetes injection components | Local Kind or Minikube | APM Test Agent (Datadog backend for Operator) |
| K8s injector-dev | Changes to the injector-dev tool |
Local Colima and Minikube | APM Test Agent |
If you are new to SSI, start with Docker SSI. It has the fewest access requirements.
Use K8s library injection for normal Kubernetes injection tests. Use K8s
injector-dev only when your change depends on the injector-dev tool.
Read the SSI glossary before your first run. It defines scenario, weblog, provision, injector, lib-init, and the other terms used in these guides.
AWS SSI is also called onboarding, auto-injection, or auto-instrumentation in this repository.
You need Bash, Git, Docker 20.10 or later, and Python 3.12.
Read the SSI access and prerequisites guide. It covers AWS profiles, private network access, ECR, Pulumi, Kubernetes tools, and Datadog keys.
Run every command from the root of the system-tests repository.
Docker SSI is the fastest SSI test suite. Most test cases use public images.
Run the wizard:
./utils/scripts/ssi_wizards/docker_ssi_wizard.shThe wizard selects a language, scenario, weblog, base image, architecture, and
runtime. It prints the final ./run.sh command before it starts.
The websphere-app and jboss-app weblogs need private ECR access. The wizard
can perform that login.
See the Docker SSI reference for the manual command and development details.
AWS SSI creates an EC2 instance and installs SSI on it. It sends telemetry to the system-tests Datadog organization.
Complete the AWS access steps and the network access steps. Connect to the Datadog private network before you start.
Run the wizard:
./utils/scripts/ssi_wizards/aws_onboarding_wizard.shThe wizard checks Pulumi and AWS access. It also configures the local .env
file. You then select a language, scenario, weblog, virtual machine, and
released or development components.
The wizard shuts down the EC2 instance after the run. If you keep the instance
for debugging, follow its pulumi destroy reminder.
See the AWS SSI reference for manual execution, logs, and troubleshooting.
This suite tests the normal Kubernetes library injection flow. It uses the Datadog Admission Controller or pod annotations.
Complete the AWS access steps and the ECR steps.
If you select K8S_LIB_INJECTION_OPERATOR, also complete the
Datadog key steps. This scenario uses
the real Datadog Agent and backend. Other K8s injection scenarios use the APM
Test Agent.
Run the wizard:
./utils/scripts/ssi_wizards/k8s_ssi_wizard.shThe wizard installs the system-tests runner. It can also install Kind, Minikube, and Helm. It does not install kubectl. You then select the scenario, weblog, and component versions.
See the K8s library injection reference for manual execution, component versions, logs, and debugging.
This suite tests the injector-dev binary. It is not the default K8s SSI test
suite.
Complete the injector-dev steps in the access guide.
Run the wizard:
./utils/scripts/ssi_wizards/k8s_injector_dev_wizard.shThe wizard checks the binary and the local Kubernetes tools. It then configures a private registry and selects the test components.
See the K8s injector-dev reference for manual execution and all command options.
The terminal shows the pytest result. A successful run ends with exit code zero.
Each scenario writes its files to a folder such as logs_docker_ssi. The
folder name uses the scenario name in lowercase. Use these pages:
If you are still blocked, ask in #apm-shared-testing.