Skip to content

Commit 07dad29

Browse files
committed
./gradlew spotlessApply
1 parent 676b634 commit 07dad29

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

jmx-scraper/src/integrationTest/java/io/opentelemetry/contrib/jmxscraper/target_systems/TomcatIntegrationTest.java

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,17 @@ protected MetricsVerifier createMetricsVerifier() {
6363
.hasDescription("The number of errors.")
6464
.hasUnit("{error}")
6565
.isCounter()
66-
.hasDataPointsWithOneAttribute(attribute("tomcat.request.processor.name", "\"http-nio-8080\"")))
66+
.hasDataPointsWithOneAttribute(
67+
attribute("tomcat.request.processor.name", "\"http-nio-8080\"")))
6768
.add(
6869
"tomcat.request.duration.sum",
6970
metric ->
7071
metric
7172
.hasDescription("Total time of processing all requests.")
7273
.hasUnit("s")
7374
.isCounter()
74-
.hasDataPointsWithOneAttribute(attribute("tomcat.request.processor.name", "\"http-nio-8080\"")))
75+
.hasDataPointsWithOneAttribute(
76+
attribute("tomcat.request.processor.name", "\"http-nio-8080\"")))
7577
.add(
7678
"tomcat.network.io",
7779
metric ->
@@ -94,11 +96,12 @@ protected MetricsVerifier createMetricsVerifier() {
9496
.hasUnit("{thread}")
9597
.isUpDownCounter()
9698
.hasDataPointsWithAttributes(
97-
// attributeGroup(
98-
// attribute("state", "idle"),
99-
// attribute("tomcat.thread.pool.name", "\"http-nio-8080\"")),
99+
// attributeGroup(
100+
// attribute("state", "idle"),
101+
// attribute("tomcat.thread.pool.name",
102+
// "\"http-nio-8080\"")),
100103
attributeGroup(
101-
// attribute("state", "busy"),
104+
// attribute("state", "busy"),
102105
attribute("tomcat.thread.pool.name", "\"http-nio-8080\""))))
103106
.add(
104107
"tomcat.request.duration.max",
@@ -107,7 +110,8 @@ protected MetricsVerifier createMetricsVerifier() {
107110
.hasDescription("The longest request processing time.")
108111
.hasUnit("s")
109112
.isGauge()
110-
.hasDataPointsWithOneAttribute(attribute("tomcat.request.processor.name", "\"http-nio-8080\"")))
113+
.hasDataPointsWithOneAttribute(
114+
attribute("tomcat.request.processor.name", "\"http-nio-8080\"")))
111115
.add(
112116
"tomcat.request.count",
113117
metric ->
@@ -117,23 +121,25 @@ protected MetricsVerifier createMetricsVerifier() {
117121
.isCounter()
118122
.hasDataPointsWithOneAttribute(
119123
attribute("tomcat.request.processor.name", "\"http-nio-8080\"")))
120-
.add("tomcat.thread.busy.count",
124+
.add(
125+
"tomcat.thread.busy.count",
121126
metric ->
122127
metric
123128
.hasDescription("Number of busy threads in the thread pool.")
124129
.hasUnit("{thread}")
125130
.isUpDownCounter()
126131
.hasDataPointsWithOneAttribute(
127132
attribute("tomcat.thread.pool.name", "\"http-nio-8080\"")))
128-
.add("tomcat.session.active.limit",
133+
.add(
134+
"tomcat.session.active.limit",
129135
metric ->
130136
metric
131137
.hasDescription("Maximum possible number of active sessions.")
132138
.hasUnit("{session}")
133139
.isUpDownCounter()
134-
.hasDataPointsWithOneAttribute(
135-
attribute("tomcat.context", "/")))
136-
.add("tomcat.thread.limit",
140+
.hasDataPointsWithOneAttribute(attribute("tomcat.context", "/")))
141+
.add(
142+
"tomcat.thread.limit",
137143
metric ->
138144
metric
139145
.hasDescription("Maximum possible number of threads in the thread pool.")

0 commit comments

Comments
 (0)