module Protobuf::Rpc::Connectors::Common

def initialize_stats

def initialize_stats
  @stats = Protobuf::Rpc::Stat.new(:CLIENT, true)
  @stats.server = [@options[:port], @options[:host]]
  @stats.service = @options[:service].name
  @stats.method = @options[:method]
  self
rescue => ex
  fail(:RPC_ERROR, "Invalid stats configuration. #{ex.message}") 
end