Skip to content

Commit 8ab1379

Browse files
author
Jordi Bertran de Balanda
committed
move more cassandra-specific logic out of outbound
1 parent 85b9512 commit 8ab1379

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

packages/datadog-plugin-cassandra-driver/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ class CassandraDriverPlugin extends DatabasePlugin {
1010
constructor (...args) {
1111
super(...args)
1212

13-
this.addTraceSub('connect', message => {
14-
this.connect(message)
13+
this.addTraceSub('connect', url => {
14+
this.addHost(url.hostname, url.port)
1515
})
1616
}
1717

packages/dd-trace/src/plugins/outbound.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ const TracingPlugin = require('./tracing')
55

66
// TODO: Exit span on finish when AsyncResource instances are removed.
77
class OutboundPlugin extends TracingPlugin {
8-
connect (url) {
9-
this.addHost(url.hostname, url.port)
10-
}
11-
128
addHost (hostname, port) {
139
const span = this.activeSpan
1410

0 commit comments

Comments
 (0)