From c883a226392a38261c91468fccfa3d760d79fa59 Mon Sep 17 00:00:00 2001 From: Pavel <466069+bitnot@users.noreply.github.com> Date: Mon, 17 Aug 2020 11:14:19 +0200 Subject: [PATCH] Update DogStatsD example in README.md (#591) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add missing import for `initialize` Co-authored-by: Thomas Hervé --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9e66624a6..ab410fd30 100644 --- a/README.md +++ b/README.md @@ -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', @@ -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