UNPKG

newrelic

Version:
21 lines (17 loc) 687 B
/* * Copyright 2025 New Relic Corporation. All rights reserved. * SPDX-License-Identifier: Apache-2.0 */ const PropagationSubscriber = require('../propagation') /** * This subscriber is only required to propagate the context within * `Pool#getConnection`. * * Will be deleted when MySQL Pool#query segments are removed (@see https://github.com/newrelic/node-newrelic/issues/3482). */ class MySQLPoolGetConnectionSubscriber extends PropagationSubscriber { constructor({ agent, logger, packageName = 'mysql', channelName = 'nr_poolGetConnection' }) { super({ agent, logger, packageName, channelName, callback: -1 }) } } module.exports = MySQLPoolGetConnectionSubscriber