Skip to content

Commit

Permalink
Fix spotless check errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
tduncan committed Dec 21, 2023
1 parent db7ec8d commit c221fbe
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ final class AwsSdkInstrumenterFactory {
private static final SnsAttributesExtractor snsAttributesExtractor = new SnsAttributesExtractor();

private static final List<AttributesExtractor<Request<?>, Response<?>>>
defaultAttributesExtractors = Arrays.asList(
httpAttributesExtractor, rpcAttributesExtractor, snsAttributesExtractor);
defaultAttributesExtractors =
Arrays.asList(httpAttributesExtractor, rpcAttributesExtractor, snsAttributesExtractor);
private static final List<AttributesExtractor<Request<?>, Response<?>>>
extendedAttributesExtractors = Arrays.asList(
httpAttributesExtractor,
rpcAttributesExtractor,
snsAttributesExtractor,
experimentalAttributesExtractor
);
extendedAttributesExtractors =
Arrays.asList(
httpAttributesExtractor,
rpcAttributesExtractor,
snsAttributesExtractor,
experimentalAttributesExtractor);
private static final AwsSdkSpanNameExtractor spanName = new AwsSdkSpanNameExtractor();

private final OpenTelemetry openTelemetry;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/

package io.opentelemetry.instrumentation.awssdk.v1_11;

import com.amazonaws.AmazonWebServiceRequest;
Expand Down Expand Up @@ -31,6 +36,10 @@ private static String findMessageDestination(AmazonWebServiceRequest request) {
}

@Override
public void onEnd(AttributesBuilder attributes, Context context, Request<?> request,
@Nullable Response<?> response, @Nullable Throwable error) {}
public void onEnd(
AttributesBuilder attributes,
Context context,
Request<?> request,
@Nullable Response<?> response,
@Nullable Throwable error) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@

package io.opentelemetry.instrumentation.awssdk.v2_2;

import io.opentelemetry.semconv.SemanticAttributes;

import static io.opentelemetry.instrumentation.awssdk.v2_2.FieldMapping.request;

import io.opentelemetry.semconv.SemanticAttributes;
import java.util.Collections;
import java.util.List;
import java.util.Map;
Expand All @@ -20,8 +19,7 @@ enum AwsSdkRequestType {
DYNAMODB(request("aws.table.name", "TableName")),
SNS(
request(SemanticAttributes.MESSAGING_DESTINATION_NAME.getKey(), "TargetArn"),
request(SemanticAttributes.MESSAGING_DESTINATION_NAME.getKey(), "TopicArn")
);
request(SemanticAttributes.MESSAGING_DESTINATION_NAME.getKey(), "TopicArn"));

// Wrapping in unmodifiableMap
@SuppressWarnings("ImmutableEnumChecker")
Expand Down

0 comments on commit c221fbe

Please sign in to comment.