Uses of Class
com.azure.core.util.Context
-
Packages that use Context Package Description com.azure.core.http Package containing HTTP abstractions between the AnnotationParser, RestProxy, and HTTP client.com.azure.core.http.policy Package containing HttpPipelinePolicy interface and its implementations.com.azure.core.http.rest Package containing REST-related APIs.com.azure.core.util Package containing core utility classes.com.azure.core.util.tracing Package containing API for tracing. -
-
Uses of Context in com.azure.core.http
Methods in com.azure.core.http with parameters of type Context Modifier and Type Method Description default Mono<HttpResponse>
HttpClient. send(HttpRequest request, Context context)
Sends the provided request asynchronously with contextual information.Mono<HttpResponse>
HttpPipeline. send(HttpRequest request, Context data)
Wraps the request in a context with additional metadata and sends it through the pipeline. -
Uses of Context in com.azure.core.http.policy
Methods in com.azure.core.http.policy that return Context Modifier and Type Method Description Context
HttpRequestLoggingContext. getContext()
Gets the contextual information about the HTTP request.Context
HttpResponseLoggingContext. getContext()
Gets the contextual information about the HTTP response. -
Uses of Context in com.azure.core.http.rest
Methods in com.azure.core.http.rest with parameters of type Context Modifier and Type Method Description Mono<HttpResponse>
RestProxy. send(HttpRequest request, Context contextData)
Send the provided request asynchronously, applying any request policies provided to the HttpClient instance. -
Uses of Context in com.azure.core.util
Fields in com.azure.core.util declared as Context Modifier and Type Field Description static Context
Context. NONE
Signifies that no data needs to be passed to the pipeline.Methods in com.azure.core.util that return Context Modifier and Type Method Description Context
Context. addData(Object key, Object value)
static Context
Context. of(Map<Object,Object> keyValues)
Methods in com.azure.core.util with parameters of type Context Modifier and Type Method Description static <T> org.reactivestreams.Publisher<T>
CoreUtils. extractAndFetch(PagedResponse<T> page, Context context, BiFunction<String,Context,org.reactivestreams.Publisher<T>> content)
Deprecated.Use localized implementation.static Context
FluxUtil. toReactorContext(Context context)
Converts an Azure context to Reactor context.Method parameters in com.azure.core.util with type arguments of type Context Modifier and Type Method Description static <T> org.reactivestreams.Publisher<T>
CoreUtils. extractAndFetch(PagedResponse<T> page, Context context, BiFunction<String,Context,org.reactivestreams.Publisher<T>> content)
Deprecated.Use localized implementation.static <T> Flux<T>
FluxUtil. fluxContext(Function<Context,Flux<T>> serviceCall)
This method converts the incomingdeferContextual
fromReactor Context
toAzure Context
and calls the given lambda function with this context and returns a collection of typeT
static <T> Mono<T>
FluxUtil. withContext(Function<Context,Mono<T>> serviceCall)
This method converts the incomingdeferContextual
fromReactor Context
toAzure Context
and calls the given lambda function with this context and returns a single entity of typeT
static <T> Mono<T>
FluxUtil. withContext(Function<Context,Mono<T>> serviceCall, Map<String,String> contextAttributes)
This method converts the incomingdeferContextual
fromReactor Context
toAzure Context
, adds the specified context attributes and calls the given lambda function with this context and returns a single entity of typeT
-
Uses of Context in com.azure.core.util.tracing
Methods in com.azure.core.util.tracing that return Context Modifier and Type Method Description Context
Tracer. extractContext(String diagnosticId, Context context)
Extracts the span's context asContext
from upstream.default Context
Tracer. getSharedSpanBuilder(String spanName, Context context)
Returns a span builder with the provided name inContext
.Context
Tracer. setSpanName(String spanName, Context context)
Sets the name for spans that are created.static Context
TracerProxy. setSpanName(String spanName, Context context)
Sets the span name for eachtracer
plugged into the SDK.Context
Tracer. start(String methodName, Context context)
Creates a new tracing span.Context
Tracer. start(String methodName, Context context, ProcessKind processKind)
Creates a new tracing span for AMQP calls.default Context
Tracer. start(String methodName, StartSpanOptions options, Context context)
Creates a new tracing span.static Context
TracerProxy. start(String methodName, Context context)
A new tracing span with INTERNAL kind is created for eachtracer
plugged into the SDK.static Context
TracerProxy. start(String methodName, StartSpanOptions spanOptions, Context context)
A new tracing span is created for eachtracer
plugged into the SDK.Methods in com.azure.core.util.tracing with parameters of type Context Modifier and Type Method Description default void
Tracer. addEvent(String name, Map<String,Object> attributes, OffsetDateTime timestamp, Context context)
Adds an event to the span present in theContext
with the providedtimestamp
andattributes
.void
Tracer. addLink(Context context)
Provides a way to link multiple tracing spans.void
Tracer. end(int responseCode, Throwable error, Context context)
Completes the current tracing span.void
Tracer. end(String statusMessage, Throwable error, Context context)
Completes the current tracing span for AMQP calls.static void
TracerProxy. end(int responseCode, Throwable error, Context context)
For the plugged intracer
, its current tracing span is marked as completed.Context
Tracer. extractContext(String diagnosticId, Context context)
Extracts the span's context asContext
from upstream.default Context
Tracer. getSharedSpanBuilder(String spanName, Context context)
Returns a span builder with the provided name inContext
.default AutoCloseable
Tracer. makeSpanCurrent(Context context)
Makes span current.void
Tracer. setAttribute(String key, String value, Context context)
Adds metadata to the current span.static void
TracerProxy. setAttribute(String key, String value, Context context)
For the plugged intracer
, the key-value pair metadata is added to its current span.Context
Tracer. setSpanName(String spanName, Context context)
Sets the name for spans that are created.static Context
TracerProxy. setSpanName(String spanName, Context context)
Sets the span name for eachtracer
plugged into the SDK.Context
Tracer. start(String methodName, Context context)
Creates a new tracing span.Context
Tracer. start(String methodName, Context context, ProcessKind processKind)
Creates a new tracing span for AMQP calls.default Context
Tracer. start(String methodName, StartSpanOptions options, Context context)
Creates a new tracing span.static Context
TracerProxy. start(String methodName, Context context)
A new tracing span with INTERNAL kind is created for eachtracer
plugged into the SDK.static Context
TracerProxy. start(String methodName, StartSpanOptions spanOptions, Context context)
A new tracing span is created for eachtracer
plugged into the SDK.
-