Skip to content

Commit

Permalink
how to configure web client
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitlinger committed Apr 15, 2024
1 parent 12087e5 commit 66feb69
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions content/en/docs/languages/java/automatic/spring-boot.md
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,21 @@ processor. This feature is supported for spring webflux versions 5.0+. For
details, see
[opentelemetry-spring-webflux-5.3](https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/spring/spring-webflux/spring-webflux-5.3/library).

The following ways of creating a `WebClient` are supported:

```java
@Bean
public WebClient webClient() {
return WebClient.create();
}
```

```java
public MyService(WebClient.Builder webClientBuilder) {
this.webClient = webClientBuilder.build();
}
```

### Additional Instrumentations

#### JDBC Instrumentation
Expand Down

0 comments on commit 66feb69

Please sign in to comment.