Skip to content

Commit 115f415

Browse files
allegro-internal/flex-roadmap#819 removed snapshot updater timer
1 parent 8979a5c commit 115f415

File tree

1 file changed

+0
-5
lines changed
  • envoy-control-core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/snapshot

1 file changed

+0
-5
lines changed

envoy-control-core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/snapshot/SnapshotUpdater.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import io.envoyproxy.controlplane.cache.SnapshotCache
44
import io.envoyproxy.controlplane.cache.v3.Snapshot
55
import io.micrometer.core.instrument.MeterRegistry
66
import io.micrometer.core.instrument.Tags
7-
import io.micrometer.core.instrument.Timer
87
import pl.allegro.tech.servicemesh.envoycontrol.groups.CommunicationMode.ADS
98
import pl.allegro.tech.servicemesh.envoycontrol.groups.CommunicationMode.XDS
109
import pl.allegro.tech.servicemesh.envoycontrol.groups.Group
@@ -198,13 +197,10 @@ class SnapshotUpdater(
198197
}
199198
}
200199

201-
private val updateSnapshotForGroupsTimer = meterRegistry.timer("snapshot.update.duration.seconds")
202-
203200
private fun updateSnapshotForGroups(
204201
groups: Collection<Group>,
205202
result: UpdateResult
206203
): Mono<UpdateResult> {
207-
val sample = Timer.start()
208204
versions.retainGroups(cache.groups())
209205
val results = Flux.fromIterable(groups)
210206
.doOnNextScheduledOn(groupSnapshotScheduler) { group ->
@@ -222,7 +218,6 @@ class SnapshotUpdater(
222218
}
223219
}
224220
return results.then(Mono.fromCallable {
225-
sample.stop(updateSnapshotForGroupsTimer)
226221
result
227222
})
228223
}

0 commit comments

Comments
 (0)