Uses of Interface
com.couchbase.client.core.cnc.RequestSpan
Packages that use RequestSpan
Package
Description
-
Uses of RequestSpan in com.couchbase.client.core.cnc
Methods in com.couchbase.client.core.cnc that return RequestSpanModifier and TypeMethodDescriptionstatic RequestSpan
CbTracing.newSpan
(RequestTracer tracer, String spanName, RequestSpan parent) Deprecated.static RequestSpan
CbTracing.newSpan
(CoreContext coreContext, String spanName, RequestSpan parent) Returns a new span with the `db.system` attribute set to `couchbase`.RequestTracer.requestSpan
(String name, RequestSpan parent) Creates a new request span with or without a parent.Methods in com.couchbase.client.core.cnc with parameters of type RequestSpanModifier and TypeMethodDescriptionstatic boolean
CbTracing.isInternalSpan
(RequestSpan span) Returns true if the span is an internal one (noop or threshold) so that particular optimizations can be applied.static RequestSpan
CbTracing.newSpan
(RequestTracer tracer, String spanName, RequestSpan parent) Deprecated.In favor ofRequestTracer.requestSpan(String, RequestSpan)
, which now always sets the `db.system` attribute.static RequestSpan
CbTracing.newSpan
(CoreContext coreContext, String spanName, RequestSpan parent) Returns a new span with the `db.system` attribute set to `couchbase`.RequestTracer.requestSpan
(String name, RequestSpan parent) Creates a new request span with or without a parent.static void
CbTracing.setAttributes
(RequestSpan span, Map<String, ?> attributes) -
Uses of RequestSpan in com.couchbase.client.core.cnc.tracing
Classes in com.couchbase.client.core.cnc.tracing that implement RequestSpanModifier and TypeClassDescriptionclass
A NOOP implementation of a request span, utilized by theNoopRequestTracer
.class
Methods in com.couchbase.client.core.cnc.tracing that return RequestSpanModifier and TypeMethodDescriptionNoopRequestTracer.requestSpan
(String operationName, RequestSpan parent) ThresholdLoggingTracer.requestSpan
(String name, RequestSpan parent) Methods in com.couchbase.client.core.cnc.tracing with parameters of type RequestSpanModifier and TypeMethodDescriptionNoopRequestTracer.requestSpan
(String operationName, RequestSpan parent) ThresholdLoggingTracer.requestSpan
(String name, RequestSpan parent) -
Uses of RequestSpan in com.couchbase.client.core.endpoint.http
Methods in com.couchbase.client.core.endpoint.http that return types with arguments of type RequestSpanMethods in com.couchbase.client.core.endpoint.http with parameters of type RequestSpanModifier and TypeMethodDescriptionstatic CoreCommonOptions
CoreCommonOptions.of
(Duration timeout, RetryStrategy retryStrategy, RequestSpan parentSpan) default CoreCommonOptions
CoreCommonOptions.withParentSpan
(RequestSpan span) Method parameters in com.couchbase.client.core.endpoint.http with type arguments of type RequestSpanModifier and TypeMethodDescriptionCoreHttpRequest.Builder.trace
(String spanName, Consumer<RequestSpan> attributeSetter) -
Uses of RequestSpan in com.couchbase.client.core.io.netty
Methods in com.couchbase.client.core.io.netty with parameters of type RequestSpanModifier and TypeMethodDescriptionstatic void
TracingUtils.setCommonDispatchSpanAttributes
(RequestSpan span, String localId, String localHost, int localPort, String remoteHost, int remotePort, String operationId) Sets common dispatch span attributes as per spec.static void
TracingUtils.setCommonKVSpanAttributes
(RequestSpan span, KeyValueRequest<Response> request) Sets attributes that are usefully duplicated across multiple spans.static void
TracingUtils.setNumericOperationId
(RequestSpan span, long operationId) Sets the operation ID as a numeric value.static void
TracingUtils.setServerDurationAttribute
(RequestSpan span, long serverDuration) Sets the server duration attribute, if larger than 0 (will ignore it otherwise). -
Uses of RequestSpan in com.couchbase.client.core.msg
Methods in com.couchbase.client.core.msg that return RequestSpanModifier and TypeMethodDescriptionBaseRequest.requestSpan()
Request.requestSpan()
Holds the internal span for this request.Constructors in com.couchbase.client.core.msg with parameters of type RequestSpanModifierConstructorDescriptionBaseRequest
(Duration timeout, CoreContext ctx, RetryStrategy retryStrategy, RequestSpan requestSpan) Creates a basic request that has all the required properties to be executed in general. -
Uses of RequestSpan in com.couchbase.client.core.msg.analytics
Constructors in com.couchbase.client.core.msg.analytics with parameters of type RequestSpanModifierConstructorDescriptionAnalyticsRequest
(Duration timeout, CoreContext ctx, RetryStrategy retryStrategy, Authenticator authenticator, byte[] query, int priority, boolean idempotent, String contextId, String statement, RequestSpan span, String bucket, String scope) AnalyticsRequest
(Duration timeout, CoreContext ctx, RetryStrategy retryStrategy, Authenticator authenticator, byte[] query, int priority, boolean idempotent, String contextId, String statement, RequestSpan span, String bucket, String scope, boolean translateExceptions, int apiVersion) -
Uses of RequestSpan in com.couchbase.client.core.msg.kv
Methods in com.couchbase.client.core.msg.kv with parameters of type RequestSpanModifier and TypeMethodDescriptiondefault void
SyncDurabilityRequest.applyLevelOnSpan
(Optional<DurabilityLevel> level, RequestSpan span) Helper method to apply the durability level if present to the request span.static ReplicaSubdocGetRequest
ReplicaSubdocGetRequest.create
(Duration timeout, CoreContext ctx, CollectionIdentifier collectionIdentifier, RetryStrategy retryStrategy, String key, byte flags, List<CoreSubdocGetCommand> commands, short replica, RequestSpan span) static SubdocGetRequest
SubdocGetRequest.create
(Duration timeout, CoreContext ctx, CollectionIdentifier collectionIdentifier, RetryStrategy retryStrategy, String key, byte flags, List<CoreSubdocGetCommand> commands, RequestSpan span) Constructors in com.couchbase.client.core.msg.kv with parameters of type RequestSpanModifierConstructorDescriptionAppendRequest
(Duration timeout, CoreContext ctx, CollectionIdentifier collectionIdentifier, RetryStrategy retryStrategy, String key, byte[] content, long cas, Optional<DurabilityLevel> syncReplicationType, RequestSpan span) protected
BaseKeyValueRequest
(Duration timeout, CoreContext ctx, RetryStrategy retryStrategy, String key, CollectionIdentifier collectionIdentifier, RequestSpan span) DecrementRequest
(Duration timeout, CoreContext ctx, CollectionIdentifier collectionIdentifier, RetryStrategy retryStrategy, String key, long delta, Optional<Long> initial, long expiry, Optional<DurabilityLevel> syncReplicationType, RequestSpan span) GetAndLockRequest
(String key, Duration timeout, CoreContext ctx, CollectionIdentifier collectionIdentifier, RetryStrategy retryStrategy, Duration lockFor, RequestSpan span) GetAndTouchRequest
(String key, Duration timeout, CoreContext ctx, CollectionIdentifier collectionIdentifier, RetryStrategy retryStrategy, long expiration, RequestSpan span) GetMetaRequest
(String key, Duration timeout, CoreContext ctx, CollectionIdentifier collectionIdentifier, RetryStrategy retryStrategy, RequestSpan span) GetRequest
(String key, Duration timeout, CoreContext ctx, CollectionIdentifier collectionIdentifier, RetryStrategy retryStrategy, RequestSpan span) IncrementRequest
(Duration timeout, CoreContext ctx, CollectionIdentifier collectionIdentifier, RetryStrategy retryStrategy, String key, long delta, Optional<Long> initial, long expiration, Optional<DurabilityLevel> syncReplicationType, RequestSpan span) InsertRequest
(String key, byte[] content, long expiration, int flags, Duration timeout, CoreContext ctx, CollectionIdentifier collectionIdentifier, RetryStrategy retryStrategy, Optional<DurabilityLevel> syncReplicationType, RequestSpan span) ObserveViaSeqnoRequest
(Duration timeout, CoreContext ctx, CollectionIdentifier collectionIdentifier, RetryStrategy retryStrategy, int replica, boolean active, long vbucketUUID, String key, RequestSpan span) PredeterminedPartitionRequest
(short partition, Duration timeout, CoreContext ctx, RetryStrategy retryStrategy, String key, CollectionIdentifier collectionIdentifier, RequestSpan span) PrependRequest
(Duration timeout, CoreContext ctx, CollectionIdentifier collectionIdentifier, RetryStrategy retryStrategy, String key, byte[] content, long cas, Optional<DurabilityLevel> syncReplicationType, RequestSpan span) RemoveRequest
(String key, long cas, Duration timeout, CoreContext ctx, CollectionIdentifier collectionIdentifier, RetryStrategy retryStrategy, Optional<DurabilityLevel> syncReplicationType, RequestSpan span) ReplaceRequest
(String key, byte[] content, long expiration, boolean preserveExpiry, int flags, Duration timeout, long cas, CoreContext ctx, CollectionIdentifier collectionIdentifier, RetryStrategy retryStrategy, Optional<DurabilityLevel> syncReplicationType, RequestSpan span) ReplicaGetRequest
(String key, Duration timeout, CoreContext ctx, CollectionIdentifier collectionIdentifier, RetryStrategy retryStrategy, short replica, RequestSpan span) SubdocGetRequest
(Duration timeout, CoreContext ctx, CollectionIdentifier collectionIdentifier, RetryStrategy retryStrategy, String key, byte flags, List<SubdocGetRequest.Command> commands, RequestSpan span) SubdocMutateRequest
(Duration timeout, CoreContext ctx, CollectionIdentifier collectionIdentifier, BucketConfig bucketConfig, RetryStrategy retryStrategy, String key, boolean insertDocument, boolean upsertDocument, boolean reviveDocument, boolean accessDeleted, boolean createAsDeleted, List<SubdocMutateRequest.Command> commands, long expiration, boolean preserveExpiry, long cas, int userFlags, Optional<DurabilityLevel> syncReplicationType, RequestSpan span) Deprecated.Please use the other constructor instead.SubdocMutateRequest
(Duration timeout, CoreContext ctx, CollectionIdentifier collectionIdentifier, BucketConfig bucketConfig, RetryStrategy retryStrategy, String key, CoreStoreSemantics storeSemantics, boolean accessDeleted, boolean createAsDeleted, List<CoreSubdocMutateCommand> commands, long expiration, boolean preserveExpiry, long cas, Optional<DurabilityLevel> syncReplicationType, RequestSpan span) TouchRequest
(Duration timeout, CoreContext ctx, CollectionIdentifier collectionIdentifier, RetryStrategy retryStrategy, String key, long expiry, RequestSpan span) UnlockRequest
(Duration timeout, CoreContext ctx, CollectionIdentifier collectionIdentifier, RetryStrategy retryStrategy, String key, long cas, RequestSpan span) UpsertRequest
(String key, byte[] content, long expiration, boolean preserveExpiry, int flags, Duration timeout, CoreContext ctx, CollectionIdentifier collectionIdentifier, RetryStrategy retryStrategy, Optional<DurabilityLevel> syncReplicationType, RequestSpan span) -
Uses of RequestSpan in com.couchbase.client.core.msg.manager
Constructors in com.couchbase.client.core.msg.manager with parameters of type RequestSpanModifierConstructorDescriptionGenericManagerRequest
(CoreContext ctx, Supplier<com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpRequest> requestSupplier, boolean idempotent, RequestSpan span) Deprecated.GenericManagerRequest
(Duration timeout, CoreContext ctx, RetryStrategy retryStrategy, Supplier<com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpRequest> requestSupplier, boolean idempotent, RequestSpan span) Deprecated. -
Uses of RequestSpan in com.couchbase.client.core.msg.query
Constructors in com.couchbase.client.core.msg.query with parameters of type RequestSpanModifierConstructorDescriptionQueryRequest
(Duration timeout, CoreContext ctx, RetryStrategy retryStrategy, Authenticator authenticator, String statement, byte[] query, boolean idempotent, String contextId, RequestSpan span, String bucket, String scope, NodeIdentifier target) -
Uses of RequestSpan in com.couchbase.client.core.msg.search
Constructors in com.couchbase.client.core.msg.search with parameters of type RequestSpanModifierConstructorDescriptionServerSearchRequest
(Duration timeout, CoreContext ctx, RetryStrategy retryStrategy, Authenticator authenticator, String indexName, byte[] content, RequestSpan span, CoreBucketAndScope scope) -
Uses of RequestSpan in com.couchbase.client.core.msg.view
Constructors in com.couchbase.client.core.msg.view with parameters of type RequestSpanModifierConstructorDescriptionViewRequest
(Duration timeout, CoreContext ctx, RetryStrategy retryStrategy, Authenticator authenticator, String bucket, String design, String view, String query, Optional<byte[]> keysJson, boolean development, RequestSpan span) -
Uses of RequestSpan in com.couchbase.client.core.protostellar
Methods in com.couchbase.client.core.protostellar that return RequestSpanModifier and TypeMethodDescriptionstatic RequestSpan
CoreProtostellarUtil.createSpan
(CoreProtostellar core, String spanName, CoreDurability durability, RequestSpan parent) ProtostellarBaseRequest.requestSpan()
ProtostellarRequest.span()
Methods in com.couchbase.client.core.protostellar with parameters of type RequestSpanModifier and TypeMethodDescriptionGrpcAwareRequestTracer.activateSpan
(RequestSpan span) Puts `span` into ThreadLocalStorage, ready to be picked up by libraries that rely on that mechanism and can't be passed the span explicitly.static RequestSpan
CoreProtostellarUtil.createSpan
(CoreProtostellar core, String spanName, CoreDurability durability, RequestSpan parent) Constructors in com.couchbase.client.core.protostellar with parameters of type RequestSpanModifierConstructorDescriptionProtostellarCollectionManagerRequest
(TGrpcRequest request, CoreProtostellar core, String bucketName, String scopeName, String collectionName, String requestName, RequestSpan span, Duration timeout, boolean readonly, RetryStrategy retryStrategy, Map<String, Object> clientContext) ProtostellarKeyValueRequest
(TGrpcRequest request, CoreProtostellar core, CoreKeyspace keyspace, String key, CoreDurability durability, String requestName, RequestSpan span, Duration timeout, boolean readonly, RetryStrategy retryStrategy, Map<String, Object> clientContext, long encodeDurationNanos) ProtostellarRequest
(TGrpcRequest request, CoreProtostellar core, ServiceType serviceType, String requestName, RequestSpan span, Duration timeout, boolean readonly, RetryStrategy retryStrategy, Map<String, Object> clientContext, long encodeDurationNanos, Consumer<Map<String, Object>> contextSupplier) -
Uses of RequestSpan in com.couchbase.client.core.service.kv
Methods in com.couchbase.client.core.service.kv that return RequestSpanMethods in com.couchbase.client.core.service.kv with parameters of type RequestSpanModifier and TypeMethodDescriptionstatic <R> CompletableFuture
<List<CompletableFuture<R>>> ReplicaHelper.getAllReplicasAsync
(Core core, CollectionIdentifier collectionIdentifier, String documentId, Duration timeout, RetryStrategy retryStrategy, Map<String, Object> clientContext, RequestSpan parentSpan, CoreReadPreference readPreference, Function<ReplicaHelper.GetReplicaResponse, R> responseMapper) Reads from replicas or the active node based on the options and returns the results as a list of futures that might complete or fail.static Flux
<ReplicaHelper.GetReplicaResponse> ReplicaHelper.getAllReplicasReactive
(Core core, CollectionIdentifier collectionIdentifier, String documentId, Duration timeout, RetryStrategy retryStrategy, Map<String, Object> clientContext, RequestSpan parentSpan, CoreReadPreference readPreference) static CompletableFuture
<Stream<GetRequest>> ReplicaHelper.getAllReplicasRequests
(Core core, CollectionIdentifier collectionIdentifier, String documentId, Map<String, Object> clientContext, RetryStrategy retryStrategy, Duration timeout, RequestSpan parent, CoreReadPreference readPreference) Helper method to assemble a stream of requests to the active and all replicasstatic <R> CompletableFuture
<R> ReplicaHelper.getAnyReplicaAsync
(Core core, CollectionIdentifier collectionIdentifier, String documentId, Duration timeout, RetryStrategy retryStrategy, Map<String, Object> clientContext, RequestSpan parentSpan, CoreReadPreference readPreference, Function<ReplicaHelper.GetReplicaResponse, R> responseMapper) static <R> CompletableFuture
<List<CompletableFuture<R>>> ReplicaHelper.lookupInAllReplicasAsync
(Core core, CollectionIdentifier collectionIdentifier, String documentId, List<CoreSubdocGetCommand> commands, Duration timeout, RetryStrategy retryStrategy, Map<String, Object> clientContext, RequestSpan parentSpan, CoreReadPreference readPreference, Function<CoreSubdocGetResult, R> responseMapper) Reads from replicas or the active node based on the options and returns the results as a list of futures that might complete or fail.static Flux
<CoreSubdocGetResult> ReplicaHelper.lookupInAllReplicasReactive
(Core core, CollectionIdentifier collectionIdentifier, String documentId, List<CoreSubdocGetCommand> commands, Duration timeout, RetryStrategy retryStrategy, Map<String, Object> clientContext, RequestSpan parentSpan, CoreReadPreference readPreference) static CompletableFuture
<Stream<SubdocGetRequest>> ReplicaHelper.lookupInAllReplicasRequests
(Core core, CollectionIdentifier collectionIdentifier, String documentId, List<CoreSubdocGetCommand> commands, Map<String, Object> clientContext, RetryStrategy retryStrategy, Duration timeout, RequestSpan parent, CoreReadPreference readPreference) Helper method to assemble a stream of requests to the active and all replicasstatic <R> CompletableFuture
<R> ReplicaHelper.lookupInAnyReplicaAsync
(Core core, CollectionIdentifier collectionIdentifier, String documentId, List<CoreSubdocGetCommand> commands, Duration timeout, RetryStrategy retryStrategy, Map<String, Object> clientContext, RequestSpan parentSpan, CoreReadPreference readPreference, Function<CoreSubdocGetResult, R> responseMapper) Constructors in com.couchbase.client.core.service.kv with parameters of type RequestSpanModifierConstructorDescriptionObserveContext
(CoreContext ctx, Observe.ObservePersistTo persistTo, Observe.ObserveReplicateTo replicateTo, Optional<MutationToken> mutationToken, long cas, CollectionIdentifier collectionIdentifier, String key, boolean remove, Duration timeout, RequestSpan parentSpan) -
Uses of RequestSpan in com.couchbase.client.core.transaction
Methods in com.couchbase.client.core.transaction that return RequestSpanMethod parameters in com.couchbase.client.core.transaction with type arguments of type RequestSpanModifier and TypeMethodDescriptionCoreTransactionsReactive.query
(String statement, CoreQueryContext queryContext, CoreQueryOptions queryOptions, Optional<RequestSpan> parentSpan, Function<Throwable, RuntimeException> errorConverter) Performs a single query transaction, with a scope context and custom configuration.CoreTransactionsReactive.queryBlocking
(String statement, CoreQueryContext qc, CoreQueryOptions queryOptions, Optional<RequestSpan> parentSpan) -
Uses of RequestSpan in com.couchbase.client.core.transaction.components
Constructors in com.couchbase.client.core.transaction.components with parameters of type RequestSpanModifierConstructorDescriptionCoreTransactionRequest
(Duration timeout, CoreContext ctx, RequestSpan span) -
Uses of RequestSpan in com.couchbase.client.core.transaction.config
Methods in com.couchbase.client.core.transaction.config that return types with arguments of type RequestSpanModifier and TypeMethodDescriptionCoreMergedTransactionConfig.parentSpan()
CoreTransactionOptions.parentSpan()
Methods in com.couchbase.client.core.transaction.config with parameters of type RequestSpanModifier and TypeMethodDescriptionstatic CoreTransactionOptions
CoreTransactionOptions.create
(RequestSpan parentSpan) -
Uses of RequestSpan in com.couchbase.client.core.transaction.support
Methods in com.couchbase.client.core.transaction.support that return RequestSpanConstructors in com.couchbase.client.core.transaction.support with parameters of type RequestSpan -
Uses of RequestSpan in com.couchbase.client.core.util
Methods in com.couchbase.client.core.util with parameters of type RequestSpanModifier and TypeMethodDescriptionstatic AutoCloseable
ProtostellarUtil.activateSpan
(Optional<RequestSpan> parentSpan, RequestSpan span, RequestTracer tracer) Method parameters in com.couchbase.client.core.util with type arguments of type RequestSpanModifier and TypeMethodDescriptionstatic AutoCloseable
ProtostellarUtil.activateSpan
(Optional<RequestSpan> parentSpan, RequestSpan span, RequestTracer tracer)
RequestTracer.requestSpan(String, RequestSpan)
, which now always sets the `db.system` attribute.