Description
I'm using node sdk 2.6.11 and am not able to get n1ql threshold logging to work. Tracing threshold is 1 micro second and flush interval is 1 second. I ran trivial test code (with LCB_LOGLEVEL=5) for 10 seconds and did not see any operations over threshold message.
Here is the code:
'use strict'; |
|
const couchbase = require('couchbase'); |
const cluster = new couchbase.Cluster('couchbase://localhost/travel-sample?tracing_threshold_n1ql=0.000001&tracing_threshold_queue_flush_interval=1'); |
|
cluster.authenticate('admin', 'password'); const bucket = cluster.openBucket('travel-sample'); |
|
const qs = "SELECT * from `travel-sample` WHERE name = 'Locair';"; |
const q = couchbase.N1qlQuery.fromString(qs); |
|
bucket.query(q, function(err, rows) {
|
if (err) { |
console.log(err);
|
process.exit(1); |
}
|
|
console.log(rows);
|
});
|
I'm attaching the debug logs.
Attachments
Issue Links
- depends on
-
CCBC-1219 No threshold logging for Query, Search, FTS
- Resolved