Skip to content

Commit

Permalink
Merge pull request #110 from DataDog/storms/custom-node-version
Browse files Browse the repository at this point in the history
Add ability to select Node tracer version through App Settings
  • Loading branch information
jcstorms1 authored Jan 7, 2025
2 parents 0fa9f56 + f42f253 commit a68a1b9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions datadog_wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,14 @@ setUpNodeEnv() {

local DD_NODE_TRACER_VERSION_5=5.30.0

if [[ "$NODE_RUNTIME_VERSION" =~ ^v16.* ]]; then
yarn add "dd-trace@$DD_NODE_TRACER_VERSION_4" || return
if [ -z "${DD_NODE_TRACER_VERSION}" ]; then
if [[ "$NODE_RUNTIME_VERSION" =~ ^v16.* ]]; then
yarn add "dd-trace@$DD_NODE_TRACER_VERSION_4" || return
else
yarn add "dd-trace@$DD_NODE_TRACER_VERSION_5" || return
fi
else
yarn add "dd-trace@$DD_NODE_TRACER_VERSION_5" || return
yarn add "dd-trace@$DD_NODE_TRACER_VERSION"
fi

ORIG_NODE_OPTIONS=$NODE_OPTIONS
Expand Down

0 comments on commit a68a1b9

Please sign in to comment.