Uses of Class
brave.ScopedSpan
| Package | Description |
|---|---|
| brave |
-
Uses of ScopedSpan in brave
Methods in brave that return ScopedSpan Modifier and Type Method Description abstract ScopedSpanScopedSpan. annotate(String value)Associates an event that explains latency with the current system time.abstract ScopedSpanScopedSpan. error(Throwable throwable)Records an error that impacted this operation.abstract ScopedSpanScopedSpan. name(String name)Sets the string name for the logical operation this span represents.ScopedSpanTracer. startScopedSpan(String name)Returns a new child span if there's aTracer.currentSpan()or a new trace if there isn't.<T> ScopedSpanTracer. startScopedSpan(String name, SamplerFunction<T> samplerFunction, T arg)LikeTracer.startScopedSpan(String)except when there is no trace in process, the samplertriggersagainst the supplied argument.ScopedSpanTracer. startScopedSpanWithParent(String name, TraceContext parent)Same asTracer.startScopedSpan(String), except ignores the current trace context.abstract ScopedSpanScopedSpan. tag(String key, String value)Tags give your span context for search, viewing and analysis.Methods in brave with parameters of type ScopedSpan Modifier and Type Method Description voidTag. tag(I input, ScopedSpan span)Tags the value parsed from theinput.