Class DefaultEndpointLocator

  • All Implemented Interfaces:
    EventListener, EndpointLocator, org.springframework.context.ApplicationListener<org.springframework.boot.web.servlet.context.ServletWebServerInitializedEvent>

    public class DefaultEndpointLocator
    extends Object
    implements EndpointLocator, org.springframework.context.ApplicationListener<org.springframework.boot.web.servlet.context.ServletWebServerInitializedEvent>
    EndpointLocator implementation that. serviceName - from ServerProperties or Registration ip - from ServerProperties port - from lazily assigned port or ServerProperties You can override the name using ZipkinProperties.Service.setName(String)
    Since:
    3.0.0
    Author:
    Dave Syer
    • Constructor Detail

      • DefaultEndpointLocator

        public DefaultEndpointLocator​(org.springframework.cloud.client.serviceregistry.Registration registration,
                                      org.springframework.boot.autoconfigure.web.ServerProperties serverProperties,
                                      org.springframework.core.env.Environment environment,
                                      ZipkinProperties zipkinProperties,
                                      org.springframework.cloud.commons.util.InetUtils inetUtils)
    • Method Detail

      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.boot.web.servlet.context.ServletWebServerInitializedEvent event)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.boot.web.servlet.context.ServletWebServerInitializedEvent>