@instana/aws-fargate
Version:
Instana tracing and monitoring for Node.js based AWS Fargate tasks
25 lines (17 loc) • 631 B
JavaScript
/*
* (c) Copyright IBM Corp. 2021
* (c) Copyright Instana Inc. and contributors 2019
*/
;
// We need to require core to provide noop implementations for currentSpan, sdk etc. but neither tracing nor metric
// collection will be activated. (Neither core.init nor core.preInit are called.)
const instanaCore = require('@instana/core');
const { tracing } = instanaCore;
exports.currentSpan = function getHandleForCurrentSpan() {
return tracing.getHandleForCurrentSpan();
};
exports.sdk = tracing.sdk;
exports.setLogger = function setLogger() {
// We do nothing.
};
exports.opentracing = tracing.opentracing;