Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
jcstorms1 committed Jan 7, 2025
1 parent 0fa9f56 commit f42f253
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 f42f253

Please sign in to comment.