zipkin2.storage.ServiceAndSpanNames Maven / Gradle / Ivy
/*
* Copyright The OpenZipkin Authors
* SPDX-License-Identifier: Apache-2.0
*/
package zipkin2.storage;
import java.util.List;
import zipkin2.Call;
import zipkin2.Endpoint;
import zipkin2.Span;
/**
* Provides autocomplete functionality by providing values for service and span names, usually
* derived from {@link SpanConsumer}.
*/
public interface ServiceAndSpanNames {
/**
* Retrieves all {@link Span#localEndpoint() local} {@link Endpoint#serviceName() service names},
* sorted lexicographically.
*/
Call> getServiceNames();
/**
* Retrieves all {@link Span#remoteEndpoint() remote} {@link Endpoint#serviceName() service names}
* recorded by a {@link Span#localEndpoint() service}, sorted lexicographically.
*/
Call> getRemoteServiceNames(String serviceName);
/**
* Retrieves all {@link Span#name() span names} recorded by a {@link Span#localEndpoint()
* service}, sorted lexicographically.
*/
Call> getSpanNames(String serviceName);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy