Uses of Class
brave.Tracing.Builder
| Package | Description |
|---|---|
| brave |
-
Uses of Tracing.Builder in brave
Methods in brave that return Tracing.Builder Modifier and Type Method Description Tracing.BuilderTracing.Builder. addFinishedSpanHandler(FinishedSpanHandler handler)Deprecated.Since 5.12 add a span handler that implementsSpanHandler.end(TraceContext, MutableSpan, SpanHandler.Cause)withSpanHandler.Cause.FINISHEDTracing.BuilderTracing.Builder. addSpanHandler(SpanHandler spanHandler)Inputs receive {code (context, span)} pairs for every locally sampled span.Tracing.BuilderTracing.Builder. alwaysReportSpans()Deprecated.Since 5.12, useZipkinSpanHandler.Builder.alwaysReportSpans(boolean)Tracing.BuilderTracing.Builder. alwaysSampleLocal()When true, all spans become real spans even if they aren't sampled remotely.Tracing.BuilderTracing.Builder. clearSpanHandlers()Clears all span handlers.Tracing.BuilderTracing.Builder. clock(Clock clock)Assigns microsecond-resolution timestamp source for operations likeSpan.start().Tracing.BuilderTracing.Builder. currentTraceContext(CurrentTraceContext currentTraceContext)Responsible for implementingTracer.startScopedSpan(String),Tracer.currentSpanCustomizer(),Tracer.currentSpan()andTracer.withSpanInScope(Span).Tracing.BuilderTracing.Builder. endpoint(zipkin2.Endpoint endpoint)Deprecated.Tracing.BuilderTracing.Builder. errorParser(ErrorParser errorParser)Deprecated.This is only used in Zipkin reporting.Tracing.BuilderTracing.Builder. localIp(String localIp)The text representation of the primary IP address associated with this service.Tracing.BuilderTracing.Builder. localPort(int localPort)The primary listen port associated with this service.Tracing.BuilderTracing.Builder. localServiceName(String localServiceName)Label of the remote node in the service graph, such as "favstar".static Tracing.BuilderTracing. newBuilder()Tracing.BuilderTracing.Builder. propagationFactory(Propagation.Factory propagationFactory)Controls how trace contexts are injected or extracted from remote requests, such as from http headers.Tracing.BuilderTracing.Builder. sampler(Sampler sampler)Sampler is responsible for deciding if a particular trace should be "sampled", i.e.Tracing.BuilderTracing.Builder. spanReporter(zipkin2.reporter.Reporter<zipkin2.Span> spanReporter)Deprecated.Since 5.12, useaddSpanHandler(SpanHandler)with aZipkinSpanHandlerTracing.BuilderTracing.Builder. supportsJoin(boolean supportsJoin)True means the tracing system supports sharing a span ID between aSpan.Kind.CLIENTandSpan.Kind.SERVERspan.Tracing.BuilderTracing.Builder. traceId128Bit(boolean traceId128Bit)When true, new root spans will have 128-bit trace IDs.Tracing.BuilderTracing.Builder. trackOrphans()When true, aSpanHandleris added that logs the caller which orphaned a span to the category "brave.Tracer" atLevel.FINE.Methods in brave with parameters of type Tracing.Builder Modifier and Type Method Description voidTracingCustomizer. customize(Tracing.Builder builder)