Skip to content

Commit 911b3b5

Browse files
author
Amir Blum
authored
docs(okhttp): fix class name in README (open-telemetry#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()); ``` open-telemetry#5624 changed `OkHttpTracing` to `OkHttpTelemetry` but the docs still show the previous value which no longer works
1 parent 2698931 commit 911b3b5

File tree

1 file changed

+2
-2
lines changed
  • instrumentation/okhttp/okhttp-3.0/library

1 file changed

+2
-2
lines changed

instrumentation/okhttp/okhttp-3.0/library/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ propagation.
3535

3636
```java
3737
import io.opentelemetry.api.OpenTelemetry;
38-
import io.opentelemetry.instrumentation.okhttp.v3_0.OkHttpTracing;
38+
import io.opentelemetry.instrumentation.okhttp.v3_0.OkHttpTelemetry;
3939
import okhttp3.Call;
4040
import okhttp3.OkHttpClient;
4141

@@ -45,7 +45,7 @@ public class OkHttpConfiguration {
4545

4646
//Use this Call.Factory implementation for making standard http client calls.
4747
public Call.Factory createTracedClient(OpenTelemetry openTelemetry) {
48-
return OkHttpTracing.builder(openTelemetry).build().newCallFactory(createClient());
48+
return OkHttpTelemetry.builder(openTelemetry).build().newCallFactory(createClient());
4949
}
5050

5151
//your configuration of the OkHttpClient goes here:

0 commit comments

Comments
 (0)