We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 710e12a commit 835a213Copy full SHA for 835a213
instrumentation/net/http/otelhttp/test/transport_test.go
@@ -585,15 +585,14 @@ func TestDefaultAttributesHandling(t *testing.T) {
585
require.NoError(t, err)
586
587
resp, err := client.Do(r)
588
- resp.Body.Close()
589
590
+ _ = resp.Body.Close()
591
+
592
err = reader.Collect(ctx, &rm)
593
assert.NoError(t, err)
594
- // http.client.response.size is not recorded so the assert.Len
595
- // above should be 2 instead of 3(test bonus)
596
- assert.Len(t, rm.ScopeMetrics[0].Metrics, 2)
+ assert.Len(t, rm.ScopeMetrics[0].Metrics, 3)
597
for _, m := range rm.ScopeMetrics[0].Metrics {
598
switch m.Name {
599
case clientRequestSize:
0 commit comments