We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 754f5c3 commit 71a4153Copy full SHA for 71a4153
lib/context/trace/stack-id.js
@@ -0,0 +1,35 @@
1
+/**
2
+ * Pinpoint Node.js Agent
3
+ * Copyright 2020-present NAVER Corp.
4
+ * Apache License v2.0
5
+ */
6
+
7
+'use strict'
8
9
+class StackId {
10
+ /**
11
+ * A constant representing the ID for a null object stack.
12
+ * This is used to signify that the stack ID is invalid or not set.
13
+ * Only for Node.js Agent internal use.
14
+ *
15
+ * @constant {number} -2
16
17
+ static nullObject = -2
18
19
20
+ * The default stack ID used in the span event builder.
21
+ * This value is set to -1 by default.
22
23
+ * @constant {number} -1
24
25
+ static default = -1
26
27
28
+ * The root stack identifier.
29
30
+ * @constant {number} 0
31
32
+ static root = 0
33
+}
34
35
+module.exports = StackId
0 commit comments