Package brave.cassandra.driver
Class CassandraClientTracing
- java.lang.Object
-
- brave.cassandra.driver.CassandraClientTracing
-
public final class CassandraClientTracing extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCassandraClientTracing.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CassandraClientTracingclientOf(java.lang.String remoteServiceName)Scopes this component for a client of the indicated server.static CassandraClientTracingcreate(brave.Tracing tracing)static CassandraClientTracing.BuildernewBuilder(brave.Tracing tracing)CassandraClientParserparser()booleanpropagationEnabled()When true, trace contexts will be propagated downstream based on theconfigured implementation.java.lang.StringremoteServiceName()Used by cassandra clients to indicate the name of the destination service.CassandraClientSamplersampler()Returns an overriding sampling decision for a new trace.CassandraClientTracing.BuildertoBuilder()brave.Tracingtracing()
-
-
-
Method Detail
-
create
public static CassandraClientTracing create(brave.Tracing tracing)
-
newBuilder
public static CassandraClientTracing.Builder newBuilder(brave.Tracing tracing)
-
toBuilder
public CassandraClientTracing.Builder toBuilder()
-
tracing
public brave.Tracing tracing()
-
parser
public CassandraClientParser parser()
-
remoteServiceName
@Nullable public java.lang.String remoteServiceName()
Used by cassandra clients to indicate the name of the destination service. Defaults to the cluster name.As this is endpoint-specific, it is typical to create a scoped instance of CassandraClientTracing to assign this value.
For example:
production = TracingSession.create(httpTracing.remoteServiceName("production"));- See Also:
Span.remoteEndpoint(zipkin2.Endpoint)
-
clientOf
public CassandraClientTracing clientOf(java.lang.String remoteServiceName)
Scopes this component for a client of the indicated server.- See Also:
remoteServiceName()
-
propagationEnabled
public boolean propagationEnabled()
When true, trace contexts will be propagated downstream based on theconfigured implementation.Warning: sometimes this can cause connection failures. As such, consider this feature experimental.
-
sampler
public CassandraClientSampler sampler()
Returns an overriding sampling decision for a new trace. Defaults to ignore the request and use thetrace ID instead.
-
-