I look at the code and tests. However, I couldn't figure out the objective of having `aggregate property.
The only test I found that mention that property was the description one.
|
func testDescriptions() throws { |
|
let metrics = TestMetrics() |
|
MetricsSystem.bootstrapInternal(metrics) |
|
|
|
let timer = Timer(label: "hello.timer") |
|
XCTAssertEqual("\(timer)", "Timer(hello.timer, dimensions: [])") |
|
|
|
let counter = Counter(label: "hello.counter") |
|
XCTAssertEqual("\(counter)", "Counter(hello.counter, dimensions: [])") |
|
|
|
let gauge = Gauge(label: "hello.gauge") |
|
XCTAssertEqual("\(gauge)", "Gauge(hello.gauge, dimensions: [], aggregate: false)") |
|
|
|
let recorder = Recorder(label: "hello.recorder") |
|
XCTAssertEqual("\(recorder)", "Recorder(hello.recorder, dimensions: [], aggregate: true)") |
|
} |
I look at the code and tests. However, I couldn't figure out the objective of having `aggregate property.
The only test I found that mention that property was the description one.
swift-metrics/Tests/MetricsTests/CoreMetricsTests.swift
Lines 395 to 410 in 99a068b