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