@instana/core
Version:
Core library for Instana's Node.js packages
20 lines (15 loc) • 378 B
JavaScript
/*
* (c) Copyright IBM Corp. 2026
*/
;
const instanaMappings = require('./instanaInstrumentationMappings');
const otelMappings = require('./otelInstrumentationMappings');
/**
* @param {import('../../../core').InstanaBaseSpan} span
*/
function get(span) {
return otelMappings.isOtelSpan(span) ? otelMappings : instanaMappings;
}
module.exports = {
get
};