Skip to content

Commit

Permalink
Fix DD_TAGS format issues (#135)
Browse files Browse the repository at this point in the history
Co-authored-by: Sarah Witt <sarah.witt@datadoghq.com>
  • Loading branch information
NouemanKHAL and sarah-witt authored Oct 19, 2022
1 parent b912c40 commit 5b6c279
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/run-datadog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
DATADOG_DIR="${DATADOG_DIR:-/home/vcap/app/.datadog}"
SUPPRESS_DD_AGENT_OUTPUT="${SUPPRESS_DD_AGENT_OUTPUT:-true}"
LOCKFILE="$DATADOG_DIR/lock"
export DD_TAGS=$(LEGACY_TAGS_FORMAT=true python $DATADOG_DIR/scripts/get_tags.py)

start_datadog() {
pushd $DATADOG_DIR
Expand Down Expand Up @@ -41,6 +40,8 @@ start_datadog() {
# the conf file requires them to be comma separated only
# so they must be grabbed separately
datadog_tags=$(python $DATADOG_DIR/scripts/get_tags.py)
unset DD_TAGS

sed -i "s~# tags:.*~tags: $datadog_tags~" $DATADOG_DIR/dist/datadog.yaml
sed -i "s~# dogstatsd_tags:~dogstatsd_tags: $datadog_tags~" $DATADOG_DIR/dist/datadog.yaml
sed -i "s~log_file: TRACE_LOG_FILE~log_file: $DATADOG_DIR/trace.log~" $DATADOG_DIR/dist/datadog.yaml
Expand Down

0 comments on commit 5b6c279

Please sign in to comment.