Skip to content

Conversation

@jeanbisutti
Copy link
Member

@jeanbisutti jeanbisutti commented Jan 11, 2024

Fix #10206

@jeanbisutti jeanbisutti requested a review from a team January 11, 2024 14:39
@jeanbisutti
Copy link
Member Author

cc @zeitlinger

Copy link
Member

@zeitlinger zeitlinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - just small nitpick 😄

boolean isHttpProtobuf = Objects.equals(protocol, OtlpConfigUtil.PROTOCOL_HTTP_PROTOBUF);
boolean isHttpProtobuf = !"grpc".equals(protocol);

if (protocol != null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

@jeanbisutti jeanbisutti Jan 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it could be rediscussed later with the perspective of what to do with the OTel starter configurations.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have created #10213

&& !OtlpConfigUtil.PROTOCOL_HTTP_PROTOBUF.equals(protocol)) {
logger.warn(
protocol
+ " protocol is not managed. "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rephrase this to something like Unknown OTLP protocol '{}', using 'http/protobuf' instead.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@trask trask added this to the v2.0 milestone Jan 11, 2024
Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx!

@trask trask merged commit 32ea07c into open-telemetry:main Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change spring boot starter default otlp protocol from grpc to http/protobuf in 2.0.0

4 participants