Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e158e7a

Browse files
committed
metric id fix
1 parent 2083867 commit e158e7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/metric.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Metric {
4646
let self = this;
4747

4848
self.agent = agent;
49-
self.id = agent.utils.generateUuid();
49+
self.id = agent.utils.generateSha1(`${agent.getOption('appName')}${agent.getOption('appEnvironment')}${agent.getOption('hostName')}${typ}${name}${category}${unit}`);
5050
self.typ = typ;
5151
self.category = category;
5252
self.name = name;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stackimpact",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "StackImpact Node.js Agent",
55
"author": "StackImpact <[email protected]>",
66
"keywords": [

0 commit comments

Comments
 (0)