All Downloads are FREE. Search and download functionalities are using the official Maven repository.

zipkin2.storage.Traces Maven / Gradle / Ivy

There is a newer version: 3.4.2
Show newest version
/*
 * Copyright The OpenZipkin Authors
 * SPDX-License-Identifier: Apache-2.0
 */
package zipkin2.storage;

import java.util.List;
import zipkin2.Call;
import zipkin2.Span;

/**
 * Allows readback of traces by ID, as written by a {@link SpanConsumer}.
 *
 * 

Specifically, this provides apis present when {@link StorageComponent.Builder#searchEnabled(boolean) * search is disabled}. * *

Note: This is not considered a user-level Api, rather an Spi that can be used to bind * user-level abstractions such as futures or observables. * * @since 2.17 */ public interface Traces { /** * Retrieves spans that share a 128-bit trace id with no ordering expectation or empty if none are * found. * *

When strict trace ID is disabled, spans with the same right-most 16 characters are returned * even if the characters to the left are not. * *

Implementations should use {@link Span#normalizeTraceId(String)} to ensure consistency. * * @param traceId the {@link Span#traceId() trace ID} */ Call> getTrace(String traceId); /** * Retrieves any traces with the specified IDs. Results return in any order, and can be empty. * *

When strict trace ID is disabled, spans with the same right-most 16 characters are returned * even if the characters to the left are not. * *

Implementations should use {@link Span#normalizeTraceId(String)} on each input trace ID to * ensure consistency. * * @param traceIds a list of unique {@link Span#traceId() trace IDs}. * @return traces matching the supplied trace IDs, in any order */ Call>> getTraces(Iterable traceIds); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy