16 lines
611 B
Bash
16 lines
611 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Disable the Datadog Agent for scheduler workers
|
|
if [ "$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
|
|
export HONEYCOMB_DISABLE_AUTOCONFIGURE="true"
|
|
export HONEYCOMB_INTEGRATIONS=rails,rake,active_support
|
|
|
|
# Set app version based on HEROKU_SLUG_COMMIT
|
|
if [ -n "$HEROKU_SLUG_COMMIT" ]; then
|
|
DD_VERSION=$HEROKU_SLUG_COMMIT
|
|
fi
|
|
fi
|