Skip to content

Commit

Permalink
[SVLS-4918] make the DD_NODE_TRACER_VERSION_* variables local since w…
Browse files Browse the repository at this point in the history
…e do not actually need to expose them
  • Loading branch information
apiarian-datadog committed Jul 15, 2024
1 parent cc5471a commit 6a22fdd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions datadog_wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,8 @@ setUpNodeEnv() {
echo "Setting up Datadog tracing for Node"
echo "Installing Node tracer"

if [ -z "${DD_NODE_TRACER_VERSION_4}" ]; then
DD_NODE_TRACER_VERSION_4=4.38.1
fi
if [ -z "${DD_NODE_TRACER_VERSION_5}" ]; then
DD_NODE_TRACER_VERSION_5=5.18.0
fi
local DD_NODE_TRACER_VERSION_4=4.38.1
local DD_NODE_TRACER_VERSION_5=5.18.0

if [[ "$NODE_RUNTIME_VERSION" =~ ^v16.* ]]; then
yarn add "dd-trace@$DD_NODE_TRACER_VERSION_4" || return
Expand Down

0 comments on commit 6a22fdd

Please sign in to comment.