docbrown/datadog/prerun.sh
2020-03-12 15:38:16 -04:00

10 lines
451 B
Bash

#!/usr/bin/env bash
# Disable the Datadog Agent for scheduler workers
if [ "$DYNOTYPE" == "scheduler" ] || [ "$DYNOTYPE" == "run" ]; then
DISABLE_DATADOG_AGENT="true"
# Disable Automatic Beeline integrations to prevent unnecessary
# data from being tracked in Honeycomb
# more info here: https://docs.honeycomb.io/getting-data-in/ruby/beeline/#using-env-variables-to-control-framework-integrations
HONEYCOMB_DISABLE_AUTOCONFIGURE="true"
fi