Skip to content

Commit

Permalink
[Agent] Fixed inconsistencies between request and response numbers in…
Browse files Browse the repository at this point in the history
… otel metrics data
  • Loading branch information
TomatoMr authored and sharang committed Apr 14, 2023
1 parent ef9c65f commit 72f853f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions agent/src/integration_collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -450,12 +450,8 @@ fn fill_tagged_flow(
let flow_perf_stats = FlowPerfStats {
tcp: Default::default(),
l7: L7PerfStats {
request_count: 1, // Because both TapSide::ClientApp and TapSide::ServerApp will have request, and the request_count is always 1
response_count: if tagged_flow.flow.tap_side == TapSide::ServerApp {
1
} else {
0
},
request_count: 1,
response_count: 1, // otel data is all session logs, so the number of requests is the same as the number of responses
err_client_count: if status == L7ResponseStatus::ClientError {
1
} else {
Expand Down

0 comments on commit 72f853f

Please sign in to comment.