Skip to content

Commit

Permalink
docs(okhttp): fix class name in README (#7578)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Amir Blum authored Jan 15, 2023
1 parent 2698931 commit 911b3b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions instrumentation/okhttp/okhttp-3.0/library/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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:
Expand Down

0 comments on commit 911b3b5

Please sign in to comment.