traceapm
Version:
SDK for OpenTelemetry auto-instrumentation and OTLP export for Node.js apps.
13 lines (11 loc) • 362 B
JavaScript
const securityAgent = require('@newrelic/security-agent');
const logger = require('../utils/logger');
function startSecurityAgent() {
try {
securityAgent.start();
logger.info('[traceapm] Security agent started');
} catch (e) {
logger.warn('[traceapm] Security agent failed to start:', e.message);
}
}
module.exports = { startSecurityAgent };