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.
What does this PR do?
Changes
text
positional arg in threadstats tomessage
Closes: #707
Description of the Change
Since 0.43,
statsd
has renamed a positional argumenttext
tomessage
. When a user is invoking the API of this method withkwargs
for named parameters it no longer can be used to swap seamlessly betweenThreadStats
andDogStatsd
. 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
ThreadStats().event()
andDogStatsd.event()
now both usemessage
instead oftext
as the name of the second positional argumentReview checklist (to be filled by reviewers)
changelog/
label attached. If applicable it should have thebackward-incompatible
label attached.do-not-merge/
label attached.kind/
andseverity/
labels attached at least.