Skip to content

Commit 71a4153

Browse files
committed
[#231] Support ChildTrace
1 parent 754f5c3 commit 71a4153

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

lib/context/trace/stack-id.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)