Skip to content

Commit cde8df7

Browse files
committed
fixed build issue
1 parent fd8fd81 commit cde8df7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws-xray/src/main/java/io/opentelemetry/contrib/awsxray/SamplingRuleApplier.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ boolean matches(Attributes attributes, Resource resource) {
199199
if (httpMethod.equals(_OTHER_REQUEST_METHOD)) {
200200
httpMethod = attributes.get(HttpAttributes.HTTP_REQUEST_METHOD_ORIGINAL);
201201
}
202-
} else if (entry.getKey().equals(NET_HOST_NAME) || (entry.getKey().equals(ServerAttributes.SERVER_ADDRESS))) {
202+
} else if (entry.getKey().equals(NET_HOST_NAME) || entry.getKey().equals(ServerAttributes.SERVER_ADDRESS)) {
203203
host = (String) entry.getValue();
204-
} else if (entry.getKey().equals(HTTP_HOST) || (entry.getKey().equals(ServerAttributes.SERVER_ADDRESS))) {
204+
} else if (entry.getKey().equals(HTTP_HOST) || entry.getKey().equals(ServerAttributes.SERVER_ADDRESS)) {
205205
// TODO (trask) remove support for deprecated http.host attribute
206206
host = (String) entry.getValue();
207207
}

0 commit comments

Comments
 (0)