UNPKG

pinpoint-node-agent

Version:
69 lines (49 loc) 820 B
/** * Pinpoint Node.js Agent * Copyright 2020-present NAVER Corp. * Apache License v2.0 */ 'use strict' const disableAsyncId = require('./trace/disable-async-id') class DisableSpanEventRecorder { constructor() { this.nextAsyncId = null this.ended = false this.error = null } recordStartTime() { } recordServiceType() { } recordDestinationId() { } recordEndPoint() { } recordNextSpanId() { } recordNextAsyncId() { } recordApiId() { } recordApi() { } recordApiWithParameters() { } recordApiDesc() { } recordApiArguments() { } recordAttribute() { } recordException() { } recordSqlInfo() { } recordEnd() { this.ended = true } getNextAsyncId() { return disableAsyncId } } module.exports = DisableSpanEventRecorder