Skip to content

Commit

Permalink
Revert "Implement automatic Test Visibility instrumentation for .NET …
Browse files Browse the repository at this point in the history
…projects (#400)"

This reverts commit 9a8da57.
  • Loading branch information
nikita-tkachenko-datadog committed May 3, 2024
1 parent 6510a90 commit 19d2b6d
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 45 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ pipeline {
datadog(testVisibility: [
enabled: true,
serviceName: "my-service", // the name of service or library being tested
languages: ["JAVA"], // languages that should be instrumented (available options are "JAVA", "JAVASCRIPT", "PYTHON", "DOTNET")
languages: ["JAVA"], // languages that should be instrumented (available options are "JAVA", "JAVASCRIPT", "PYTHON")
additionalVariables: ["my-var": "value"] // additional tracer configuration settings (optional)
])
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public class DatadogTracerConfigurator {

public DatadogTracerConfigurator() {
configurators = new EnumMap<>(TracerLanguage.class);
configurators.put(TracerLanguage.DOTNET, new DotnetConfigurator());
configurators.put(TracerLanguage.JAVA, new JavaConfigurator());
configurators.put(TracerLanguage.JAVASCRIPT, new JavascriptConfigurator());
configurators.put(TracerLanguage.PYTHON, new PythonConfigurator());
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public Map<String, String> configure(DatadogTracerJobProperty<?> tracerConfig, N

Map<String, String> variables = new HashMap<>();
variables.put("DD_TRACE_PATH", tracerPath.toString());
variables.put("NODE_OPTIONS", PropertyUtils.prepend(envs, "NODE_OPTIONS", String.format("-r %s/ci/init", tracerPath)));
variables.put("NODE_OPTIONS", PropertyUtils.prepend(envs, "NODE_OPTIONS", "-r $DD_TRACE_PATH/ci/init"));
return variables;
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.datadog.jenkins.plugins.datadog.apm;

public enum TracerLanguage {
DOTNET(".NET"),
JAVA("Java"),
JAVASCRIPT("JS"),
PYTHON("Python");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,4 @@
If these variables are overridden inside the job (with their existing value being discarded rather than preserved),
the injection will not happen.
</p>

<strong>.NET</strong>
<p>
The plugin assumes that <code>dotnet</code> and <code>dotnet tool</code> are available on the node that executes the job.
</p>
</div>

0 comments on commit 19d2b6d

Please sign in to comment.