MCPcopy Index your code
hub / github.com/RisingStack/trace-nodejs / createNode

Function createNode

lib/agent/tracer/cache.js:151–160  ·  view source on GitHub ↗
(severity, data, children, parent, locks, timestamp)

Source from the content-addressed store, hash-verified

149}
150
151function createNode (severity, data, children, parent, locks, timestamp) {
152 return {
153 s: severity, // severity
154 d: data, // data
155 c: children, // map of child id -> child node
156 p: parent, // parent node
157 l: locks, // lock count
158 t: timestamp // timestamp of creation
159 }
160}

Callers 2

CacheFunction · 0.85
cache.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected