Skip to content

Commit c7f2d79

Browse files
committed
spotless
1 parent 0aa5395 commit c7f2d79

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

instrumentation/aws-sdk/aws-sdk-1.11/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/awssdk/v1_11/AwsHttpClientInstrumentation.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ public static void methodExit(
5353
@Advice.Return Response<?> response,
5454
@Advice.Thrown Throwable throwable) {
5555
if (throwable instanceof Exception) {
56-
TracingRequestHandler.tracingHandler().afterError(
57-
request, response, (Exception) throwable);
56+
TracingRequestHandler.tracingHandler().afterError(request, response, (Exception) throwable);
5857
}
5958
Scope scope = request.getHandlerContext(TracingRequestHandler.SCOPE);
6059
if (scope != null) {

instrumentation/aws-sdk/aws-sdk-1.11/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/awssdk/v1_11/RequestExecutorInstrumentation.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ public static void methodExit(
4646
@Advice.Return Response<?> response,
4747
@Advice.Thrown Throwable throwable) {
4848
if (throwable instanceof Exception) {
49-
TracingRequestHandler.tracingHandler().afterError(
50-
request, response, (Exception) throwable);
49+
TracingRequestHandler.tracingHandler().afterError(request, response, (Exception) throwable);
5150
}
5251
Scope scope = request.getHandlerContext(TracingRequestHandler.SCOPE);
5352
if (scope != null) {

instrumentation/undertow-1.4/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/undertow/UndertowHelper.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ public void exchangeCompleted(Context context, HttpServerExchange exchange) {
6969
@SuppressWarnings("unchecked") // we lose type info with attachments
7070
@Nullable
7171
public Context getServerContext(HttpServerExchange exchange) {
72-
AttachmentKey<Context> contextKey =
73-
(AttachmentKey<Context>) KeyHolder.get(AttachmentKey.class);
72+
AttachmentKey<Context> contextKey = (AttachmentKey<Context>) KeyHolder.get(AttachmentKey.class);
7473
if (contextKey == null) {
7574
return null;
7675
}

0 commit comments

Comments
 (0)