File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
contrib/opencensus-ext-azure Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 33## Unreleased
44
55- Remove status code ` 206 ` from retry code + only count batch level for statsbeat
6- ([ #1239 ] ( https://github.com/census-instrumentation/opencensus-python/pull/1239 ) )
6+ ([ #1247 ] ( https://github.com/census-instrumentation/opencensus-python/pull/1247 ) )
77
88## 1.1.13
99
Original file line number Diff line number Diff line change @@ -454,9 +454,10 @@ def test_statsbeat_206_partial_retry(self):
454454 ],
455455 }))
456456 result = mixin ._transmit ([1 , 2 , 3 ])
457- self .assertEqual (len (_requests_map ), 3 )
457+ # We do not record any network statsbeat for 206 status code
458+ self .assertEqual (len (_requests_map ), 2 )
458459 self .assertIsNotNone (_requests_map ['duration' ])
459- self .assertEqual (_requests_map [ 'retry' ][ 500 ], 1 )
460+ self .assertIsNone (_requests_map . get ( 'retry' ) )
460461 self .assertEqual (_requests_map ['count' ], 1 )
461462 self .assertEqual (result , TransportStatusCode .DROP )
462463 storage_mock .put .assert_called_once ()
You can’t perform that action at this time.
0 commit comments