pinpoint-node-agent
Version:
Pinpoint node agent provided by NAVER
41 lines (31 loc) • 730 B
JavaScript
/**
* Pinpoint Node.js Agent
* Copyright 2020-present NAVER Corp.
* Apache License v2.0
*/
const DisableSpanEventRecorder = require('../disable-span-event-recorder')
const DisableSpanRecorder = require('../disable-span-recorder')
class DisableChildTrace {
constructor(traceRoot) {
this.traceRoot = traceRoot
this.spanRecorder = new DisableSpanRecorder()
this.spanEventRecorder = new DisableSpanEventRecorder()
}
traceBlockBegin() {
return this.spanEventRecorder
}
traceBlockEnd() {}
getSpanRecorder() {
return this.spanRecorder
}
getTraceRoot() {
return this.traceRoot
}
canSampled() {
return false
}
close() {
}
}
module.exports = DisableChildTrace