Class AsyncHttpClientAdditionalAttributesExtractor
java.lang.Object
io.opentelemetry.javaagent.instrumentation.asynchttpclient.v2_0.AsyncHttpClientAdditionalAttributesExtractor
- All Implemented Interfaces:
io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<RequestContext,org.asynchttpclient.Response>
public class AsyncHttpClientAdditionalAttributesExtractor
extends Object
implements io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<RequestContext,org.asynchttpclient.Response>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonEnd(io.opentelemetry.api.common.AttributesBuilder attributes, io.opentelemetry.context.Context context, RequestContext requestContext, org.asynchttpclient.Response response, Throwable error) voidonStart(io.opentelemetry.api.common.AttributesBuilder attributes, io.opentelemetry.context.Context parentContext, RequestContext requestContext)
-
Constructor Details
-
AsyncHttpClientAdditionalAttributesExtractor
public AsyncHttpClientAdditionalAttributesExtractor()
-
-
Method Details
-
onStart
public void onStart(io.opentelemetry.api.common.AttributesBuilder attributes, io.opentelemetry.context.Context parentContext, RequestContext requestContext) - Specified by:
onStartin interfaceio.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<RequestContext,org.asynchttpclient.Response>
-
onEnd
public void onEnd(io.opentelemetry.api.common.AttributesBuilder attributes, io.opentelemetry.context.Context context, RequestContext requestContext, @Nullable org.asynchttpclient.Response response, @Nullable Throwable error) - Specified by:
onEndin interfaceio.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<RequestContext,org.asynchttpclient.Response>
-