2021-09-28 12:42:01 +02:00
|
|
|
package netxlite
|
2021-07-02 11:35:00 +02:00
|
|
|
|
2022-05-15 19:25:27 +02:00
|
|
|
//
|
|
|
|
// Names of operations
|
|
|
|
//
|
|
|
|
|
2021-09-29 20:21:25 +02:00
|
|
|
// Operations that we measure. They are the possible values of
|
2021-09-07 20:39:32 +02:00
|
|
|
// the ErrWrapper.Operation field.
|
2021-07-02 11:35:00 +02:00
|
|
|
const (
|
|
|
|
// ResolveOperation is the operation where we resolve a domain name.
|
|
|
|
ResolveOperation = "resolve"
|
|
|
|
|
|
|
|
// ConnectOperation is the operation where we do a TCP connect.
|
|
|
|
ConnectOperation = "connect"
|
|
|
|
|
2022-06-01 11:10:08 +02:00
|
|
|
// DNSRoundTripOperation is the DNS round trip.
|
|
|
|
DNSRoundTripOperation = "dns_round_trip"
|
|
|
|
|
2021-07-02 11:35:00 +02:00
|
|
|
// TLSHandshakeOperation is the TLS handshake.
|
|
|
|
TLSHandshakeOperation = "tls_handshake"
|
|
|
|
|
|
|
|
// QUICHandshakeOperation is the handshake to setup a QUIC connection.
|
|
|
|
QUICHandshakeOperation = "quic_handshake"
|
|
|
|
|
|
|
|
// QUICListenOperation is when we open a listening UDP conn for QUIC.
|
|
|
|
QUICListenOperation = "quic_listen"
|
|
|
|
|
|
|
|
// HTTPRoundTripOperation is the HTTP round trip.
|
|
|
|
HTTPRoundTripOperation = "http_round_trip"
|
|
|
|
|
|
|
|
// CloseOperation is when we close a socket.
|
|
|
|
CloseOperation = "close"
|
|
|
|
|
|
|
|
// ReadOperation is when we read from a socket.
|
|
|
|
ReadOperation = "read"
|
|
|
|
|
|
|
|
// WriteOperation is when we write to a socket.
|
|
|
|
WriteOperation = "write"
|
|
|
|
|
|
|
|
// ReadFromOperation is when we read from an UDP socket.
|
|
|
|
ReadFromOperation = "read_from"
|
|
|
|
|
|
|
|
// WriteToOperation is when we write to an UDP socket.
|
|
|
|
WriteToOperation = "write_to"
|
|
|
|
|
|
|
|
// UnknownOperation is when we cannot determine the operation.
|
|
|
|
UnknownOperation = "unknown"
|
|
|
|
|
|
|
|
// TopLevelOperation is used when the failure happens at top level. This
|
|
|
|
// happens for example with urlgetter with a cancelled context.
|
|
|
|
TopLevelOperation = "top_level"
|
|
|
|
)
|