class ZuoraConnect::AppInstanceBase
def telegraf_time(endpoint_name: nil, &block)
def telegraf_time(endpoint_name: nil, &block) response_time = Benchmark.realtime(&block) p_type = Middleware::get_process_type ZuoraConnect.configuration.telegraf_client.write(ZuoraConnect.configuration.app_name_outbound, tags: {endpoint: endpoint_name, instance_id: self.id, process_type: p_type}, values: {response_time: response_time, caller: block.source_location[0]}) end