This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datadog import initialize, statsd | |
import datetime | |
import time | |
import random | |
ENV = "demo" | |
SERVICE = "inventory-api" | |
# Was not able to get it to work from MAC to containerized agent | |
initialize(statsd_host='agent', statsd_port=8125) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REQUEST_URI=/ \ | |
SCRIPT_FILENAME=/var/www/html/public/index.php \ | |
REQUEST_METHOD=GET \ | |
cgi-fcgi -bind -connect 127.0.0.1:9000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
read -r -d '' TIMING_COMMAND <<- EOM | |
------------------------------- | |
time_namelookup: %{time_namelookup}s | |
time_connect: %{time_connect}s | |
time_appconnect: %{time_appconnect}s | |
time_pretransfer: %{time_pretransfer}s | |
time_redirect: %{time_redirect}s | |
time_starttransfer: %{time_starttransfer}s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Manually enable manual instrumentation | |
if (file_exists($hook = ini_get('ddtrace.request_init_hook'))) { | |
include dirname($hook) . '/dd_init.php'; | |
} | |
// Your code here | |
echo "Hi!\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
rm -rf extensions | |
mkdir -p extensions | |
rm -rf build/packages | |
mkdir -p build/packages | |
function build_version() { | |
PHP_VERSION=$1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DD_TRACE_DEBUG=true DD_AGENT_HOST=agent php -d error_log=/dev/stderr -d 'ddtrace.request_init_hook=/home/circleci/app/bridge/dd_wrap_autoloader.php' -S 0.0.0.0:6789 app_dev.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
git fetch -p && git branch -vv | grep ": gone]" |