Class: Zipkin::Endpoint
- Inherits:
-
Object
show all
- Defined in:
- lib/zipkin/endpoint.rb
Defined Under Namespace
Modules: PeerInfo, SpanKind
Constant Summary
collapse
- LOCAL_IP =
(
Socket.ip_address_list.detect(&:ipv4_private?) ||
Socket.ip_address_list.reverse.detect(&:ipv4?)
).ip_address
Class Method Summary
collapse
Class Method Details
.local_endpoint(service_name) ⇒ Object
30
31
32
33
34
35
|
# File 'lib/zipkin/endpoint.rb', line 30
def self.local_endpoint(service_name)
{
serviceName: service_name,
ipv4: LOCAL_IP
}
end
|
.remote_endpoint(span) ⇒ Object