- call() - Method in class com.github.kristofa.brave.BraveCallable
- checkNotBlank(String, String, Object...) - Static method in class com.github.kristofa.brave.internal.Util
-
- checkNotNull(T, String, Object...) - Static method in class com.github.kristofa.brave.internal.Util
-
Copy of com.google.common.base.Preconditions#checkNotNull.
- clearCurrentSpan() - Method in class com.github.kristofa.brave.ServerTracer
-
Clears current span.
- CLIENT_ADDR - Static variable in class com.twitter.zipkin.gen.zipkinCoreConstants
-
Deprecated.
Indicates a client address ("ca") in a span.
- CLIENT_RECV - Static variable in class com.twitter.zipkin.gen.zipkinCoreConstants
-
Deprecated.
The client received ("cr") a response from a server.
- CLIENT_RECV_FRAGMENT - Static variable in class com.twitter.zipkin.gen.zipkinCoreConstants
-
Deprecated.
Optionally logs progress of a (CLIENT_RECV, WIRE_RECV).
- CLIENT_SEND - Static variable in class com.twitter.zipkin.gen.zipkinCoreConstants
-
Deprecated.
The client sent ("cs") a request to a server.
- CLIENT_SEND_FRAGMENT - Static variable in class com.twitter.zipkin.gen.zipkinCoreConstants
-
Deprecated.
Optionally logs progress of a (CLIENT_SEND, WIRE_SEND).
- ClientRequestAdapter - Interface in com.github.kristofa.brave
-
Adapter used to get tracing information from and add tracing information to a new request.
- clientRequestInterceptor() - Method in class com.github.kristofa.brave.Brave
-
- ClientRequestInterceptor - Class in com.github.kristofa.brave
-
Contains logic for handling an outgoing client request.
- ClientRequestInterceptor(ClientTracer) - Constructor for class com.github.kristofa.brave.ClientRequestInterceptor
-
- ClientResponseAdapter - Interface in com.github.kristofa.brave
-
- clientResponseInterceptor() - Method in class com.github.kristofa.brave.Brave
-
- ClientResponseInterceptor - Class in com.github.kristofa.brave
-
Contains logic for dealing with response from client request.
- ClientResponseInterceptor(ClientTracer) - Constructor for class com.github.kristofa.brave.ClientResponseInterceptor
-
- ClientSpanAndEndpoint() - Constructor for class com.github.kristofa.brave.SpanAndEndpoint.ClientSpanAndEndpoint
-
- ClientSpanState - Interface in com.github.kristofa.brave
-
Maintains state for a single client span.
- clientSpanThreadBinder() - Method in class com.github.kristofa.brave.Brave
-
Helper object that can be used to propagate client trace state.
- ClientSpanThreadBinder - Class in com.github.kristofa.brave
-
Allows binding span from client request thread to a async callback thread that process the result.
- ClientSpanThreadBinder(ClientSpanState) - Constructor for class com.github.kristofa.brave.ClientSpanThreadBinder
-
Creates a new instance.
- clientTracer() - Method in class com.github.kristofa.brave.Brave
-
Client Tracer.
- ClientTracer - Class in com.github.kristofa.brave
-
Low level api that deals with client side of a request:
Decide on tracing or not (sampling)
Sending client set / client received annotations
It is advised that you use ClientRequestInterceptor and ClientResponseInterceptor which build
upon ClientTracer and provide a higher level api.
- ClientTracer.Builder - Class in com.github.kristofa.brave
-
- close() - Method in class com.github.kristofa.brave.BraveExecutorService
-
Convenience for try-with-resources, or frameworks such as Spring that automatically process this.
- close() - Method in class com.github.kristofa.brave.FixedSampleRateTraceFilter
-
Deprecated.
Should be called when TraceFilter will not be used anymore.
- close() - Method in class com.github.kristofa.brave.FlushingSpanCollector
-
Requests a cease of delivery.
- close() - Method in interface com.github.kristofa.brave.TraceFilter
-
Deprecated.
Should be called when TraceFilter will not be used anymore.
- collect(Span) - Method in class com.github.kristofa.brave.EmptySpanCollector
-
Collect span.
- collect(Span) - Method in class com.github.kristofa.brave.FlushingSpanCollector
-
Queues the span for collection, or drops it if the queue is full.
- collect(Span) - Method in class com.github.kristofa.brave.LoggingSpanCollector
-
Collect span.
- collect(Span) - Method in interface com.github.kristofa.brave.SpanCollector
-
Collect span.
- com.github.kristofa.brave - package com.github.kristofa.brave
-
- com.github.kristofa.brave.internal - package com.github.kristofa.brave.internal
-
- com.twitter.zipkin.gen - package com.twitter.zipkin.gen
-
- CommonSpanState - Interface in com.github.kristofa.brave
-
Keeps track of common trace/span state information.
- convertToLong(String) - Static method in class com.github.kristofa.brave.IdConversion
-
Converts String trace or span id to long.
- convertToString(long) - Static method in class com.github.kristofa.brave.IdConversion
-
Converts long trace or span id to String.
- CountingSampler - Class in com.github.kristofa.brave
-
This sampler is appropriate for low-traffic instrumentation (ex servers that each receive <100K
requests), or those who do not provision random trace ids.
- create(SpanAndEndpoint) - Static method in class com.github.kristofa.brave.AnnotationSubmitter
-
- create(float) - Static method in class com.github.kristofa.brave.BoundarySampler
-
- create(Callable<T>, ServerSpanThreadBinder) - Static method in class com.github.kristofa.brave.BraveCallable
-
Creates a new instance.
- create(Runnable, ServerSpanThreadBinder) - Static method in class com.github.kristofa.brave.BraveRunnable
-
Creates a new instance.
- create(float) - Static method in class com.github.kristofa.brave.CountingSampler
-
- create(String, String) - Static method in class com.github.kristofa.brave.KeyValueAnnotation
-
- create(float) - Static method in class com.github.kristofa.brave.Sampler
-
Returns a sampler, given a rate expressed as a percentage.
- create(long, long, Long) - Static method in class com.github.kristofa.brave.SpanId
-
- create(long, String, Endpoint) - Static method in class com.twitter.zipkin.gen.Annotation
-
- create(String, String, Endpoint) - Static method in class com.twitter.zipkin.gen.BinaryAnnotation
-
String values are the only queryable type of binary annotation.
- create(String, byte[], AnnotationType, Endpoint) - Static method in class com.twitter.zipkin.gen.BinaryAnnotation
-
- create(String, int, int) - Static method in class com.twitter.zipkin.gen.Endpoint
-
- create(String, int) - Static method in class com.twitter.zipkin.gen.Endpoint
-
- getAnnotations() - Method in class com.twitter.zipkin.gen.Span
-
- getBinary_annotations() - Method in class com.twitter.zipkin.gen.Span
-
- getCurrentClientSpan() - Method in interface com.github.kristofa.brave.ClientSpanState
-
Gets the Span for the client request that was started as part of current request.
- getCurrentClientSpan() - Method in class com.github.kristofa.brave.ClientSpanThreadBinder
-
This should be called in the thread in which the client request made after starting new client span.
- getCurrentClientSpan() - Method in class com.github.kristofa.brave.ThreadLocalServerClientAndLocalSpanState
-
Gets the Span for the client request that was started as part of current request.
- getCurrentLocalSpan() - Method in interface com.github.kristofa.brave.LocalSpanState
-
Gets the Span for the local request that was started as part of current request.
- getCurrentLocalSpan() - Method in class com.github.kristofa.brave.ThreadLocalServerClientAndLocalSpanState
-
- getCurrentServerSpan() - Method in interface com.github.kristofa.brave.ServerSpanState
-
Gets the Span for the server request we are currently part of.
- getCurrentServerSpan() - Method in class com.github.kristofa.brave.ServerSpanThreadBinder
-
This should be called in the thread in which the request was received before executing code in new threads.
- getCurrentServerSpan() - Method in class com.github.kristofa.brave.ThreadLocalServerClientAndLocalSpanState
-
Gets the Span for the server request we are currently part of.
- getDuration() - Method in class com.twitter.zipkin.gen.Span
-
Measurement of duration in microseconds, used to support queries.
- getId() - Method in class com.twitter.zipkin.gen.Span
-
- getInstance() - Static method in class com.github.kristofa.brave.NoAnnotationsClientResponseAdapter
-
- getKey() - Method in class com.github.kristofa.brave.KeyValueAnnotation
-
- getKey() - Method in class com.twitter.zipkin.gen.BinaryAnnotation
-
- getName() - Method in class com.twitter.zipkin.gen.Span
-
Span name in lowercase, rpc method for example
Conventionally, when the span name isn't known, name = "unknown".
- getParent_id() - Method in class com.twitter.zipkin.gen.Span
-
- getParentSpanId() - Method in class com.github.kristofa.brave.SpanId
-
- getSample() - Method in class com.github.kristofa.brave.ServerSpan
-
Indicates if we need to sample this request or not.
- getSample() - Method in class com.github.kristofa.brave.TraceData
-
Indication of request should be sampled or not.
- getSpan() - Method in class com.github.kristofa.brave.ServerSpan
-
Gets the Trace/Span context.
- getSpanId() - Method in class com.github.kristofa.brave.SpanId
-
- getSpanId() - Method in class com.github.kristofa.brave.TraceData
-
Span id.
- getSpanName() - Method in interface com.github.kristofa.brave.ClientRequestAdapter
-
Gets the span name for request.
- getSpanName() - Method in interface com.github.kristofa.brave.ServerRequestAdapter
-
Gets the span name for request.
- getTimestamp() - Method in class com.twitter.zipkin.gen.Span
-
Microseconds from epoch of the creation of this span.
- getTrace_id() - Method in class com.twitter.zipkin.gen.Span
-
- getTraceData() - Method in interface com.github.kristofa.brave.ServerRequestAdapter
-
Get the trace data from request.
- getTraceId() - Method in class com.github.kristofa.brave.SpanId
-
- getValue() - Method in class com.github.kristofa.brave.KeyValueAnnotation
-
- getValue() - Method in enum com.twitter.zipkin.gen.AnnotationType
-
Get the integer value of this enum value, as defined in the Thrift IDL.
- getValue() - Method in class com.twitter.zipkin.gen.BinaryAnnotation
-
- sample() - Method in interface com.github.kristofa.brave.CommonSpanState
-
Indicates if we should sample current request.
- sample() - Method in class com.github.kristofa.brave.ThreadLocalServerClientAndLocalSpanState
-
- sample(Boolean) - Method in interface com.github.kristofa.brave.TraceData.Builder
-
- sampled(Boolean) - Method in class com.github.kristofa.brave.SpanId.Builder
-
- sampled() - Method in class com.github.kristofa.brave.SpanId
-
Should we sample this request or not? True means sample, false means don't, null means we defer
decision to someone further down in the stack.
- Sampler - Class in com.github.kristofa.brave
-
Sampler is responsible for deciding if a particular trace should be "sampled", i.e.
- Sampler() - Constructor for class com.github.kristofa.brave.Sampler
-
- sendSpans(byte[]) - Method in class com.github.kristofa.brave.AbstractSpanCollector
-
Sends a encoded list of spans over the current transport.
- SERVER_ADDR - Static variable in class com.twitter.zipkin.gen.zipkinCoreConstants
-
Deprecated.
Indicates a server address ("sa") in a span.
- SERVER_RECV - Static variable in class com.twitter.zipkin.gen.zipkinCoreConstants
-
Deprecated.
The server received ("sr") a request from a client.
- SERVER_RECV_FRAGMENT - Static variable in class com.twitter.zipkin.gen.zipkinCoreConstants
-
Deprecated.
Optionally logs progress of a (SERVER_RECV, WIRE_RECV).
- SERVER_SEND - Static variable in class com.twitter.zipkin.gen.zipkinCoreConstants
-
Deprecated.
The server sent ("ss") a response to a client.
- SERVER_SEND_FRAGMENT - Static variable in class com.twitter.zipkin.gen.zipkinCoreConstants
-
Deprecated.
Optionally logs progress of a (SERVER_SEND, WIRE_SEND).
- serverAddress() - Method in interface com.github.kristofa.brave.ClientRequestAdapter
-
Provides the remote server address information for additional tracking.
- ServerClientAndLocalSpanState - Interface in com.github.kristofa.brave
-
Combines server and client span state.
- ServerRequestAdapter - Interface in com.github.kristofa.brave
-
Provides properties needed for dealing with server request.
- serverRequestInterceptor() - Method in class com.github.kristofa.brave.Brave
-
- ServerRequestInterceptor - Class in com.github.kristofa.brave
-
Contains logic for handling an incoming server request.
- ServerRequestInterceptor(ServerTracer) - Constructor for class com.github.kristofa.brave.ServerRequestInterceptor
-
- ServerResponseAdapter - Interface in com.github.kristofa.brave
-
- serverResponseInterceptor() - Method in class com.github.kristofa.brave.Brave
-
- ServerResponseInterceptor - Class in com.github.kristofa.brave
-
Contains logic for dealing with response being returned at server side.
- ServerResponseInterceptor(ServerTracer) - Constructor for class com.github.kristofa.brave.ServerResponseInterceptor
-
- ServerSpan - Class in com.github.kristofa.brave
-
The ServerSpan is initialized by
ServerTracer and keeps track of Trace/Span state of our service request.
- ServerSpanAndEndpoint() - Constructor for class com.github.kristofa.brave.SpanAndEndpoint.ServerSpanAndEndpoint
-
- serverSpanAnnotationSubmitter() - Method in class com.github.kristofa.brave.Brave
-
Can be used to submit application specific annotations to the current server span.
- ServerSpanState - Interface in com.github.kristofa.brave
-
Maintains state for a single server span.
- serverSpanThreadBinder() - Method in class com.github.kristofa.brave.Brave
-
Helper object that can be used to propogate server trace state.
- ServerSpanThreadBinder - Class in com.github.kristofa.brave
-
Allows binding span from request thread to a new executor thread.
- ServerSpanThreadBinder(ServerSpanState) - Constructor for class com.github.kristofa.brave.ServerSpanThreadBinder
-
Creates a new instance.
- serverTracer() - Method in class com.github.kristofa.brave.Brave
-
Server Tracer.
- ServerTracer - Class in com.github.kristofa.brave
-
Used for setting up trace information for a request.
- ServerTracer.Builder - Class in com.github.kristofa.brave
-
- service_name - Variable in class com.twitter.zipkin.gen.Endpoint
-
Service name in lowercase, such as "memcache" or "zipkin-web"
Conventionally, when the service name isn't known, service_name = "unknown".
- setAnnotations(List<Annotation>) - Method in class com.twitter.zipkin.gen.Span
-
- setBinaryAnnotations(List<BinaryAnnotation>) - Method in class com.twitter.zipkin.gen.Span
-
- setClientReceived() - Method in class com.github.kristofa.brave.ClientTracer
-
Sets the 'client received' event for current thread.
- setClientSent() - Method in class com.github.kristofa.brave.ClientTracer
-
Sets 'client sent' event for current thread.
- setClientSent(int, int, String) - Method in class com.github.kristofa.brave.ClientTracer
-
- setCurrentClientSpan(Span) - Method in interface com.github.kristofa.brave.ClientSpanState
-
Sets current client span.
- setCurrentClientSpan(Span) - Method in class com.github.kristofa.brave.ThreadLocalServerClientAndLocalSpanState
-
Sets current client span.
- setCurrentLocalSpan(Span) - Method in interface com.github.kristofa.brave.LocalSpanState
-
Sets current local span.
- setCurrentLocalSpan(Span) - Method in class com.github.kristofa.brave.ThreadLocalServerClientAndLocalSpanState
-
- setCurrentServerSpan(ServerSpan) - Method in interface com.github.kristofa.brave.ServerSpanState
-
Set span for current request.
- setCurrentServerSpan(ServerSpan) - Method in class com.github.kristofa.brave.ThreadLocalServerClientAndLocalSpanState
-
Set span for current request.
- setCurrentSpan(Span) - Method in class com.github.kristofa.brave.ClientSpanThreadBinder
-
Binds given span to current thread.
- setCurrentSpan(ServerSpan) - Method in class com.github.kristofa.brave.ServerSpanThreadBinder
-
Binds given span to current thread.
- setDebug(Boolean) - Method in class com.twitter.zipkin.gen.Span
-
- setDuration(Long) - Method in class com.twitter.zipkin.gen.Span
-
Measurement of duration in microseconds, used to support queries.
- setId(long) - Method in class com.twitter.zipkin.gen.Span
-
- setName(String) - Method in class com.twitter.zipkin.gen.Span
-
Span name in lowercase, rpc method for example
Conventionally, when the span name isn't known, name = "unknown".
- setParent_id(Long) - Method in class com.twitter.zipkin.gen.Span
-
- setServerReceived() - Method in class com.github.kristofa.brave.ServerTracer
-
Sets server received event for current request.
- setServerReceived(int, int, String) - Method in class com.github.kristofa.brave.ServerTracer
-
- setServerSend() - Method in class com.github.kristofa.brave.ServerTracer
-
Sets the server sent event for current thread.
- setStateCurrentTrace(long, long, Long, String) - Method in class com.github.kristofa.brave.ServerTracer
-
Sets the current Trace/Span state.
- setStateNoTracing() - Method in class com.github.kristofa.brave.ServerTracer
-
Sets the current Trace/Span state.
- setStateUnknown(String) - Method in class com.github.kristofa.brave.ServerTracer
-
Sets the current Trace/Span state.
- setTimestamp(Long) - Method in class com.twitter.zipkin.gen.Span
-
Microseconds from epoch of the creation of this span.
- setTrace_id(long) - Method in class com.twitter.zipkin.gen.Span
-
- shutdown() - Method in class com.github.kristofa.brave.BraveExecutorService
- shutdownNow() - Method in class com.github.kristofa.brave.BraveExecutorService
- span() - Method in class com.github.kristofa.brave.SpanAndEndpoint.ClientSpanAndEndpoint
-
Gets the span to which to add annotations.
- span() - Method in class com.github.kristofa.brave.SpanAndEndpoint.LocalSpanAndEndpoint
-
- span() - Method in class com.github.kristofa.brave.SpanAndEndpoint.ServerSpanAndEndpoint
-
Gets the span to which to add annotations.
- span() - Method in interface com.github.kristofa.brave.SpanAndEndpoint
-
Gets the span to which to add annotations.
- Span - Class in com.twitter.zipkin.gen
-
A trace is a series of spans (often RPC calls) which form a latency tree.
- Span() - Constructor for class com.twitter.zipkin.gen.Span
-
- SpanAndEndpoint - Interface in com.github.kristofa.brave
-
- SpanAndEndpoint.ClientSpanAndEndpoint - Class in com.github.kristofa.brave
-
- SpanAndEndpoint.LocalSpanAndEndpoint - Class in com.github.kristofa.brave
-
- SpanAndEndpoint.ServerSpanAndEndpoint - Class in com.github.kristofa.brave
-
- SpanAndEndpoint.StaticSpanAndEndpoint - Class in com.github.kristofa.brave
-
Span and endpoint never change reference.
- SpanCodec - Interface in com.twitter.zipkin.gen
-
- spanCollector(SpanCollector) - Method in class com.github.kristofa.brave.Brave.Builder
-
- spanCollector(SpanCollector) - Method in class com.github.kristofa.brave.ClientTracer.Builder
-
- spanCollector(SpanCollector) - Method in class com.github.kristofa.brave.ServerTracer.Builder
-
- SpanCollector - Interface in com.github.kristofa.brave
-
- SpanCollectorMetricsHandler - Interface in com.github.kristofa.brave
-
Monitor
SpanCollector by implementing reactions to these events, e.g.
- SpanId - Class in com.github.kristofa.brave
-
Contains trace data that's propagated in-band across requests, sometimes known as Baggage.
- SpanId(long, long, long, long) - Constructor for class com.github.kristofa.brave.SpanId
-
- spanId(long) - Method in class com.github.kristofa.brave.SpanId.Builder
-
- spanId - Variable in class com.github.kristofa.brave.SpanId
-
Unique 8-byte identifier of this span within a trace.
- spanId(SpanId) - Method in interface com.github.kristofa.brave.TraceData.Builder
-
- SpanId.Builder - Class in com.github.kristofa.brave
-
- startNewSpan(String) - Method in class com.github.kristofa.brave.ClientTracer
-
Start a new span for a new client request that will be bound to current thread.
- startNewSpan(String, String) - Method in class com.github.kristofa.brave.LocalTracer
-
Request a new local span, which starts now.
- startNewSpan(String, String, long) - Method in class com.github.kristofa.brave.LocalTracer
-
Request a new local span, which started at the given timestamp.
- startTick - Variable in class com.twitter.zipkin.gen.Span
-
- state(ServerClientAndLocalSpanState) - Method in class com.github.kristofa.brave.ClientTracer.Builder
-
- state(ServerSpanState) - Method in class com.github.kristofa.brave.ServerTracer.Builder
-
- StaticSpanAndEndpoint() - Constructor for class com.github.kristofa.brave.SpanAndEndpoint.StaticSpanAndEndpoint
-
- submit(Callable<T>) - Method in class com.github.kristofa.brave.BraveExecutorService
- submit(Runnable) - Method in class com.github.kristofa.brave.BraveExecutorService
- submit(Runnable, T) - Method in class com.github.kristofa.brave.BraveExecutorService
- submitAnnotation(String) - Method in class com.github.kristofa.brave.AnnotationSubmitter
-
Associates an event that explains latency with the current system time.
- submitAnnotation(String, long) - Method in class com.github.kristofa.brave.AnnotationSubmitter
-
Associates an event that explains latency with a timestamp.
- submitBinaryAnnotation(String, String) - Method in class com.github.kristofa.brave.AnnotationSubmitter
-
Binary annotations are tags applied to a Span to give it context.
- submitBinaryAnnotation(String, int) - Method in class com.github.kristofa.brave.AnnotationSubmitter
-
Submits a binary (key/value) annotation with int value.