Skip to content

Commit

Permalink
Add hint about exporter collector protocol on generic gRPC error
Browse files Browse the repository at this point in the history
Relates to: quarkusio#38963
  • Loading branch information
geoand committed Feb 26, 2024
1 parent caaf33f commit 74f0221
Showing 1 changed file with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,20 @@ private void logAppropriateWarning(GrpcStatus status,
+ statusMessage);
} else {
if (status == null) {
logger.log(
Level.WARNING,
"Failed to export "
+ type
+ "s. Server responded with error message: "
+ statusMessage);
if (statusMessage == null) {
logger.log(
Level.WARNING,
"Failed to export "
+ type
+ "s. Perhaps the collector does not support collecting traces using grpc? Try configuring 'quarkus.otel.exporter.otlp.traces.protocol=http/protobuf'");
} else {
logger.log(
Level.WARNING,
"Failed to export "
+ type
+ "s. Server responded with error message: "
+ statusMessage);
}
} else {
logger.log(
Level.WARNING,
Expand Down

0 comments on commit 74f0221

Please sign in to comment.