Uses of Class
brave.internal.Nullable
-
Packages that use Nullable Package Description brave brave.handler brave.internal brave.internal.propagation brave.propagation brave.sampler -
-
Uses of Nullable in brave
Methods in brave with annotations of type Nullable Modifier and Type Method Description static TracingTracing. current()Returns the most recently created tracing component iff it hasn't been closed.SpanTracer. currentSpan()Returns the current span in scope or null if there isn't one.static TracerTracing. currentTracer()Returns the most recently created tracer if its component hasn't been closed.Method parameters in brave with annotations of type Nullable Modifier and Type Method Description abstract SpanSpan. kind(Span.Kind kind)When present, the span is remote.abstract booleanSpan. remoteIpAndPort(java.lang.String remoteIp, int remotePort)Sets the IP and port associated with the remote endpoint.ScopedSpanTracer. startScopedSpanWithParent(java.lang.String name, TraceContext parent)Same asTracer.startScopedSpan(String), except ignores the current trace context.Tracer.SpanInScopeTracer. withSpanInScope(Span span)Makes the given span the "current span" and returns an object that exits that scope on close. -
Uses of Nullable in brave.handler
Methods in brave.handler with annotations of type Nullable Modifier and Type Method Description java.lang.StringMutableSpan. localIp()When nulldefaultwill be used for zipkin.java.lang.StringMutableSpan. localServiceName()When nulldefaultis used.java.lang.StringMutableSpan. name()Returns thespan nameor nulljava.lang.StringMutableSpan. remoteIp()The text representation of the primary IPv4 or IPv6 address associated with the remote side of this connection.java.lang.StringMutableSpan. remoteServiceName()java.lang.StringMutableSpan. tag(java.lang.String key)Returns the last value associated with the key or nulljava.lang.StringMutableSpan.AnnotationUpdater. update(long timestamp, java.lang.String value)Returns the same value, an updated one, or null to drop the annotation.java.lang.StringMutableSpan.TagUpdater. update(java.lang.String key, java.lang.String value)Returns the same value, an updated one, or null to drop the tag.Method parameters in brave.handler with annotations of type Nullable Modifier and Type Method Description voidMutableSpan. kind(Span.Kind kind)booleanMutableSpan. localIp(java.lang.String localIp)booleanMutableSpan. remoteIpAndPort(java.lang.String remoteIp, int remotePort) -
Uses of Nullable in brave.internal
Methods in brave.internal with annotations of type Nullable Modifier and Type Method Description abstract java.lang.StringPlatform. getHostString(java.net.InetSocketAddress socket)GuardsInetSocketAddress.getHostString(), as it isn't available until Java 7static java.lang.StringIpLiteral. ipOrNull(java.lang.String ip)java.lang.StringPlatform. linkLocalIp()Method parameters in brave.internal with annotations of type Nullable Modifier and Type Method Description static java.lang.StringIpLiteral. ipOrNull(java.lang.String ip)voidPlatform. log(java.lang.String msg, java.lang.Object param1, java.lang.Throwable thrown)LikeLogger.log(Level, String, Object), except with a throwable argvoidPlatform. log(java.lang.String msg, java.lang.Throwable thrown)LikeLogger.log(Level, String) -
Uses of Nullable in brave.internal.propagation
Methods in brave.internal.propagation with annotations of type Nullable Modifier and Type Method Description protected abstract java.lang.StringCorrelationFieldScopeDecorator. get(java.lang.String key)Returns the correlation property of the specified name iff it is a string, or null otherwise.Method parameters in brave.internal.propagation with annotations of type Nullable Modifier and Type Method Description CurrentTraceContext.ScopeCorrelationFieldScopeDecorator. decorateScope(TraceContext currentSpan, CurrentTraceContext.Scope scope)When the input is not null "traceId", "parentId", "spanId" and "sampled" correlation properties are saved off and replaced with those of the current span. -
Uses of Nullable in brave.propagation
Methods in brave.propagation with annotations of type Nullable Modifier and Type Method Description TraceContextTraceContextOrSamplingFlags. context()static java.lang.StringExtraFieldPropagation. current(java.lang.String name)Synonym forExtraFieldPropagation.get(String)<T> TTraceContext. findExtra(java.lang.Class<T> type)Returns an extra of the given type if present or null if not.abstract TraceContextCurrentTraceContext. get()Returns the current span in scope or null if there isn't one.static java.lang.StringExtraFieldPropagation. get(TraceContext context, java.lang.String name)Returns the value of the field with the specified key or null if not availablestatic java.lang.StringExtraFieldPropagation. get(java.lang.String name)Returns the value of the field with the specified key or null if not available.java.lang.StringPropagation.Getter. get(C carrier, K key)java.lang.StringTraceContext. localRootIdString()Returns the hex representation of the span's local root IDSpanThreadLocalSpan. next()Returns theTracer.nextSpan()or null ifThreadLocalSpan.CURRENT_TRACERand tracing isn't available.SpanThreadLocalSpan. next(TraceContextOrSamplingFlags extracted)Returns theTracer.nextSpan(TraceContextOrSamplingFlags)or null ifThreadLocalSpan.CURRENT_TRACERand tracing isn't available.java.lang.LongTraceContext. parentId()The parent'sTraceContext.spanIdor null if this the root span in a trace.java.lang.StringTraceContext. parentIdString()Returns the hex representation of the span's parent IDstatic TraceContextOrSamplingFlagsB3SingleFormat. parseB3SingleFormat(java.lang.CharSequence b3)static TraceContextOrSamplingFlagsB3SingleFormat. parseB3SingleFormat(java.lang.CharSequence b3, int beginIndex, int endIndex)SpanThreadLocalSpan. remove()Returns the span set in scope viaThreadLocalSpan.next()or null if there was none.java.lang.BooleanSamplingFlags. sampled()Sampled means send span data to Zipkin (or something else compatible with its data).java.lang.BooleanTraceContextOrSamplingFlags. sampled()ReturnsSamplingFlags.sampled(), regardless of subtype.SamplingFlagsTraceContextOrSamplingFlags. samplingFlags()TraceIdContextTraceContextOrSamplingFlags. traceIdContext()Method parameters in brave.propagation with annotations of type Nullable Modifier and Type Method Description static SamplingFlagsSamplingFlags.Builder. build(java.lang.Boolean sampled)Deprecated.Allows you to create flags from a boolean value without allocating a builder instancestatic TraceContextOrSamplingFlagsTraceContextOrSamplingFlags. create(java.lang.Boolean sampled, boolean debug)protected CurrentTraceContext.ScopeCurrentTraceContext. decorateScope(TraceContext currentSpan, CurrentTraceContext.Scope scope)When implementing CurrentTraceContext.newScope(TraceContext), decorate the result before returning it.CurrentTraceContext.ScopeCurrentTraceContext.ScopeDecorator. decorateScope(TraceContext currentSpan, CurrentTraceContext.Scope scope)CurrentTraceContext.ScopeStrictScopeDecorator. decorateScope(TraceContext currentSpan, CurrentTraceContext.Scope scope)Identifies problems by throwing assertion errors when a scope is closed on a different thread.CurrentTraceContext.ScopeCurrentTraceContext. maybeScope(TraceContext currentSpan)LikeCurrentTraceContext.newScope(TraceContext), except returnsCurrentTraceContext.Scope.NOOPif the given context is already in scope.abstract CurrentTraceContext.ScopeCurrentTraceContext. newScope(TraceContext currentSpan)Sets the current span in scope until the returned object is closed.CurrentTraceContext.ScopeThreadLocalCurrentTraceContext. newScope(TraceContext currentSpan)TraceContext.BuilderTraceContext.Builder. parentId(java.lang.Long parentId)SamplingFlags.BuilderSamplingFlags.Builder. sampled(java.lang.Boolean sampled)Deprecated.TraceContext.BuilderTraceContext.Builder. sampled(java.lang.Boolean sampled)TraceContextOrSamplingFlagsTraceContextOrSamplingFlags. sampled(java.lang.Boolean sampled)Deprecated.do not use object variant..TraceIdContext.BuilderTraceIdContext.Builder. sampled(java.lang.Boolean sampled) -
Uses of Nullable in brave.sampler
Methods in brave.sampler with annotations of type Nullable Modifier and Type Method Description java.lang.FloatDeclarativeSampler.ProbabilityOfMethod. get(M method)Returns null if there's no configured sample probability of this methodjava.lang.IntegerDeclarativeSampler.RateOfMethod. get(M method)Returns null if there's no configured sample rate (in traces per second) of this methodjava.lang.BooleanDeclarativeSampler. trySample(M method)Returns an overriding sampling decision for a new trace.java.lang.BooleanParameterizedSampler. trySample(P parameters)Returns an overriding sampling decision for a new trace.java.lang.BooleanSamplerFunction. trySample(T arg)Returns an overriding sampling decision for a new trace.Method parameters in brave.sampler with annotations of type Nullable Modifier and Type Method Description SamplingFlagsDeclarativeSampler. sample(M method)Deprecated.Since 5.8, useDeclarativeSampler.trySample(Object)SamplingFlagsParameterizedSampler. sample(P parameters)Deprecated.Since 5.8, useParameterizedSampler.trySample(Object)java.lang.BooleanDeclarativeSampler. trySample(M method)Returns an overriding sampling decision for a new trace.java.lang.BooleanSamplerFunction. trySample(T arg)Returns an overriding sampling decision for a new trace.
-