Skip to content

Commit

Permalink
output/cloudv2: Return empty string instead of "unknown" in rmCollector
Browse files Browse the repository at this point in the history
  • Loading branch information
Blinkuu authored and codebien committed Jul 4, 2023
1 parent 6137c5e commit 3291b98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion output/cloud/expv2/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func (c *rmCollector) getStringTagFromTrail(trail *httpext.Trail, key string) st
return tag
}

return "unknown"
return ""
}

func (c *rmCollector) getIntTagFromTrail(trail *httpext.Trail, key string) int64 {
Expand Down
4 changes: 2 additions & 2 deletions output/cloud/expv2/collect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,8 @@ func Test_requestMetadatasCollector_CollectRequestMetadatas_FiltersAndStoresHTTP
TraceID: "test-trace-id-3",
Start: time.Unix(19, 0),
End: time.Unix(20, 0),
TestRunLabels: insights.TestRunLabels{ID: 1337, Scenario: "unknown", Group: "unknown"},
ProtocolLabels: insights.ProtocolHTTPLabels{URL: "unknown", Method: "unknown", StatusCode: 0},
TestRunLabels: insights.TestRunLabels{ID: 1337, Scenario: "", Group: ""},
ProtocolLabels: insights.ProtocolHTTPLabels{URL: "", Method: "", StatusCode: 0},
})
}

Expand Down

0 comments on commit 3291b98

Please sign in to comment.