Skip to content

Commit

Permalink
Merge pull request #43 from DataDog/aleksandr.pasechnik/svls-4918-pin…
Browse files Browse the repository at this point in the history
…-node-version

[SVLS-4918] pin the dd-trace versions for node to the currently available ones
  • Loading branch information
apiarian-datadog authored Jul 16, 2024
2 parents 16faa0d + 6a22fdd commit 1a197dd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions datadog_wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,13 @@ setUpNodeEnv() {
echo "Setting up Datadog tracing for Node"
echo "Installing Node tracer"

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@4.38.1" || return
yarn add "dd-trace@$DD_NODE_TRACER_VERSION_4" || return
else
yarn add dd-trace || return
yarn add "dd-trace@$DD_NODE_TRACER_VERSION_5" || return
fi

ORIG_NODE_OPTIONS=$NODE_OPTIONS
Expand Down

0 comments on commit 1a197dd

Please sign in to comment.