@@ -90,7 +90,7 @@ void shouldSendProperRequest() throws Throwable {
9090 .containsExactly ("my.counter,dt.metrics.source=micrometer count,delta=12 " + clock .wallTime (),
9191 "my.timer,dt.metrics.source=micrometer gauge,min=12,max=42,sum=108,count=4 " + clock .wallTime (),
9292 "my.gauge,dt.metrics.source=micrometer gauge," + formatDouble (gauge ) + " " + clock .wallTime (),
93- "#my.timer gauge dt.meta.unit=milliseconds " );
93+ "#my.timer gauge dt.meta.unit=ms " );
9494 })));
9595 }
9696
@@ -115,7 +115,7 @@ void shouldResetBetweenRequests() throws Throwable {
115115 assertThat (request .getEntity ()).asString ()
116116 .hasLineCount (2 )
117117 .contains ("my.timer,dt.metrics.source=micrometer gauge,min=22,max=50,sum=72,count=2 " + clock .wallTime (),
118- "#my.timer gauge dt.meta.unit=milliseconds " );
118+ "#my.timer gauge dt.meta.unit=ms " );
119119
120120 // both are bigger than the previous min and smaller than the previous max. They
121121 // will only show up if the
@@ -133,7 +133,7 @@ void shouldResetBetweenRequests() throws Throwable {
133133 assertThat (request2 .getEntity ()).asString ()
134134 .hasLineCount (2 )
135135 .contains ("my.timer,dt.metrics.source=micrometer gauge,min=33,max=44,sum=77,count=2 " + clock .wallTime (),
136- "#my.timer gauge dt.meta.unit=milliseconds " );
136+ "#my.timer gauge dt.meta.unit=ms " );
137137 }
138138
139139 @ Test
@@ -150,7 +150,7 @@ void shouldNotTrackPercentilesWithDynatraceSummary() throws Throwable {
150150 verify (httpClient ).send (assertArg ((request -> assertThat (request .getEntity ()).asString ()
151151 .hasLineCount (2 )
152152 .contains ("my.timer,dt.metrics.source=micrometer gauge,min=22,max=55,sum=77,count=2 " + clock .wallTime (),
153- "#my.timer gauge dt.meta.unit=milliseconds " ))));
153+ "#my.timer gauge dt.meta.unit=ms " ))));
154154 }
155155
156156 @ Test
@@ -204,13 +204,13 @@ void shouldTrackPercentilesWhenDynatraceSummaryInstrumentsNotUsed() throws Throw
204204 // Timer lines
205205 "my.timer,dt.metrics.source=micrometer gauge,min=100,max=100,sum=100,count=1 "
206206 + clock .wallTime (),
207- "#my.timer gauge dt.meta.unit=milliseconds " ,
207+ "#my.timer gauge dt.meta.unit=ms " ,
208208 // Timer percentile lines. Percentiles are 0 because the step
209209 // rolled over.
210210 "my.timer.percentile,dt.metrics.source=micrometer,phi=0.5 gauge,0 " + clock .wallTime (),
211211 "my.timer.percentile,dt.metrics.source=micrometer,phi=0.7 gauge,0 " + clock .wallTime (),
212212 "my.timer.percentile,dt.metrics.source=micrometer,phi=0.99 gauge,0 " + clock .wallTime (),
213- "#my.timer.percentile gauge dt.meta.unit=milliseconds " ,
213+ "#my.timer.percentile gauge dt.meta.unit=ms " ,
214214
215215 // DistributionSummary lines
216216 "my.ds,dt.metrics.source=micrometer gauge,min=100,max=100,sum=100,count=1 "
@@ -224,15 +224,15 @@ void shouldTrackPercentilesWhenDynatraceSummaryInstrumentsNotUsed() throws Throw
224224 // LongTaskTimer lines
225225 "my.ltt,dt.metrics.source=micrometer gauge,min=100,max=100,sum=100,count=1 "
226226 + clock .wallTime (),
227- "#my.ltt gauge dt.meta.unit=milliseconds " ,
227+ "#my.ltt gauge dt.meta.unit=ms " ,
228228 // LongTaskTimer percentile lines
229229 // 0th percentile is missing because it doesn't clear the
230230 // "interpolatable line" threshold defined in
231231 // DefaultLongTaskTimer#takeSnapshot().
232232 "my.ltt.percentile,dt.metrics.source=micrometer,phi=0.5 gauge,100 " + clock .wallTime (),
233233 "my.ltt.percentile,dt.metrics.source=micrometer,phi=0.7 gauge,100 " + clock .wallTime (),
234234 "my.ltt.percentile,dt.metrics.source=micrometer,phi=0.99 gauge,100 " + clock .wallTime (),
235- "#my.ltt.percentile gauge dt.meta.unit=milliseconds " ))));
235+ "#my.ltt.percentile gauge dt.meta.unit=ms " ))));
236236 }
237237
238238 @ Test
@@ -272,13 +272,13 @@ void shouldTrackPercentilesWhenDynatraceSummaryInstrumentsNotUsed_shouldExport0P
272272 // Timer lines
273273 "my.timer,dt.metrics.source=micrometer gauge,min=100,max=100,sum=100,count=1 "
274274 + clock .wallTime (),
275- "#my.timer gauge dt.meta.unit=milliseconds " ,
275+ "#my.timer gauge dt.meta.unit=ms " ,
276276 // Timer percentile lines. Percentiles are 0 because the step
277277 // rolled over.
278278 "my.timer.percentile,dt.metrics.source=micrometer,phi=0 gauge,0 " + clock .wallTime (),
279279 "my.timer.percentile,dt.metrics.source=micrometer,phi=0.5 gauge,0 " + clock .wallTime (),
280280 "my.timer.percentile,dt.metrics.source=micrometer,phi=0.99 gauge,0 " + clock .wallTime (),
281- "#my.timer.percentile gauge dt.meta.unit=milliseconds " ,
281+ "#my.timer.percentile gauge dt.meta.unit=ms " ,
282282
283283 // DistributionSummary lines
284284 "my.ds,dt.metrics.source=micrometer gauge,min=100,max=100,sum=100,count=1 " + clock .wallTime (),
@@ -303,7 +303,7 @@ void shouldNotExportLinesWithZeroCount() throws Throwable {
303303 verify (httpClient ).send (assertArg (request -> assertThat (request .getEntity ()).asString ()
304304 .hasLineCount (2 )
305305 .contains ("my.timer,dt.metrics.source=micrometer gauge,min=44,max=44,sum=44,count=1 " + clock .wallTime (),
306- "#my.timer gauge dt.meta.unit=milliseconds " )));
306+ "#my.timer gauge dt.meta.unit=ms " )));
307307
308308 // reset for next export interval
309309 reset (httpClient );
@@ -328,7 +328,7 @@ void shouldNotExportLinesWithZeroCount() throws Throwable {
328328 verify (httpClient ).send (assertArg (request -> assertThat (request .getEntity ()).asString ()
329329 .hasLineCount (2 )
330330 .contains ("my.timer,dt.metrics.source=micrometer gauge,min=33,max=33,sum=33,count=1 " + clock .wallTime (),
331- "#my.timer gauge dt.meta.unit=milliseconds " )));
331+ "#my.timer gauge dt.meta.unit=ms " )));
332332 }
333333
334334 private DynatraceConfig createDefaultDynatraceConfig () {
0 commit comments