From 911b3b5febcc28eaefa98ce0161d45a53ea57537 Mon Sep 17 00:00:00 2001 From: Amir Blum Date: Sun, 15 Jan 2023 19:10:05 +0200 Subject: [PATCH] docs(okhttp): fix class name in README (#7578) for okhttp-3.0 instrumentation, the README uses `OkHttpTracing`: ```java import io.opentelemetry.instrumentation.okhttp.v3_0.OkHttpTracing; ... return OkHttpTracing.builder(openTelemetry).build().newCallFactory(createClient()); ``` #5624 changed `OkHttpTracing` to `OkHttpTelemetry` but the docs still show the previous value which no longer works --- instrumentation/okhttp/okhttp-3.0/library/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/instrumentation/okhttp/okhttp-3.0/library/README.md b/instrumentation/okhttp/okhttp-3.0/library/README.md index 8ea3103e6f28..a7613feb1156 100644 --- a/instrumentation/okhttp/okhttp-3.0/library/README.md +++ b/instrumentation/okhttp/okhttp-3.0/library/README.md @@ -35,7 +35,7 @@ propagation. ```java import io.opentelemetry.api.OpenTelemetry; -import io.opentelemetry.instrumentation.okhttp.v3_0.OkHttpTracing; +import io.opentelemetry.instrumentation.okhttp.v3_0.OkHttpTelemetry; import okhttp3.Call; import okhttp3.OkHttpClient; @@ -45,7 +45,7 @@ public class OkHttpConfiguration { //Use this Call.Factory implementation for making standard http client calls. public Call.Factory createTracedClient(OpenTelemetry openTelemetry) { - return OkHttpTracing.builder(openTelemetry).build().newCallFactory(createClient()); + return OkHttpTelemetry.builder(openTelemetry).build().newCallFactory(createClient()); } //your configuration of the OkHttpClient goes here: