Sha256: 1f873dc70bac373ca9344464d119b2a5418b74eff7595d84fe087f7fefb51810
Contents?: true
Size: 257 Bytes
Versions: 3
Compression:
Stored size: 257 Bytes
Contents
require 'socket' module Zipkin class Endpoint LOCAL_IP = Socket.ip_address_list.detect(&:ipv4_private?).ip_address def self.local_endpoint(service_name) { serviceName: service_name, ipv4: LOCAL_IP } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zipkin-0.4.0 | lib/zipkin/endpoint.rb |
zipkin-0.3.1 | lib/zipkin/endpoint.rb |
zipkin-0.3.0 | lib/zipkin/endpoint.rb |