Skip to content

Instantly share code, notes, and snippets.

@labbati
Created October 17, 2019 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save labbati/3170aa1e986027a545059683ae69fa33 to your computer and use it in GitHub Desktop.
Save labbati/3170aa1e986027a545059683ae69fa33 to your computer and use it in GitHub Desktop.
PHP without composer
<?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";
// Recommended envs:
// - DD_TRACE_URL_AS_RESOURCE_NAMES_ENABLED=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment