Skip to content

Commit

Permalink
chore: update api usage (#112)
Browse files Browse the repository at this point in the history
Recent versions of `@datadog/datadog-api-client` have deprecated one of the configuration methods we use, so this updates the minimum required version of that package and switches to the new configuration method. (There are no other breaking changes or differences in Node.js requirements, so this is safe.)
  • Loading branch information
acatalucci-synth authored Sep 28, 2023
1 parent f174ca1 commit 7bbc47c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/reporters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 7bbc47c

Please sign in to comment.