newrelic
Version:
New Relic agent
18 lines (15 loc) • 563 B
JavaScript
/*
* Copyright 2026 New Relic Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
const ClientPropagationSubscriber = require('./client-propagation')
/**
* Propagates the context in `RedisClient.sendCommand` and
* `RedisClient[redisClientOpts]` into `RedisCommandQueue.addCommand`.
*/
module.exports = class ClientSendCommandSubscriber extends ClientPropagationSubscriber {
constructor({ agent, logger, packageName = '@redis/client' }) {
super({ agent, logger, packageName, channelName: 'nr_sendCommand' })
}
}