Couchbase em NewRelic

Todos os créditos vão realmente para http://ssutch.org/pycassa-newrelic-tracing/ import newrelic.api.function_tracedef instrument_couchbase_connection(module): newrelic.api.function_trace.wrap_function_trace(module, ‘Connection.__init__’)_patch_methods = [‘set’, ‘add’, ‘replace’, ‘append’, ‘prepend’, ‘get’, ‘delete’, ‘incr’, ‘decr’, ‘stats’, ‘set_multi’, ‘add_multi’, ‘replace_multi’, ‘append_multi’, ‘prepend_multi’, ‘get_multi’]def instrument_couchbase_methods(module): …

Continuar lendo