@allthings/cloud-toolkit 1.3.0-dev.1 → 1.3.0-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib.cjs.js CHANGED
@@ -170,10 +170,10 @@ const logger = (config) => {
170
170
  format: 'DD-MM-YYYY HH:mm:ss',
171
171
  }), winston.format.json()),
172
172
  };
173
- if (config.datadogApiKey && config.host) {
173
+ if (config.datadogApiKey) {
174
174
  const httpOptions = {
175
- headers: { 'DD-API-KEY': config.datadogApiKey },
176
- host: config.host,
175
+ host: 'http-intake.logs.datadoghq.eu',
176
+ path: `/api/v2/logs?dd-api-key=${config.datadogApiKey}&ddsource=nodejs&service=${config.service}`,
177
177
  port: 443,
178
178
  ssl: true,
179
179
  };
package/dist/lib.esm.js CHANGED
@@ -149,10 +149,10 @@ const logger = (config) => {
149
149
  format: 'DD-MM-YYYY HH:mm:ss',
150
150
  }), format.json()),
151
151
  };
152
- if (config.datadogApiKey && config.host) {
152
+ if (config.datadogApiKey) {
153
153
  const httpOptions = {
154
- headers: { 'DD-API-KEY': config.datadogApiKey },
155
- host: config.host,
154
+ host: 'http-intake.logs.datadoghq.eu',
155
+ path: `/api/v2/logs?dd-api-key=${config.datadogApiKey}&ddsource=nodejs&service=${config.service}`,
156
156
  port: 443,
157
157
  ssl: true,
158
158
  };