@platformatic/watt-extra 1.3.1 → 1.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/watt-extra",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "The Platformatic runtime manager",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -10,7 +10,7 @@ async function flamegraphs (app, _opts) {
10
10
  const flamegraphsGracePeriod = app.env.PLT_FLAMEGRAPHS_GRACE_PERIOD
11
11
 
12
12
  const durationMillis = parseInt(flamegraphsIntervalSec) * 1000
13
- const eluThreshold = parseInt(flamegraphsELUThreshold)
13
+ const eluThreshold = parseFloat(flamegraphsELUThreshold)
14
14
  const gracePeriod = parseInt(flamegraphsGracePeriod)
15
15
 
16
16
  app.setupFlamegraphs = async () => {
@@ -45,7 +45,8 @@ test('should send alert when service becomes unhealthy', async (t) => {
45
45
  PLT_APP_DIR: applicationPath,
46
46
  PLT_ICC_URL: 'http://127.0.0.1:3000',
47
47
  PLT_DISABLE_FLAMEGRAPHS: false,
48
- PLT_FLAMEGRAPHS_INTERVAL_SEC: 2
48
+ PLT_FLAMEGRAPHS_INTERVAL_SEC: 2,
49
+ PLT_FLAMEGRAPHS_ELU_THRESHOLD: 0
49
50
  })
50
51
 
51
52
  const app = await start()