Deprecated API
Contents
-
Deprecated Classes
-
Deprecated Enums
-
Deprecated Annotation TypesAnnotation TypeDescriptionThis interface is no longer used, or respected, in code.
-
Deprecated FieldsFieldDescriptionPass Azure Resource Provider Namespace to Tracer factory method
TracerProvider.createTracer(String, String, String, TracingOptions)useTracer.extractContext(Function)andTracer.injectContext(BiConsumer, Context)for context propagation.UseStartSpanOptions.addLink(TracingLink)and pass enqueued time as an attribute on link.Deprecated in favor of PARENT_TRACE_CONTEXT_KEY, use it to propagate full io.opentelemetry.ContextuseTracer.makeSpanCurrent(Context)instead.useStartSpanOptions.addLink(TracingLink)insteadplease pass span name to Tracer.start methods.
-
Deprecated MethodsMethodDescriptionUse
HttpHeaders.add(HttpHeaderName, String)as it provides better performance.UseHttpHeaders.get(HttpHeaderName)as it provides better performance.UseHttpHeaders.getValue(HttpHeaderName)as it provides better performance.UseHttpHeaders.getValue(HttpHeaderName)as it provides better performance.UseHttpHeaders.set(HttpHeaderName, String)instead.UseHttpHeaders.remove(HttpHeaderName)as it provides better performance.UseHttpHeaders.set(HttpHeaderName, String)as it provides better performance.UseHttpHeaders.set(HttpHeaderName, List)as it provides better performance.UseHttpRequest.setHeader(HttpHeaderName, String)instead as is offers better performance.UseHttpResponse.getHeaderValue(HttpHeaderName)as it provides better performance.UseHttpLogOptions.getAllowedHttpHeaderNames()instead.UseClientOptionsto configureapplicationId.UseHttpLogOptions.setRequestLogger(HttpRequestLogger)andHttpLogOptions.setResponseLogger(HttpResponseLogger)to configure how requests and responses should be logged at a granular level instead.UseHttpLogOptions.setAllowedHttpHeaderNames(Set)instead.UseClientOptionsto configureapplicationId.UseHttpLogOptions.setRequestLogger(HttpRequestLogger)andHttpLogOptions.setResponseLogger(HttpResponseLogger)to configure how requests and responses should be logged at a granular level instead.refer the decoration samples forPagedFlux.create(Supplier).UseRequestOptions.addHeader(HttpHeaderName, String)as it provides better performance.UseRequestOptions.setHeader(HttpHeaderName, String)as it provides better performance.UseConfigurationBuilderandConfigurationSourceto create configuration.UseConfigurationBuilderandConfigurationSourceto provide all properties before creating configuration.UseConfigurationBuilderandConfigurationSourceto provide all properties before creating configuration.Use localized implementation.UseClientLogger.logThrowableAsWarning(Throwable)instead.deprecated to avoid directObjectMapperusage in favor of using more resilient and debuggableJacksonAdapterAPIs.deprecated, useJacksonAdapter(BiConsumer<ObjectMapper, ObjectMapper>)constructor to configure modules.set specific attribute e.g. http_status_code explicitly and useTracer.end(String, Throwable, Context).useStartSpanOptions.addLink(TracingLink)insteadnot needed.useTracer.start(String, StartSpanOptions, Context)instead.
-
Deprecated ConstructorsConstructorDescriptionUse one of the constants or the
HttpHeaderName.fromString(String)factory method.Use one of the constants or theAzureCloud.fromString(String)factory method.Use one of the constants or theCloudEventDataFormat.fromString(String)factory method.Use one of the constants or theGeoObjectType.fromString(String)factory method.UseConfigurationBuilderandConfigurationSourcethat allow to provide all properties before creating configuration and keep it immutable.Use theExpandableStringEnum.fromString(String, Class)factory method.Use one of the constants or theLongRunningOperationStatus.fromString(String, boolean)factory method.This API will be removed in the future. Please useJacksonAdapter.createDefaultSerializerAdapter()if you need to use JacksonAdapter.