sentry-cli icon indicating copy to clipboard operation
sentry-cli copied to clipboard

Allow configuring sample rate.

Open Icantjuddle opened this issue 2 years ago • 8 comments

I'm using sentry-cli to try to upload errors found in valgrind to the same place where we capture other errors from the same program in other contexts. I convert the valgrind output to json events which I then try to upload, but it seems most of them are getting dropped. I assume this is because the sample rate is less than 1 since debug logs don't show network issues.

Icantjuddle avatar Sep 11 '23 20:09 Icantjuddle

Hi, thank you for the report. I'll get back to you as soon as possible.

loewenheim avatar Sep 13 '23 10:09 loewenheim

After more investigation I'm not sure if it is a sample rate issue or a rate limiting issue. Switching to the following fixed my issue but is not ideal since it doesn't really go as fast as it could and might still run into issues with rate limiting:

for i in $(seq 1 $N_ISSUES); do
  curl \
    -d "@path/to/issues/${i}.json" \
    -H 'Content-Type: application/json' \
    -H "X-Sentry-Auth: Sentry sentry_version=7, sentry_key=<key>, sentry_secret=<secret>, sentry_client=sentry-bash/1.0" \
    'https://sentry.io/api/<project id>/store/'
  sleep 0.1
done

Though I don't seem to be able to get the rate limiting headers described here in the response to figure out what the actual sleep number should be?

Icantjuddle avatar Sep 13 '23 15:09 Icantjuddle

@loewenheim any thoughts here?

Icantjuddle avatar Oct 03 '23 15:10 Icantjuddle

Sorry this took so long. Can you look at your organization stats in Sentry and see how many events get dropped?

loewenheim avatar Oct 03 '23 16:10 loewenheim

It is hard to tell since this is an experimental new source of events I am working on. I don't see how that would relate to rate limiting headers not getting sent.

Icantjuddle avatar Oct 12 '23 18:10 Icantjuddle

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

github-actions[bot] avatar Nov 03 '23 00:11 github-actions[bot]

@loewenheim any thoughts?

Icantjuddle avatar Nov 06 '23 20:11 Icantjuddle

Sorry, I've been very busy. Trying to find out what's up with these headers.

loewenheim avatar Nov 08 '23 11:11 loewenheim