newrelic-nestjs-instrumentation
Version:
Comprehensive New Relic instrumentation for NestJS applications - SQS, Kafka, HTTP/2, cron jobs and custom protocols
11 lines • 492 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.acceptNestjsDistributedTracingFactory = acceptNestjsDistributedTracingFactory;
function acceptNestjsDistributedTracingFactory(context) {
return (transaction) => {
if (context.getType() === 'http') {
transaction.acceptDistributedTraceHeaders('HTTP', context.switchToHttp().getRequest().headers);
}
};
}
//# sourceMappingURL=accept-nestjs-distributed-tracing-factory.js.map