Skip to content

Commit 29804b8

Browse files
committed
WIP
1 parent 322d7eb commit 29804b8

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

dd-smoke-tests/src/main/java/datadog/smoketest/AbstractSmokeApp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ private void launch() throws IOException {
243243
command.add("-Ddd.version=" + VERSION);
244244
String sessionToken = this.backend.sessionToken();
245245
if (sessionToken != null) {
246-
command.add("-Ddd.trace.agent.test.session.token=" + sessionToken);
246+
command.add("-Ddd.test.agent.session.token=" + sessionToken);
247247
}
248248
if (this.checkTelemetry) {
249249
// Emit telemetry promptly so app-started is captured before a (long-running server) app is

dd-smoke-tests/src/main/java/datadog/smoketest/backend/TestAgentBackend.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
* <p><strong>Per-test isolation (Q4a, Option B).</strong> A shared external agent serves every test
2929
* in a job, so traces are scoped by an {@code X-Datadog-Test-Session-Token}: the backend owns a
3030
* token (see {@link #sessionToken()}), the launched app emits it via {@code
31-
* dd.trace.agent.test.session.token} (S3a tracer change, wired by the S4 app launcher), {@link
32-
* #clear()} opens a fresh session with it, and {@link #traces()} reads only that session's traces.
31+
* dd.test.agent.session.token} (S3a tracer change, wired by the S4 app launcher), {@link #clear()}
32+
* opens a fresh session with it, and {@link #traces()} reads only that session's traces.
3333
*
3434
* <p>Testcontainers is a {@code compileOnly} dependency of the smoke base, so this class only loads
3535
* when a test actually selects a test-agent backend (mock-only tests stay Testcontainers-free).
@@ -84,7 +84,7 @@ static Builder builder() {
8484

8585
/**
8686
* The session token this backend scopes its traces by. The launched app must emit it via {@code
87-
* -Ddd.trace.agent.test.session.token=<token>} so its traces land in this backend's session.
87+
* -Ddd.test.agent.session.token=<token>} so its traces land in this backend's session.
8888
*/
8989
@Override
9090
public String sessionToken() {

dd-smoke-tests/src/main/java/datadog/smoketest/backend/TraceBackend.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ public interface TraceBackend
4343
void close();
4444

4545
/**
46-
* The session token the launched app must emit (via {@code dd.trace.agent.test.session.token})
47-
* for its traces to be attributed to this backend, or {@code null} if the backend does not scope
48-
* by session (e.g. the in-process mock, which owns its own server). Overridden by the test agent.
46+
* The session token the launched app must emit (via {@code dd.test.agent.session.token}) for its
47+
* traces to be attributed to this backend, or {@code null} if the backend does not scope by
48+
* session (e.g. the in-process mock, which owns its own server). Overridden by the test agent.
4949
*/
5050
default String sessionToken() {
5151
return null;

0 commit comments

Comments
 (0)