Skip to content

Commit

Permalink
Fix aggregation comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
brunnoferreira committed Sep 16, 2024
1 parent 3093351 commit 44ed7f2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class StableMeterSharedState {
var registeredStorages = [SynchronousMetricStorage]()
for (reader, registry) in readerStorageRegisteries {
for registeredView in reader.registry.findViews(descriptor: instrument, meterScope: instrumentationScope) {
if type(of: registeredView.view.aggregation) == DropAggregator.self {
if type(of: registeredView.view.aggregation) == DropAggregation.self {
continue
}
registeredStorages.append(registry.register(newStorage: SynchronousMetricStorage.create(registeredReader: reader, registeredView: registeredView, descriptor: instrument, exemplarFilter: meterProviderSharedState.exemplarFilter)) as! SynchronousMetricStorage)
Expand All @@ -66,7 +66,7 @@ class StableMeterSharedState {
var registeredStorages = [AsynchronousMetricStorage]()
for (reader, registry) in readerStorageRegisteries {
for registeredView in reader.registry.findViews(descriptor: instrumentDescriptor, meterScope: instrumentationScope) {
if type(of: registeredView.view.aggregation) == DropAggregator.self {
if type(of: registeredView.view.aggregation) == DropAggregation.self {
continue
}
registeredStorages.append(registry.register(newStorage: AsynchronousMetricStorage.create(registeredReader: reader, registeredView: registeredView, instrumentDescriptor: instrumentDescriptor)) as! AsynchronousMetricStorage)
Expand Down

0 comments on commit 44ed7f2

Please sign in to comment.