Skip to content

Commit

Permalink
Update instrumentation/spring/spring-boot-autoconfigure/src/main/java…
Browse files Browse the repository at this point in the history
…/io/opentelemetry/instrumentation/spring/autoconfigure/resources/SpringResourceConfigProperties.java

Co-authored-by: Trask Stalnaker <[email protected]>
  • Loading branch information
zeitlinger and trask authored Jan 31, 2024
1 parent af7d4de commit 707670f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public SpringResourceConfigProperties(
public String getString(String name) {
String value = environment.getProperty(name, String.class);
if (value == null && name.equals("otel.exporter.otlp.protocol")) {
// SDK autoconfigure module defaults to `grpc`, but this module aligns with recommendation
// in specification to default to `http/protobuf`
return OtlpConfigUtil.PROTOCOL_HTTP_PROTOBUF;
}
return value;
Expand Down

0 comments on commit 707670f

Please sign in to comment.