Skip to content

Add sampleRate config option #885

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Mar 15, 2017
Merged

Add sampleRate config option #885

merged 2 commits into from
Mar 15, 2017

Conversation

LewisJEllis
Copy link
Contributor

@LewisJEllis LewisJEllis commented Mar 10, 2017

Not sure if we're worried about testing this; we didn't in getsentry/raven-python#978.

I'm also not sure if we want to wait until after dataCallback, shouldSendCallback, etc before applying the sample factor, or apply it before we get to them; I followed the python implementation's lead here and applied it after.

I also simplified the docs wording a bit relative to raven-python. We might want to clarify somehow the difference between setting sample rate to 0 and just disabling raven?

/cc @dcramer @benvinegar

@LewisJEllis LewisJEllis requested a review from benvinegar March 10, 2017 03:21
@LewisJEllis
Copy link
Contributor Author

Not immediately sure why this is failing, will look more tomorrow.

Copy link
Contributor

@benvinegar benvinegar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine, but we're better than raven-python, so let's include a test.

@dcramer
Copy link
Member

dcramer commented Mar 13, 2017

@benvinegar
2ba26474677657afa2fd1e228c655dfa

@benvinegar
Copy link
Contributor

benvinegar commented Mar 13, 2017

🍀🥊

@LewisJEllis
Copy link
Contributor Author

@benvinegar figured out/fixed why it was failing & added tests.

Copy link
Contributor

@benvinegar benvinegar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👊🐍

@benvinegar benvinegar merged commit 9805b06 into master Mar 15, 2017
@benvinegar benvinegar deleted the sample-rate branch March 15, 2017 17:30
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants