pinpoint-node-agent
Version:
Pinpoint APM agent for Node.js — distributed tracing, error analysis, and URI statistics
24 lines (19 loc) • 565 B
JavaScript
/**
* Pinpoint Node.js Agent
* Copyright 2020-present NAVER Corp.
* Apache License v2.0
*/
const TraceRoot = require('./trace/trace-root')
class TraceRootBuilder {
constructor(agentId, localTransactionId) {
this.agentId = agentId
this.localTransactionId = localTransactionId
this.traceStartTime = Date.now()
}
// DefaultTraceRootFactory.java: newDisableTraceRoot
build() {
return new TraceRoot(this.agentId, this.traceStartTime, this.localTransactionId)
}
}
module.exports = TraceRootBuilder