@uyu423/pinpoint-node-agent
Version:
Pinpoint node agent provided by NAVER (Personalized version)
24 lines (19 loc) • 490 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 || 0
}
transactionSequence() {
return this.transactionId && this.transactionId.sequence
}
}
module.exports = TraceId