Skip to content

Commit

Permalink
add note about default protocol of spring boot starter (#4258)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitlinger committed Apr 15, 2024
1 parent c83c483 commit b9b918c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 8 additions & 0 deletions content/en/docs/languages/java/automatic/configuration.md
Expand Up @@ -30,6 +30,14 @@ specific portions of the SDK & agent:
- [Span limits](https://github.com/open-telemetry/opentelemetry-java/tree/main/sdk-extensions/autoconfigure/README.md#span-limits)
- [Using SPI to further configure the SDK](https://github.com/open-telemetry/opentelemetry-java/tree/main/sdk-extensions/autoconfigure/README.md#customizing-the-opentelemetry-sdk)

{{% alert title="Important" color="warning" %}}

Unlike the SDK autoconfiguration, versions 2.0+ of the Java agent and
OpenTelemetry Spring Boot starter use `http/protobuf` as the default protocol,
not `grpc`.

{{% /alert %}}

### Enable Resource Providers that are disabled by default

In addition to the resource configuration from the SDK autoconfiguration, you
Expand Down
6 changes: 4 additions & 2 deletions content/en/docs/languages/java/automatic/spring-boot.md
Expand Up @@ -165,8 +165,10 @@ IDE.

The OpenTelemetry Starter supports all the
[SDK Autoconfiguration](/docs/languages/java/automatic/configuration/#sdk-autoconfiguration)
(since 2.2.0). You can set properties in the `application.properties` or the
`application.yaml` file, or use environment variables.
(since 2.2.0).

You can update the configuration with properties in the `application.properties`
or the `application.yaml` file, or with environment variables.

`application.properties` example:

Expand Down

0 comments on commit b9b918c

Please sign in to comment.