Skip to content

Instantly share code, notes, and snippets.

@Avileox
Created November 26, 2020 18:49
Show Gist options
  • Save Avileox/3ccb4e22bd5b497a32a3a610d8609917 to your computer and use it in GitHub Desktop.
Save Avileox/3ccb4e22bd5b497a32a3a610d8609917 to your computer and use it in GitHub Desktop.
Creat Sentry events using sentry_key
# Create a native event
curl -v -XPOST http://${SENTRY_KEY}@dev.getsentry.net:8000/api/1/store/ \
-H 'Content-Type: application/json' \
-H "X-Sentry-Auth: Sentry sentry_version=7,sentry_timestamp=$(date +"%s"),sentry_client=sentry-curl/1.0,sentry_key=${SENTRY_KEY}" \
-d "$(cat src/sentry/data/samples/native.json)"
# Create a minidump event
curl -v -X POST 'http://dev.getsentry.net:8000/api/1/minidump/?sentry_key=${SENTRY_KEY}' \
-F upload_file_minidump=@tests/fixtures/native/windows.dmp \
-F upload_file_makefile=@Makefile \
-F upload_file_license=@LICENSE
# Create a python event
curl -v -XPOST http://${SENTRY_KEY}@dev.getsentry.net:8000/api/1/store/ \
-H 'Content-Type: application/json' \
-H "X-Sentry-Auth: Sentry sentry_version=7,sentry_timestamp=$(date +"%s"),sentry_client=sentry-curl/1.0,sentry_key=${SENTRY_KEY}" \
-d "$(cat src/sentry/data/samples/python.json)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment