@emartech/aggregate-metric-logger 6.7.5 → 6.7.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emartech/aggregate-metric-logger",
3
- "version": "6.7.5",
3
+ "version": "6.7.6",
4
4
  "description": "aggregate metrics in memory for logging",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -18,8 +18,8 @@ class GcpTimeSeriesPublisher {
18
18
 
19
19
  async publishTimeSeries(timeSeries) {
20
20
  try {
21
- const timeSeriesChunks = chunk(timeSeries, MAX_TIME_SERIES_COUNT);
22
21
  const client = this.getMonitoringClient();
22
+ const timeSeriesChunks = chunk(timeSeries, MAX_TIME_SERIES_COUNT);
23
23
  for (const timeSeriesChunk of timeSeriesChunks) {
24
24
  await this.createTimeSeries(client, timeSeriesChunk);
25
25
  }