Skip to content

Commit baf1fdc

Browse files
committed
spotless
1 parent 819b295 commit baf1fdc

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/sampling/SamplingOverrides.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,7 @@ private LazyHttpTarget(Attributes attributes) {
296296
private String get() {
297297
if (!initialized) {
298298
String urlQuery = attributes.get(UrlAttributes.URL_QUERY);
299-
value =
300-
attributes.get(UrlAttributes.URL_PATH) + (urlQuery != null ? "?" + urlQuery : "");
299+
value = attributes.get(UrlAttributes.URL_PATH) + (urlQuery != null ? "?" + urlQuery : "");
301300
initialized = true;
302301
}
303302
return value;

agent/agent-tooling/src/test/java/com/microsoft/applicationinsights/agent/internal/PreAggregatedMetricsTest.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ void generateHttpClientMetrics() {
126126
.hasAttributesSatisfying(
127127
equalTo(ServerAttributes.SERVER_ADDRESS, "localhost"),
128128
equalTo(ServerAttributes.SERVER_PORT, 1234),
129-
equalTo(
130-
HttpAttributes.HTTP_RESPONSE_STATUS_CODE, 200))
129+
equalTo(HttpAttributes.HTTP_RESPONSE_STATUS_CODE, 200))
131130
.hasExemplarsSatisfying(
132131
exemplar ->
133132
exemplar
@@ -201,8 +200,7 @@ void generateRpcClientMetrics() {
201200
.hasSum(150 /* millis */)
202201
.hasAttributesSatisfying(
203202
equalTo(RpcIncubatingAttributes.RPC_SYSTEM, "grpc"),
204-
equalTo(
205-
ServerAttributes.SERVER_ADDRESS, "example.com"),
203+
equalTo(ServerAttributes.SERVER_ADDRESS, "example.com"),
206204
equalTo(ServerAttributes.SERVER_PORT, 8080))
207205
.hasExemplarsSatisfying(
208206
exemplar ->
@@ -278,8 +276,7 @@ void generateHttpServerMetrics() {
278276
point
279277
.hasSum(0.15 /* seconds */)
280278
.hasAttributesSatisfying(
281-
equalTo(
282-
HttpAttributes.HTTP_RESPONSE_STATUS_CODE, 200),
279+
equalTo(HttpAttributes.HTTP_RESPONSE_STATUS_CODE, 200),
283280
equalTo(
284281
AttributeKey.booleanKey(
285282
"applicationinsights.internal.is_synthetic"),

0 commit comments

Comments
 (0)