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.
|
Modifier and Type | Method and Description |
---|---|
Mono<HttpResponse> |
HttpPipeline.send(HttpRequest request,
Context data)
Wraps the request in a context with additional metadata and sends it through the pipeline.
|
default Mono<HttpResponse> |
HttpClient.send(HttpRequest request,
Context context)
Sends the provided request asynchronously with contextual information.
|
Modifier and Type | Method and Description |
---|---|
Context |
HttpRequestLoggingContext.getContext()
Gets the contextual information about the HTTP request.
|
Context |
HttpResponseLoggingContext.getContext()
Gets the contextual information about the HTTP response.
|
Modifier and Type | Method and Description |
---|---|
Mono<HttpResponse> |
RestProxy.send(HttpRequest request,
Context contextData)
Send the provided request asynchronously, applying any request policies provided to the HttpClient instance.
|
Modifier and Type | Field and Description |
---|---|
static Context |
Context.NONE
Signifies that no data needs to be passed to the pipeline.
|
Modifier and Type | Method and Description |
---|---|
Context |
Context.addData(Object key,
Object value)
|
static Context |
Context.of(Map<Object,Object> keyValues)
|
Modifier and Type | Method and Description |
---|---|
static <T> org.reactivestreams.Publisher<T> |
CoreUtils.extractAndFetch(PagedResponse<T> page,
Context context,
BiFunction<String,Context,org.reactivestreams.Publisher<T>> content)
Extracts and combines the generic items from all the pages linked together.
|
static Context |
FluxUtil.toReactorContext(Context context)
Converts an Azure context to Reactor context.
|
Modifier and Type | Method and Description |
---|---|
Context |
Tracer.extractContext(String diagnosticId,
Context context)
Extracts the span's context as
Context from upstream. |
default Context |
Tracer.getSharedSpanBuilder(String spanName,
Context context)
Returns a span builder with the provided name in
Context . |
static Context |
TracerProxy.setSpanName(String spanName,
Context context)
Sets the span name for each
tracer plugged into the SDK. |
Context |
Tracer.setSpanName(String spanName,
Context context)
Sets the name for spans that are created.
|
static Context |
TracerProxy.start(String methodName,
Context context)
A new tracing span with INTERNAL kind is created for each
tracer 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.
|
static Context |
TracerProxy.start(String methodName,
StartSpanOptions spanOptions,
Context context)
A new tracing span is created for each
tracer plugged into the SDK. |
default Context |
Tracer.start(String methodName,
StartSpanOptions options,
Context context)
Creates a new tracing span.
|
Modifier and Type | Method and Description |
---|---|
default void |
Tracer.addEvent(String name,
Map<String,Object> attributes,
OffsetDateTime timestamp,
Context context)
Adds an event to the span present in the
Context with the provided timestamp
and attributes . |
void |
Tracer.addLink(Context context)
Provides a way to link multiple tracing spans.
|
static void |
TracerProxy.end(int responseCode,
Throwable error,
Context context)
For the plugged in
tracer , its current tracing span is marked as completed. |
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.
|
Context |
Tracer.extractContext(String diagnosticId,
Context context)
Extracts the span's context as
Context from upstream. |
default Context |
Tracer.getSharedSpanBuilder(String spanName,
Context context)
Returns a span builder with the provided name in
Context . |
default AutoCloseable |
Tracer.makeSpanCurrent(Context context)
Makes span current.
|
static void |
TracerProxy.setAttribute(String key,
String value,
Context context)
For the plugged in
tracer , the key-value pair metadata is added to its current span. |
void |
Tracer.setAttribute(String key,
String value,
Context context)
Adds metadata to the current span.
|
static Context |
TracerProxy.setSpanName(String spanName,
Context context)
Sets the span name for each
tracer plugged into the SDK. |
Context |
Tracer.setSpanName(String spanName,
Context context)
Sets the name for spans that are created.
|
static Context |
TracerProxy.start(String methodName,
Context context)
A new tracing span with INTERNAL kind is created for each
tracer 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.
|
static Context |
TracerProxy.start(String methodName,
StartSpanOptions spanOptions,
Context context)
A new tracing span is created for each
tracer plugged into the SDK. |
default Context |
Tracer.start(String methodName,
StartSpanOptions options,
Context context)
Creates a new tracing span.
|
Copyright © 2021 Microsoft Corporation. All rights reserved.