diff --git a/README.md b/README.md index 7084a6b..923cfc3 100644 --- a/README.md +++ b/README.md @@ -300,8 +300,14 @@ npm test * (In Development) + **New Features:** + * Nothing yet! + **Fixes & Maintenance:** + + * Resolve a deprecation warning from the underlying datadog-api-client library. This also updates the minimum required version of that library. (Thanks to @acatalucci-synth & @fcsonline in #112.) + [View diff](https://github.com/dbader/node-datadog-metrics/compare/v0.10.2...main) * 0.11.0 (2022-02-21) diff --git a/lib/reporters.js b/lib/reporters.js index 9dc3590..330d513 100644 --- a/lib/reporters.js +++ b/lib/reporters.js @@ -47,7 +47,7 @@ class DatadogReporter { // URL from their web browser. More details on correct configuration: // https://docs.datadoghq.com/getting_started/site/#access-the-datadog-site this.site = this.site.replace(/^app\./i, ''); - datadogApiClient.client.setServerVariables(configuration, { + configuration.setServerVariables({ site: this.site }); } diff --git a/package.json b/package.json index 1e9ac83..ab7c4b8 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "typescript": "^4.8.4" }, "dependencies": { - "@datadog/datadog-api-client": "^1.3.0", + "@datadog/datadog-api-client": "^1.16.0", "debug": "^4.1.0" }, "engines": {