Class OkHttpInstrumenterFactory
java.lang.Object
io.opentelemetry.instrumentation.okhttp.v3_0.internal.OkHttpInstrumenterFactory
This class is internal and is hence not for public use. Its APIs are unstable and can change at
any time.
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<okhttp3.Request,okhttp3.Response> create(io.opentelemetry.api.OpenTelemetry openTelemetry, Consumer<io.opentelemetry.instrumentation.api.instrumenter.http.HttpClientAttributesExtractorBuilder<okhttp3.Request, okhttp3.Response>> extractorConfigurer, Consumer<io.opentelemetry.instrumentation.api.instrumenter.http.HttpSpanNameExtractorBuilder<okhttp3.Request>> spanNameExtractorConfigurer, List<io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<okhttp3.Request, okhttp3.Response>> additionalAttributesExtractors, boolean emitExperimentalHttpClientMetrics)
-
Method Details
-
create
public static io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<okhttp3.Request,okhttp3.Response> create(io.opentelemetry.api.OpenTelemetry openTelemetry, Consumer<io.opentelemetry.instrumentation.api.instrumenter.http.HttpClientAttributesExtractorBuilder<okhttp3.Request, okhttp3.Response>> extractorConfigurer, Consumer<io.opentelemetry.instrumentation.api.instrumenter.http.HttpSpanNameExtractorBuilder<okhttp3.Request>> spanNameExtractorConfigurer, List<io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<okhttp3.Request, okhttp3.Response>> additionalAttributesExtractors, boolean emitExperimentalHttpClientMetrics)
-