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 ContextHttpRequestLoggingContext. getContext()Gets the contextual information about the HTTP request.ContextHttpResponseLoggingContext. 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.RequestOptionsRequestOptions. setContext(Context context)Sets the additional context on the request that is passed during the service call. -
Uses of Context in com.azure.core.util
Fields in com.azure.core.util declared as Context Modifier and Type Field Description static ContextContext. NONESignifies that no data needs to be passed to the pipeline.Methods in com.azure.core.util that return Context Modifier and Type Method Description ContextContext. addData(Object key, Object value)static ContextCoreUtils. mergeContexts(Context into, Context from)static ContextContext. 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 ContextCoreUtils. mergeContexts(Context into, Context from)static ContextFluxUtil. 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 incomingdeferContextualfromReactor ContexttoAzure Contextand calls the given lambda function with this context and returns a collection of typeTstatic <T> Mono<T>FluxUtil. withContext(Function<Context,Mono<T>> serviceCall)This method converts the incomingdeferContextualfromReactor ContexttoAzure Contextand calls the given lambda function with this context and returns a single entity of typeTstatic <T> Mono<T>FluxUtil. withContext(Function<Context,Mono<T>> serviceCall, Map<String,String> contextAttributes)This method converts the incomingdeferContextualfromReactor ContexttoAzure 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 ContextTracer. extractContext(String diagnosticId, Context context)Extracts the span's context asContextfrom upstream.default ContextTracer. getSharedSpanBuilder(String spanName, Context context)Returns a span builder with the provided name inContext.ContextTracer. setSpanName(String spanName, Context context)Sets the name for spans that are created.static ContextTracerProxy. setSpanName(String spanName, Context context)Sets the span name for eachtracerplugged into the SDK.ContextTracer. start(String methodName, Context context)Creates a new tracing span.ContextTracer. start(String methodName, Context context, ProcessKind processKind)Creates a new tracing span for AMQP calls.default ContextTracer. start(String methodName, StartSpanOptions options, Context context)Creates a new tracing span.static ContextTracerProxy. start(String methodName, Context context)A new tracing span with INTERNAL kind is created for eachtracerplugged into the SDK.static ContextTracerProxy. start(String methodName, StartSpanOptions spanOptions, Context context)A new tracing span is created for eachtracerplugged into the SDK.Methods in com.azure.core.util.tracing with parameters of type Context Modifier and Type Method Description default voidTracer. addEvent(String name, Map<String,Object> attributes, OffsetDateTime timestamp, Context context)Adds an event to the span present in theContextwith the providedtimestampandattributes.voidTracer. addLink(Context context)Provides a way to link multiple tracing spans.voidTracer. end(int responseCode, Throwable error, Context context)Completes the current tracing span.voidTracer. end(String statusMessage, Throwable error, Context context)Completes the current tracing span for AMQP calls.static voidTracerProxy. end(int responseCode, Throwable error, Context context)For the plugged intracer, its current tracing span is marked as completed.ContextTracer. extractContext(String diagnosticId, Context context)Extracts the span's context asContextfrom upstream.default ContextTracer. getSharedSpanBuilder(String spanName, Context context)Returns a span builder with the provided name inContext.default AutoCloseableTracer. makeSpanCurrent(Context context)Makes span current.voidTracer. setAttribute(String key, String value, Context context)Adds metadata to the current span.static voidTracerProxy. setAttribute(String key, String value, Context context)For the plugged intracer, the key-value pair metadata is added to its current span.ContextTracer. setSpanName(String spanName, Context context)Sets the name for spans that are created.static ContextTracerProxy. setSpanName(String spanName, Context context)Sets the span name for eachtracerplugged into the SDK.ContextTracer. start(String methodName, Context context)Creates a new tracing span.ContextTracer. start(String methodName, Context context, ProcessKind processKind)Creates a new tracing span for AMQP calls.default ContextTracer. start(String methodName, StartSpanOptions options, Context context)Creates a new tracing span.static ContextTracerProxy. start(String methodName, Context context)A new tracing span with INTERNAL kind is created for eachtracerplugged into the SDK.static ContextTracerProxy. start(String methodName, StartSpanOptions spanOptions, Context context)A new tracing span is created for eachtracerplugged into the SDK.
-