UNPKG

dd-trace

Version:

Datadog APM tracing client for JavaScript

20 lines (15 loc) 388 B
'use strict' class SchemaDefinition { constructor (schema) { this.schema = schema } getOpName (type, kind, plugin, opts) { const item = this.schema[type][kind][plugin] return item.opName(opts) } getServiceName (type, kind, plugin, opts) { const item = this.schema[type][kind][plugin] return item.serviceName(opts) } } module.exports = SchemaDefinition