@uyu423/pinpoint-node-agent
Version:
Pinpoint node agent provided by NAVER (Personalized version)
23 lines (17 loc) • 412 B
JavaScript
/**
* Pinpoint Node.js Agent
* Copyright 2020-present NAVER Corp.
* Apache License v2.0
*/
const SequenceGenerator = require('./sequence-generator').SequenceGenerator
class AsyncId {
constructor(asyncId) {
this.asyncId = asyncId
this.sequenceGenerator = new SequenceGenerator()
}
get nextAsyncSequence() {
return this.sequenceGenerator.next
}
}
module.exports = AsyncId