Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add missing decrement method to NoopDogStatsDClient #5241

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

booleangate
Copy link

@booleangate booleangate commented Feb 10, 2025

What does this PR do?

Adds the missing decrement method to the NoopDogStatsDClient class.

Motivation

The NoopDogStatsDClient gets used in unit tests in consumers of this package. However, it is missing the decrement method which causes those tests to fail because trying to call this method will throw an exception.

Additional notes

I also manually tested that this works by applying the same change to the version of this package used by my project and confirmed that tests calling tracer.dogstatsd.decrement no longer threw exceptions.

The `NoopDogStatsDClient` gets used by default in unit tests.  However, it
is missing the `decrement` method which causes tests to throw exceptions
when trying to call it.
@booleangate booleangate marked this pull request as ready for review February 10, 2025 23:19
@booleangate booleangate requested a review from a team as a code owner February 10, 2025 23:19
@booleangate booleangate marked this pull request as draft February 10, 2025 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant