Skip to content

Commit

Permalink
Update DogStatsD example in README.md (#591)
Browse files Browse the repository at this point in the history
Add missing import for `initialize`

Co-authored-by: Thomas Hervé <[email protected]>
  • Loading branch information
bitnot and therve authored Aug 17, 2020
1 parent 8009641 commit c883a22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ In order to use DogStatsD metrics, the Agent must be [running and available](htt
Once the Datadog Python Library is installed, instantiate the StatsD client using UDP in your code:

```python
from datadog import statsd
from datadog import initialize, statsd

options = {
'statsd_host':'127.0.0.1',
Expand All @@ -97,7 +97,7 @@ See the full list of available [DogStatsD client instantiation parameters](https
Once the Datadog Python Library is installed, instantiate the StatsD client using UDS in your code:
```python

from datadog import statsd
from datadog import initialize, statsd

options = {
'statsd_socket_path' : PATH_TO_SOCKET
Expand Down

0 comments on commit c883a22

Please sign in to comment.