-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
) This reverts commit 09cdabf. Wasn't roll forwardable anyways since `make instlal-py-dev` goes through do.sh, which I plan on removing. Functionality will be preserved as part of getsentry/devenv#124 where span durations would work.
- Loading branch information
Showing
4 changed files
with
2 additions
and
28 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,15 +13,4 @@ source "${HERE}/lib.sh" | |
# a venv can avoid enabling this by setting SENTRY_NO_VENV_CHECK | ||
[ -z "${SENTRY_NO_VENV_CHECK+x}" ] && eval "${HERE}/ensure-venv.sh" | ||
# If you call this script | ||
start=`date +%s` | ||
"$@" | ||
end=`date +%s` | ||
duration=$(($end-$start)) | ||
|
||
# If we're not in CI, send a metric of the script's execution time | ||
if [ -z "${CI+x}" ]; then | ||
configure-sentry-cli | ||
# DSN for `sentry-devservices` project in the Sentry SDKs org. Used as authentication for sentry-cli. | ||
export SENTRY_DSN=https://[email protected]/4507346183716864 | ||
"${venv_name}"/bin/sentry-cli send-metric distribution -n script_execution_time -v $duration -u second -t script:$1 | ||
fi |
This file contains 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