Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update OTel Spring starter doc with 2.6.0 features #4847

Merged
merged 16 commits into from
Jul 18, 2024
Merged
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ Out of the box instrumentation is available for several frameworks:
| Micrometer | `otel.instrumentation.micrometer.enabled` | false |
| R2DBC (reactive JDBC) | `otel.instrumentation.r2dbc.enabled` | true |

## Turn on instrumentations selectively

To use only specific instrumentations, turn off all the instrumentations
first by setting the `otel.instrumentation.common.default-enabled`
property to `false`. Then, turn on instrumentations one by one.

For example, if you want to only enable the JDBC instrumentation,
set `otel.instrumentation.jdbc.enabled` to `true`.

## Common instrumentation configuration

Common properties for all database instrumentations:
Expand Down Expand Up @@ -118,6 +127,14 @@ public MyService(RestClient.Builder restClientBuilder) {
}
```

As it's possible with the
[Java agent](/docs/zero-code/java/agent/configuration), you can configure the
jeanbisutti marked this conversation as resolved.
Show resolved Hide resolved
capture of the following entities:

- HTTP request and response headers
jeanbisutti marked this conversation as resolved.
Show resolved Hide resolved
jeanbisutti marked this conversation as resolved.
Show resolved Hide resolved
- Known HTTP methods
jeanbisutti marked this conversation as resolved.
Show resolved Hide resolved
- Experimental HTTP telemetry
jeanbisutti marked this conversation as resolved.
Show resolved Hide resolved

## Spring Web MVC Autoconfiguration

This feature autoconfigures instrumentation for Spring WebMVC controllers by
Expand All @@ -129,6 +146,14 @@ request. To learn more about the OpenTelemetry Spring WebMVC instrumentation,
see the
[opentelemetry-spring-webmvc-5.3 instrumentation library](https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/spring/spring-webmvc/spring-webmvc-5.3/library).

As it's possible with the
[Java agent](/docs/zero-code/java/agent/configuration), you can configure the
capture of the following entities:

- HTTP request and response headers
- Known HTTP methods
- Experimental HTTP telemetry

## Spring WebFlux Autoconfiguration

Provides autoconfigurations for the OpenTelemetry WebClient ExchangeFilter
Expand Down
Loading