DataDog / datadogpy

The Datadog Python library
https://datadoghq.com/
Other
609 stars 303 forks source link

Allow disabling statsd export via constructor arg #778

Open tuukkamustonen opened 1 year ago

tuukkamustonen commented 1 year ago

Is your feature request related to a problem? Please describe.

During development (and sometimes in production) we want to disable the statsd metrics export. The docs state:

In development, you can disable any statsd metric collection using DD_DOGSTATSD_DISABLE=True (or any not-empty value).

Two problems:

Describe the solution you'd like

Describe alternatives you've considered

Could use a dummy statsd client that implements the DogStatsd API. But I'd rather just disable the export, so the logic gets covered.

Or, it might would be useful if the client did log/console output, instead of completely disabling the export.

Additional context

n/a

github-actions[bot] commented 1 year ago

Thanks for your contribution!

This issue has been automatically marked as stale because it has not had activity in the last 30 days. Note that the issue will not be automatically closed, but this notification will remind us to investigate why there's been inactivity. Thank you for participating in the Datadog open source community.

If you would like this issue to remain open:

  1. Verify that you can still reproduce the issue in the latest version of this project.

  2. Comment that the issue is still reproducible and include updated details requested in the issue template.