Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit d69d060

Browse files
committed
Make pg instrumentation a no-op
1 parent 514159d commit d69d060

3 files changed

Lines changed: 0 additions & 16 deletions

File tree

docs/config.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ Those configuration options are documented below:
166166
autoBreadcrumbs: {
167167
'console': false, // console logging
168168
'http': true, // http and https requests
169-
'pg': true, // postgresql queries from pg module
170169
}
171170
172171
.. describe:: maxBreadcrumbs

lib/breadcrumbs.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -113,20 +113,6 @@ var wrappers = {
113113
return req;
114114
};
115115
}, originals);
116-
},
117-
118-
pg: function (Raven) {
119-
// Using fill helper here is hard because of `this` binding
120-
var pg = require('pg');
121-
var origQuery = pg.Connection.prototype.query;
122-
pg.Connection.prototype.query = function (text) {
123-
Raven.captureBreadcrumb({
124-
category: 'postgres',
125-
message: text
126-
});
127-
origQuery.call(this, text);
128-
};
129-
originals.push([pg.Connection.prototype, 'query', origQuery]);
130116
}
131117
};
132118

lib/client.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ extend(Raven.prototype, {
5656
var autoBreadcrumbDefaults = {
5757
console: false,
5858
http: false,
59-
pg: false
6059
};
6160
// default to 30, don't allow higher than 100
6261
this.maxBreadcrumbs = Math.max(0, Math.min(options.maxBreadcrumbs || 30, 100));

0 commit comments

Comments
 (0)