dd-trace
Version:
Datadog APM tracing client for JavaScript
17 lines (12 loc) • 340 B
JavaScript
const StoragePlugin = require('./storage')
class CachePlugin extends StoragePlugin {
static get operation () { return 'command' }
startSpan (options) {
if (!options.kind) {
options.kind = this.constructor.kind
}
return super.startSpan(this.operationName(), options)
}
}
module.exports = CachePlugin