class ElasticAPM::Span::Context::Destination
def self.from_uri(uri_or_str, type: nil, **attrs)
def self.from_uri(uri_or_str, type: nil, **attrs) uri = normalize(uri_or_str) service = case type when 'http' then http_service(uri) else nil end new( address: uri.hostname, port: uri.port, service: service, **attrs ) end