pinpoint-node-agent
Version:
Pinpoint node agent provided by NAVER
23 lines (18 loc) • 371 B
JavaScript
/**
* Pinpoint Node.js Agent
* Copyright 2020-present NAVER Corp.
* Apache License v2.0
*/
class TraceRootSpanRecorder {
constructor(traceRoot) {
this.traceRoot = traceRoot
}
canSampled() {
return true
}
isRoot() {
return this.traceRoot.getTraceId().isRoot()
}
}
module.exports = TraceRootSpanRecorder