Class: Zipkin::Endpoint
- Inherits:
-
Object
- Object
- Zipkin::Endpoint
- Defined in:
- lib/zipkin/endpoint.rb
Constant Summary collapse
- LOCAL_IP =
Socket.ip_address_list.detect(&:ipv4_private?).ip_address
Class Method Summary collapse
Class Method Details
.local_endpoint(service_name) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/zipkin/endpoint.rb', line 7 def self.local_endpoint(service_name) { serviceName: service_name, ipv4: LOCAL_IP } end |