UNPKG

dd-trace

Version:

Datadog APM tracing client for JavaScript

17 lines (12 loc) 334 B
'use strict' const StoragePlugin = require('./storage') class CachePlugin extends StoragePlugin { static operation = 'command' startSpan (options, ctx) { if (!options.kind) { options.kind = this.constructor.kind } return super.startSpan(this.operationName(), options, ctx) } } module.exports = CachePlugin