DataDog / datadogpy

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

Fix stale client_transport tag #802

Closed vickenty closed 10 months ago

vickenty commented 10 months ago

What does this PR do?

This patch makes the client_transport tag dynamic and updates it every time the socket_path property is updated.

Description of the Change

datadog.initialize reassigns socket_path property on the global statsd instance, but the client_transport tag was computed in the constructor and never updated, causing client to misreport transport as udp when a unix socket was actually used.

Alternate Designs

Possible Drawbacks

Verification Process

Additional Notes

Release Notes

Review checklist (to be filled by reviewers)