DataDog / datadogpy

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

[threadstats] Ensure `ThreadStats` and `DogStatsd` `event()` signatures match #712

Closed sgnn7 closed 2 years ago

sgnn7 commented 2 years ago

What does this PR do?

Changes text positional arg in threadstats to message

Closes: #707

Description of the Change

Since 0.43, statsd has renamed a positional argument text to message. When a user is invoking the API of this method with kwargs for named parameters it no longer can be used to swap seamlessly between ThreadStats and DogStatsd. This change ensures that both positional args have the same names.

For more info: https://github.com/DataDog/datadogpy/issues/707#issuecomment-1028148626

Alternate Designs

Possible Drawbacks

Potentially a breaking change for users of ThreadStats if they use event() with named positional args. Release notes are updated to make that clear.

Verification Process

CI/CD tests

Additional Notes

Release Notes

Review checklist (to be filled by reviewers)

sgnn7 commented 2 years ago

/azp run

azure-pipelines[bot] commented 2 years ago
Azure Pipelines successfully started running 2 pipeline(s).
sgnn7 commented 2 years ago

/azp run

azure-pipelines[bot] commented 2 years ago
Azure Pipelines successfully started running 2 pipeline(s).
sgnn7 commented 2 years ago

/azp run

azure-pipelines[bot] commented 2 years ago
Azure Pipelines successfully started running 2 pipeline(s).