You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/exporter/otlp/sender/VertxGrpcSender.java
+21-14Lines changed: 21 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -113,20 +113,27 @@ public CompletableResultCode shutdown() {
113
113
returnshutdownResult;
114
114
}
115
115
116
-
client.close()
117
-
.onSuccess(
118
-
newHandler<>() {
119
-
@Override
120
-
publicvoidhandle(Voidevent) {
121
-
shutdownResult.succeed();
122
-
}
123
-
})
124
-
.onFailure(newHandler<>() {
125
-
@Override
126
-
publicvoidhandle(Throwableevent) {
127
-
shutdownResult.fail();
128
-
}
129
-
});
116
+
try {
117
+
client.close()
118
+
.onSuccess(
119
+
newHandler<>() {
120
+
@Override
121
+
publicvoidhandle(Voidevent) {
122
+
shutdownResult.succeed();
123
+
}
124
+
})
125
+
.onFailure(newHandler<>() {
126
+
@Override
127
+
publicvoidhandle(Throwableevent) {
128
+
shutdownResult.fail();
129
+
}
130
+
});
131
+
} catch (RejectedExecutionExceptione) {
132
+
internalLogger.log(Level.FINE, "Unable to complete shutdown", e);
133
+
// if Netty's ThreadPool has been closed, this onSuccess() will immediately throw RejectedExecutionException
Copy file name to clipboardExpand all lines: extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/exporter/otlp/sender/VertxHttpSender.java
+21-14Lines changed: 21 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -154,20 +154,27 @@ public CompletableResultCode shutdown() {
154
154
returnshutdownResult;
155
155
}
156
156
157
-
client.close()
158
-
.onSuccess(
159
-
newHandler<>() {
160
-
@Override
161
-
publicvoidhandle(Voidevent) {
162
-
shutdownResult.succeed();
163
-
}
164
-
})
165
-
.onFailure(newHandler<>() {
166
-
@Override
167
-
publicvoidhandle(Throwableevent) {
168
-
shutdownResult.fail();
169
-
}
170
-
});
157
+
try {
158
+
client.close()
159
+
.onSuccess(
160
+
newHandler<>() {
161
+
@Override
162
+
publicvoidhandle(Voidevent) {
163
+
shutdownResult.succeed();
164
+
}
165
+
})
166
+
.onFailure(newHandler<>() {
167
+
@Override
168
+
publicvoidhandle(Throwableevent) {
169
+
shutdownResult.fail();
170
+
}
171
+
});
172
+
} catch (RejectedExecutionExceptione) {
173
+
internalLogger.log(Level.FINE, "Unable to complete shutdown", e);
174
+
// if Netty's ThreadPool has been closed, this onSuccess() will immediately throw RejectedExecutionException
0 commit comments