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

[dogstatsd] Add statsd_constant_tags kwarg to datadog.initialize() #494

Merged
merged 4 commits into from
Dec 20, 2019

Conversation

kainswor
Copy link
Contributor

Per the documentation here https://docs.datadoghq.com/developers/dogstatsd/?tab=python#client-instantiation-parameters
It seems like you should be able to pass constant tags to the default statsd via the datadog initialize method. This just adds it and merges the list already in the default datadog.dogstatsd.statsd class similar to how the other statsd_* kwargs are handled

Per the documentation here https://docs.datadoghq.com/developers/dogstatsd/?tab=python#client-instantiation-parameters
It seems like you should be able to pass constant tags to the default statsd via the datadog initialize method.
@kainswor kainswor marked this pull request as ready for review December 12, 2019 07:04
@kainswor kainswor requested a review from a team as a code owner December 12, 2019 07:04
Copy link
Contributor

@jirikuncar jirikuncar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kainswor thank you for the improvement. Can you also add the new parameter to the docstring?

everytime I use the github editor it bites me lol
@dabcoder
Copy link
Contributor

/azp run DataDog.datadogpy.integration

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dabcoder dabcoder merged commit c570985 into DataDog:master Dec 20, 2019
@dabcoder
Copy link
Contributor

Thanks for working on this @kainswor

@zippolyte zippolyte changed the title Add statsd_constant_tags kwarg to datadog.initialize() Add statsd_constant_tags kwarg to datadog.initialize() Feb 4, 2020
@zippolyte zippolyte changed the title Add statsd_constant_tags kwarg to datadog.initialize() [dogstatsd] Add statsd_constant_tags kwarg to datadog.initialize() Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/Added Added features results into a minor version bump resource/dogstatsd
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants