newrelic
Version:
New Relic agent
22 lines (18 loc) • 604 B
JavaScript
/*
* Copyright 2025 New Relic Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
const CassandraExecuteSubscriber = require('./client-execute')
/**
* Subscribes to the `execute` event in `cassandra-driver`
* and extracts relevant information from the query.
*/
class LegacyCassandraExecuteSubscriber extends CassandraExecuteSubscriber {
constructor({ agent, logger }) {
super({ agent, logger, channelName: 'nr_legacyExecute' })
this.events = ['asyncStart', 'asyncEnd']
this.callback = -1
}
}
module.exports = LegacyCassandraExecuteSubscriber