lib/oboe/inst/cassandra.rb in oboe-2.2.6 vs lib/oboe/inst/cassandra.rb in oboe-2.3.2
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright (c) 2012 by Tracelytics, Inc.
+# Copyright (c) 2013 AppNeta, Inc.
# All rights reserved.
module Oboe
module Inst
module Cassandra
@@ -13,10 +13,10 @@
report_kvs[:Key] = keys.to_s if keys
# Open issue - how to handle multiple Cassandra servers
report_kvs[:RemoteHost], report_kvs[:RemotePort] = @servers.first.split(":")
- report_kvs[:Backtrace] = Oboe::API.backtrace
+ report_kvs[:Backtrace] = Oboe::API.backtrace if Oboe::Config[:cassandra][:collect_backtraces]
if options.empty? and args.is_a?(Array)
options = args.last if args.last.is_a?(Hash)
end