public class Brave extends Object
Flows inside Spans, to
measure latency.| Constructor and Description |
|---|
Brave() |
| Modifier and Type | Method and Description |
|---|---|
static <A,B,Mat> akka.stream.Graph<akka.stream.FlowShape<akka.japi.Pair<A,brave.propagation.TraceContext>,akka.japi.Pair<B,brave.propagation.TraceContext>>,Mat> |
childSpanFlow(brave.Tracing tracing,
String spanName,
akka.stream.javadsl.Flow<A,B,Mat> flow)
Creates a
Flow that wraps another Flow using a BidiShape. |
static <A,B,Mat> akka.stream.Graph<akka.stream.FlowShape<akka.japi.Pair<A,brave.propagation.TraceContext>,akka.japi.Pair<B,brave.propagation.TraceContext>>,Mat> |
childSpanFlowWithTraceContext(brave.Tracing tracing,
String spanName,
akka.stream.javadsl.Flow<akka.japi.Pair<A,brave.propagation.TraceContext>,B,Mat> flow)
Creates a
Flow that wraps another Flow using a BidiShape. |
static <T> akka.stream.Graph<akka.stream.FlowShape<akka.japi.Pair<T,brave.propagation.TraceContext>,T>,akka.NotUsed> |
finishSpanFlow(brave.Tracing tracing)
Creates a
Flow that takes a trace context started before, and finish it. |
static <T> akka.stream.javadsl.Flow<T,akka.japi.Pair<T,brave.propagation.TraceContext>,akka.NotUsed> |
startSpanFlow(brave.Tracing tracing,
String spanName)
Creates a
Flow that pairs input element with a started trace context, that can be propagated
and must be closed before completing a stream transaction to be reported. |
public static <T> akka.stream.javadsl.Flow<T,akka.japi.Pair<T,brave.propagation.TraceContext>,akka.NotUsed> startSpanFlow(brave.Tracing tracing,
String spanName)
Flow that pairs input element with a started trace context, that can be propagated
and must be closed before completing a stream transaction to be reported. See `finishSpanFlow`.public static <T> akka.stream.Graph<akka.stream.FlowShape<akka.japi.Pair<T,brave.propagation.TraceContext>,T>,akka.NotUsed> finishSpanFlow(brave.Tracing tracing)
Flow that takes a trace context started before, and finish it.public static <A,B,Mat> akka.stream.Graph<akka.stream.FlowShape<akka.japi.Pair<A,brave.propagation.TraceContext>,akka.japi.Pair<B,brave.propagation.TraceContext>>,Mat> childSpanFlowWithTraceContext(brave.Tracing tracing,
String spanName,
akka.stream.javadsl.Flow<akka.japi.Pair<A,brave.propagation.TraceContext>,B,Mat> flow)
Flow that wraps another Flow using a BidiShape. Creates
a Child Span based on a Parent trace that will be received as input. After completing
Flow execution, it continues parent trace context.public static <A,B,Mat> akka.stream.Graph<akka.stream.FlowShape<akka.japi.Pair<A,brave.propagation.TraceContext>,akka.japi.Pair<B,brave.propagation.TraceContext>>,Mat> childSpanFlow(brave.Tracing tracing,
String spanName,
akka.stream.javadsl.Flow<A,B,Mat> flow)
Flow that wraps another Flow using a BidiShape. Creates
a Child Span based on a Parent trace that will be received as input. After completing
Flow execution, it continues parent trace context, but Child Span is propagated internally to
wrapped Flow for further manipulation.Copyright © 2018. All rights reserved.