-
Notifications
You must be signed in to change notification settings - Fork 16
Conversation
Codecov Report
@@ Coverage Diff @@
## master #98 +/- ##
==========================================
+ Coverage 93.99% 94.02% +0.03%
==========================================
Files 21 21
Lines 1132 1138 +6
Branches 143 143
==========================================
+ Hits 1064 1070 +6
- Misses 39 40 +1
+ Partials 29 28 -1
Continue to review full report at Codecov.
|
@@ -294,7 +298,7 @@ def test_measure_to_envelope(self, logger_mock): | |||
self.assertIsInstance(envelope.data.base_data.metrics[0], DataPoint) | |||
self.assertEqual(envelope.data.base_data.metrics[0].ns, "testdesc") | |||
self.assertEqual(envelope.data.base_data.metrics[0].name, "testname") | |||
self.assertEqual(envelope.data.base_data.metrics[0].value, 0) | |||
self.assertEqual(envelope.data.base_data.metrics[0].value, 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the default value 1 now, or why this is different now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
App insights does not have a way to process MinMaxSumCount aggregator so I am just using count value as a placeholder for now. Before it was 0 because we ignored that metric type when exporting.
|
||
# pylint: disable=too-many-statements | ||
# pylint: disable=too-many-branches | ||
def convert_span_to_envelope(span: Span) -> protocol.Envelope: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there any change in this code apart of the location change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope.
Changes all pertain to metrics.
Renamed instruments and different aggregation types.
There is a bug in OT v0.9 that is fixed on master for the
LastValueAggregation
so observers won't work properly until another release.