Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions dc/s2n-quic-dc/events/acceptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ struct AcceptorTcpTlsStreamRejected<'a> {
#[builder(&'a s2n_quic_core::inet::SocketAddress)]
remote_address: SocketAddress<'a>,

/// The local address of the server
#[builder(&'a s2n_quic_core::inet::SocketAddress)]
local_address: SocketAddress<'a>,

/// The amount of time the TCP stream spent on handshaking before being rejected
/// since being accepted from the kernel
#[timer("sojourn_time")]
Expand All @@ -198,6 +202,10 @@ struct AcceptorTcpSyntheticTlsStreamRejected<'a> {
#[builder(&'a s2n_quic_core::inet::SocketAddress)]
remote_address: SocketAddress<'a>,

/// The local address of the server
#[builder(&'a s2n_quic_core::inet::SocketAddress)]
local_address: SocketAddress<'a>,

/// The amount of time the TCP stream spent on handshaking before being rejected
/// since being accepted from the kernel
#[timer("sojourn_time")]
Expand Down
19 changes: 18 additions & 1 deletion dc/s2n-quic-dc/events/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,14 @@ pub struct StreamTcpConnect {
/// Tracks TLS stream establishment.
#[event("stream:tls_connect")]
#[subject(endpoint)]
pub struct StreamTlsConnect {
pub struct StreamTlsConnect<'a> {
#[bool_counter("error")]
error: bool,

/// The remote address being connected to
#[builder(&'a s2n_quic_core::inet::SocketAddress)]
remote_address: SocketAddress<'a>,

// Does not include errors (otherwise we'd need to incorrectly emit zeros on tls_latency).
#[timer("tcp_latency")]
tcp_latency: core::time::Duration,
Expand All @@ -310,6 +314,19 @@ pub struct StreamTlsConnect {
tls_latency: core::time::Duration,
}

/// Emitted when a TLS stream connect fails.
#[event("stream:tls_connect_error")]
#[subject(endpoint)]
pub struct StreamTlsConnectError<'a> {
/// The remote address being connected to
#[builder(&'a s2n_quic_core::inet::SocketAddress)]
remote_address: SocketAddress<'a>,

/// The error encountered
#[builder(&'a std::io::Error)]
error: &'a std::io::Error,
}

/// Tracks stream connect where dcQUIC owns the TCP connect().
#[event("stream:connect")]
#[subject(endpoint)]
Expand Down
Loading
Loading