pinpoint-node-agent
Version:
Pinpoint node agent provided by NAVER
24 lines (19 loc) • 485 B
JavaScript
/**
* Pinpoint Node.js Agent
* Copyright 2020-present NAVER Corp.
* Apache License v2.0
*/
class TraceId {
constructor (transactionId, spanId, parentSpanId, flag) {
// transactionId + spanId + parentSpanId
this.transactionId = transactionId
this.spanId = spanId
this.parentSpanId = parentSpanId || "-1"
this.flag = flag
}
transactionSequence() {
return this.transactionId && this.transactionId.sequence
}
}
module.exports = TraceId