-
Notifications
You must be signed in to change notification settings - Fork 109
Remove legacy source input, optional metricType query input for testing #749
Conversation
@lmuhlha Unfortunately, in heroic api this 2 concepts co-exist. In the query you can make the distinction by using "source". If you replace source with metric_type, how are we going to ensure this change doesn't break anything? I wanted to check but this branch is not compiling. Check this class => /Users/adeleo/src/heroic/heroic/heroic-dist/src/test/java/com/spotify/heroic/LoggingMetricModule.kt: (36, 19) . |
7956c01
to
26c8750
Compare
@ao2017 I fixed a few issues, now I'm just having some trouble with the tests. When i step through the code, the check for the tDigest aggregation instance sets the metricType properly. I noticed that there are tests that tDigest still works with no aggregation set. Is that how this is supposed to work? I think I'm a bit confused on functionality. |
@ao2017 as far as the naming, I just figured metricType matched what it is in Heroic. I don't think it will conflict with anything in semantic metrics. We can come up with another name if need be, i just think |
I am not sure why the name source was used :). If everything is working as expected I am good. |
Let's look into together. I will ping you. |
I checked. The refactoring on the consumer broke the ability to read distributionPoint from bigtable. It is causing query and consumer IT tests to fail. So the issue is not related to aggregation. |
heroic-core/src/main/java/com/spotify/heroic/CoreQueryManager.java
Outdated
Show resolved
Hide resolved
heroic-core/src/main/java/com/spotify/heroic/metric/LocalMetricManager.java
Outdated
Show resolved
Hide resolved
heroic-dist/src/test/java/com/spotify/heroic/AbstractConsumerIT.java
Outdated
Show resolved
Hide resolved
heroic-dist/src/test/java/com/spotify/heroic/AbstractConsumerIT.java
Outdated
Show resolved
Hide resolved
400d144
to
08ac6be
Compare
b9c524d
to
d64efe3
Compare
Codecov Report
@@ Coverage Diff @@
## master #749 +/- ##
============================================
- Coverage 55.02% 55.02% -0.01%
+ Complexity 3154 3153 -1
============================================
Files 746 746
Lines 20386 20389 +3
Branches 1337 1339 +2
============================================
+ Hits 11218 11219 +1
- Misses 8681 8682 +1
- Partials 487 488 +1
Continue to review full report at Codecov.
|
source
was a legacy query option left over from whenevents
were partially supported:bc53307#diff-0e5dda61cc1e44c094fed3ce698715de1d3b11747d9f312df0fbf6a52f70f1fcR222
This PR gets rid of source as an input and essentially re-names it to metricType with a few updates.
Since end users don't care about what
metricType
is being used, Distributions can instead setmetricType
based on what aggregation (tdigest) is being used.