public Html getSpan()

in geronimo-microprofile-reporter/src/main/java/org/apache/geronimo/microprofile/reporter/storage/front/ReporterEndpoints.java [272:283]


    public Html getSpan(@QueryParam("spanId") final String id) {
        final SpanEntry value = database.getSpans().snapshot().stream()
               .map(InMemoryDatabase.Value::getValue)
               .filter(it -> it.getSpanId().equals(id))
               .findFirst()
               .orElseThrow(() -> new BadRequestException("No matching span"));
        return new Html("main.html")
                .with("view", "span.html")
                .with("colors", COLORS)
                .with("title", "Span")
                .with("span", value);
    }