Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nastassia-dailidava committed Oct 21, 2024
1 parent c94026b commit fcf3470
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import io.micrometer.core.instrument.Tags
import io.micrometer.core.instrument.noop.NoopTimer

val noopTimer = NoopTimer(Meter.Id("", Tags.empty(), null, null, Meter.Type.TIMER))
const val REACTOR_METRIC = "reactor.stats"
const val REACTOR_DISCARDED_METRIC = "reactor.discarded"
const val REACTOR_METRIC = "reactor.stream.stats"
const val REACTOR_DISCARDED_METRIC = "reactor.stream.discarded"
const val SERVICES_STATE_METRIC = "services.state"
const val SERVICES_STATE_ERRORS_METRIC = "services.state.errors.total"
const val SNAPSHOT_METRIC = "snapshot"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ class ReactorUtilsTest {
assertThat(received.await(2, TimeUnit.SECONDS)).isTrue()

val discardedItemsBeforeBackpressure = meterRegistry.find(REACTOR_DISCARDED_METRIC)
.tags(Tags.of( METRIC_EMITTER_TAG, "latest-before")).counter()?.count()
.tags(Tags.of(METRIC_EMITTER_TAG, "latest-before")).counter()?.count()
val discardedItemsAfterBackpressure = meterRegistry.find(REACTOR_DISCARDED_METRIC)
.tags(Tags.of( METRIC_EMITTER_TAG, "latest")).counter()?.count()
.tags(Tags.of(METRIC_EMITTER_TAG, "latest")).counter()?.count()

/**
* Published by range: (0..10)
Expand Down

0 comments on commit fcf3470

Please sign in to comment.