@forge/metrics 0.2.8-next.0 → 0.2.8-next.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/CHANGELOG.md +14 -0
- package/out/internal/data-types.js +10 -2
- package/out/internal/metrics.js +1 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @forge/metrics
|
|
2
2
|
|
|
3
|
+
## 0.2.8-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [94956a5]
|
|
8
|
+
- @forge/api@3.5.0-next.1
|
|
9
|
+
|
|
10
|
+
## 0.2.8-next.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [eb06eca]
|
|
15
|
+
- @forge/runtime@5.6.1-next.1
|
|
16
|
+
|
|
3
17
|
## 0.2.8-next.0
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -14,6 +14,8 @@ class TimerDeadError extends Error {
|
|
|
14
14
|
}
|
|
15
15
|
exports.TimerDeadError = TimerDeadError;
|
|
16
16
|
class ExperimentalCounter {
|
|
17
|
+
runtimeMetrics;
|
|
18
|
+
name;
|
|
17
19
|
constructor(runtimeMetrics, name) {
|
|
18
20
|
this.runtimeMetrics = runtimeMetrics;
|
|
19
21
|
this.name = name;
|
|
@@ -33,6 +35,8 @@ class ExperimentalCounter {
|
|
|
33
35
|
}
|
|
34
36
|
exports.ExperimentalCounter = ExperimentalCounter;
|
|
35
37
|
class ExperimentalGauge {
|
|
38
|
+
runtimeMetrics;
|
|
39
|
+
name;
|
|
36
40
|
constructor(runtimeMetrics, name) {
|
|
37
41
|
this.runtimeMetrics = runtimeMetrics;
|
|
38
42
|
this.name = name;
|
|
@@ -43,11 +47,13 @@ class ExperimentalGauge {
|
|
|
43
47
|
}
|
|
44
48
|
exports.ExperimentalGauge = ExperimentalGauge;
|
|
45
49
|
class ExperimentalTimerStop {
|
|
50
|
+
runtimeMetrics;
|
|
51
|
+
timerName;
|
|
52
|
+
timerId = null;
|
|
53
|
+
isAlive = false;
|
|
46
54
|
constructor(runtimeMetrics, timerName) {
|
|
47
55
|
this.runtimeMetrics = runtimeMetrics;
|
|
48
56
|
this.timerName = timerName;
|
|
49
|
-
this.timerId = null;
|
|
50
|
-
this.isAlive = false;
|
|
51
57
|
this.timerId = this.runtimeMetrics.invokeTimer('start', null, this.timerName);
|
|
52
58
|
this.isAlive = true;
|
|
53
59
|
}
|
|
@@ -64,6 +70,8 @@ class ExperimentalTimerStop {
|
|
|
64
70
|
}
|
|
65
71
|
exports.ExperimentalTimerStop = ExperimentalTimerStop;
|
|
66
72
|
class ExperimentalTimer {
|
|
73
|
+
runtimeMetrics;
|
|
74
|
+
name;
|
|
67
75
|
constructor(runtimeMetrics, name) {
|
|
68
76
|
this.runtimeMetrics = runtimeMetrics;
|
|
69
77
|
this.name = name;
|
package/out/internal/metrics.js
CHANGED
|
@@ -4,8 +4,7 @@ exports.internalMetrics = void 0;
|
|
|
4
4
|
const api_1 = require("@forge/api");
|
|
5
5
|
const data_types_1 = require("./data-types");
|
|
6
6
|
function getRuntimeMetrics() {
|
|
7
|
-
|
|
8
|
-
return (_a = global.api) === null || _a === void 0 ? void 0 : _a.internalMetrics;
|
|
7
|
+
return global.api?.internalMetrics;
|
|
9
8
|
}
|
|
10
9
|
class ExperimentalMetrics {
|
|
11
10
|
internalMetricName(name) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/metrics",
|
|
3
|
-
"version": "0.2.8-next.
|
|
3
|
+
"version": "0.2.8-next.2",
|
|
4
4
|
"description": "Forge internal metrics",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"compile": "tsc -b -v"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@forge/api": "3.
|
|
16
|
-
"@forge/runtime": "5.6.1-next.
|
|
15
|
+
"@forge/api": "3.5.0-next.1",
|
|
16
|
+
"@forge/runtime": "5.6.1-next.1",
|
|
17
17
|
"@forge/util": "1.4.3-next.0"
|
|
18
18
|
}
|
|
19
19
|
}
|