Skip to content

Commit cee3170

Browse files
authored
[SDTEST-1174] Add support for Go (#6)
1 parent a76f0a9 commit cee3170

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# <img height="25" src="logos/test_visibility_logo.png" /> Datadog Test Optimization GitLab Script
22

33
Bash script that installs and configures [Datadog Test Optimization](https://docs.datadoghq.com/tests/) for GitLab.
4-
Supported languages are .NET, Java, Javascript, Python, and Ruby.
4+
Supported languages are .NET, Java, Javascript, Python, Ruby and Go.
55

66
## About Datadog Test Optimization
77

@@ -35,6 +35,7 @@ The script takes in the following environment variables:
3535
| JS_TRACER_VERSION | The version of Datadog JS tracer to use. Defaults to the latest release. | false | |
3636
| PYTHON_TRACER_VERSION | The version of Datadog Python tracer to use. Defaults to the latest release. | false | |
3737
| RUBY_TRACER_VERSION | The version of datadog-ci gem to use. Defaults to the latest release. | false | |
38+
| GO_TRACER_VERSION | The version of Orchestrion automatic compile-time instrumentation of Go code (https://github.com/datadog/orchestrion) to use. Defaults to the latest release. | false | |
3839
| JAVA_INSTRUMENTED_BUILD_SYSTEM | If provided, only the specified build systems will be instrumented (allowed values are `gradle`,`maven`,`sbt`,`ant`,`all`). `all` is a special value that instruments every Java process. If this property is not provided, all known build systems will be instrumented (Gradle, Maven, SBT, Ant). | false | |
3940

4041
### Additional configuration

script.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,20 @@ if [ -n "$RUBY_TRACER_VERSION" ]; then
5858
export DD_SET_TRACER_VERSION_RUBY=${RUBY_TRACER_VERSION}
5959
fi
6060

61+
# $GO_TRACER_VERSION or $DD_SET_TRACER_VERSION_GO are optional
62+
if [ -n "$GO_TRACER_VERSION" ]; then
63+
export DD_SET_TRACER_VERSION_GO=${GO_TRACER_VERSION}
64+
fi
65+
6166
# $JAVA_INSTRUMENTED_BUILD_SYSTEM or $DD_INSTRUMENTATION_BUILD_SYSTEM_JAVA are optional
6267
if [ -n "$JAVA_INSTRUMENTED_BUILD_SYSTEM" ]; then
6368
export DD_INSTRUMENTATION_BUILD_SYSTEM_JAVA=${JAVA_INSTRUMENTED_BUILD_SYSTEM}
6469
fi
6570

6671
export DD_CIVISIBILITY_AUTO_INSTRUMENTATION_PROVIDER="gitlab"
6772

68-
installation_script_url="https://install.datadoghq.com/scripts/install_test_visibility_v5.sh"
69-
installation_script_checksum="903f1146fe123a1f7c6accdc48411546eead172f2d577fb41876d29b537eb7d6"
73+
installation_script_url="https://install.datadoghq.com/scripts/install_test_visibility_v6.sh"
74+
installation_script_checksum="23c0bbba82ee72342dd3967c3147d1086debf6482e8fd729e226d051dd152cd4"
7075
script_filepath="install_test_visibility.sh"
7176

7277
if command -v curl >/dev/null 2>&1; then
@@ -109,4 +114,7 @@ fi
109114
if [ ! -z "$DD_TRACER_VERSION_RUBY" ]; then
110115
echo "- __Ruby:__ $DD_TRACER_VERSION_RUBY"
111116
fi
117+
if [ ! -z "$DD_TRACER_VERSION_GO" ]; then
118+
echo "- __Go:__ $DD_TRACER_VERSION_GO"
119+
fi
112120
echo "---"

0 commit comments

Comments
 (0)