ooni-probe-cli/internal/measurexlite
Simone Basso b78b9aca51
refactor(datafmt): use "udp" instead of "quic" (#946)
This diff changes the data format to prefer "udp" to "quic" everywhere we were previously using "quic".

Previously, the code inconsistently used "quic" for operations where we knew we were using "quic" and "udp" otherwise (e.g., for generic operations like ReadFrom).

While it would be more correct to say that a specific HTTP request used "quic" rather than "udp", using "udp" consistently allows one to see how distinct events such as ReadFrom and an handshake all refer to the same address, port, and protocol triple. Therefore, this change makes it easier to programmatically unpack a single measurement and create endpoint stats.

Before implementing this change, I discussed the problem with @hellais who mentioned that ooni/data is not currently using the "quic" string anywhere. I know that ooni/pipeline also doesn't rely on this string. The only users of this feature have been research-oriented experiments such as urlgetter, for which such a change would actually be acceptable.

See https://github.com/ooni/probe/issues/2238 and https://github.com/ooni/spec/pull/262.
2022-09-08 17:19:59 +02:00
..
conn_test.go feat(measurexlite): add T0 and TransactionID (#879) 2022-08-25 13:41:26 +02:00
conn.go feat(measurexlite): add T0 and TransactionID (#879) 2022-08-25 13:41:26 +02:00
dialer_test.go fix(measurexlite): expose TCP connect event (#934) 2022-09-05 12:21:16 +02:00
dialer.go fix(measurexlite): expose TCP connect event (#934) 2022-09-05 12:21:16 +02:00
dns_test.go fix(measurexlite): emit resolve_start and resolve_done (#944) 2022-09-08 11:05:38 +02:00
dns.go fix(measurexlite): emit resolve_start and resolve_done (#944) 2022-09-08 11:05:38 +02:00
doc.go feat: tlsping and tcpping using step-by-step (#815) 2022-07-01 12:22:22 +02:00
failure_test.go refactor: make measurex depend on measurexlite (#892) 2022-08-28 21:41:58 +02:00
failure.go feat(oonirun): improve tests (#915) 2022-08-31 18:40:27 +02:00
http_test.go refactor(datafmt): use "udp" instead of "quic" (#946) 2022-09-08 17:19:59 +02:00
http.go refactor(datafmt): use "udp" instead of "quic" (#946) 2022-09-08 17:19:59 +02:00
logger_test.go feat(oohelperd): add prometheus metrics (#897) 2022-08-28 23:54:22 +02:00
logger.go refactor: make measurex depend on measurexlite (#892) 2022-08-28 21:41:58 +02:00
quic_test.go refactor(datafmt): use "udp" instead of "quic" (#946) 2022-09-08 17:19:59 +02:00
quic.go refactor(datafmt): use "udp" instead of "quic" (#946) 2022-09-08 17:19:59 +02:00
tls_test.go fix(datafmt): sync measurexlite and v0.5 with previous code (#942) 2022-09-08 10:02:47 +02:00
tls.go fix(datafmt): sync measurexlite and v0.5 with previous code (#942) 2022-09-08 10:02:47 +02:00
trace_test.go feat: add uTLS support in measurexlite (#918) 2022-09-07 15:19:53 +02:00
trace.go feat: add uTLS support in measurexlite (#918) 2022-09-07 15:19:53 +02:00
utls_test.go feat: add uTLS support in measurexlite (#918) 2022-09-07 15:19:53 +02:00
utls.go feat: add uTLS support in measurexlite (#918) 2022-09-07 15:19:53 +02:00
web_test.go refactor: move WebGetTitle inside measurexlite (#895) 2022-08-28 20:26:40 +02:00
web.go refactor: move WebGetTitle inside measurexlite (#895) 2022-08-28 20:26:40 +02:00