ThresholdLogReporter customization?

Hello,

Sometimes in my server I get warning logs from ThresholdLogReporter, e.g.

[{“operation_name”:“n1ql”,“last_local_id”:“721DC6733B48777F/0000000013681C14”,“last_local_address”:“127.0.0.1:39504”,“last_remote_address”:“127.0.0.1:8093”,“last_dispatch_us”:1116600,“last_operation_id”:“856ad234-b07b-43d1-b22d-932d01c0ff93”,“total_us”:1117716},{“operation_name”:“n1ql”,“last_local_id”:“721DC6733B48777F/0000000026B1756E”,“last_local_address”:“127.0.0.1:39362”,“last_remote_address”:“127.0.0.1:8093”,“last_dispatch_us”:34705,“last_operation_id”:“986edc62-68ab-4277-9c03-d7be0e16c66b”,“total_us”:1450410}],“service”:“n1ql”,“count”:2}]

This lets me know the top10 slow operations but I’m doing many operations and I’m not 100% sure what’s the related query or KV operation. So I thought I should create my own tracer, supply it to the couchbase environment and log more useful data, because the data is there but it’s just not being logged, like the query or the key, they’re there in the couchbase request (or even the tags)

But it looks to me like the developers didn’t design with this in mind because I can’t extend ThresholdLogTracer or ThresholdLogReporter.

Can anyone advise how to do this?

edit: Also in the json above, according to the documentation I should receive “server_us” which shows me how long the server took, but it’s not there? Maybe it was and then got removed? Maybe I have to configure something? Not sure.

Thanks,

Couchbase 5.5.2 with sdk 2.7