Skip to content

Commit 5d479b7

Browse files
committed
chore: add logs for sending TcpScrape event
1 parent a67e137 commit 5d479b7

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

  • packages/http-tracker-core/src/services

packages/http-tracker-core/src/services/scrape.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,13 @@ impl ScrapeService {
126126
server_service_binding: ServiceBinding,
127127
) {
128128
if let Some(http_stats_event_sender) = self.opt_http_stats_event_sender.as_deref() {
129-
http_stats_event_sender
130-
.send_event(Event::TcpScrape {
131-
connection: ConnectionContext::new(original_peer_ip, opt_original_peer_port, server_service_binding),
132-
})
133-
.await;
129+
let event = Event::TcpScrape {
130+
connection: ConnectionContext::new(original_peer_ip, opt_original_peer_port, server_service_binding),
131+
};
132+
133+
tracing::debug!("Sending TcpScrape event: {:?}", event);
134+
135+
http_stats_event_sender.send_event(event).await;
134136
}
135137
}
136138
}

0 commit comments

Comments
 (0)