Open Bug 2090854 Opened 13 days ago Updated 2 days ago

Rejected TLS early data is counted under __other__ in network.tls_early_data_accepted

Categories

(Core :: Networking: HTTP, defect, P3)

defect

Tracking

()

People

(Reporter: leggert, Assigned: p.pandey250806, NeedInfo)

References

Details

(Keywords: good-first-bug, Whiteboard: [lang=c++][necko-triaged])

Attachments

(1 external file)

TlsHandshaker::EarlyDataTelemetry (netwerk/protocol/http/TlsHandshaker.cpp) records a rejected 0-RTT handshake as:

mozilla::glean::network::tls_early_data_accepted
    .Get(earlyDataAccepted ? "accepted"_ns : "not_accepted"_ns)

but network.tls_early_data_accepted in netwerk/protocol/http/metrics.yaml declares only the labels accepted and rejected. Glean maps an undeclared static label to __other__ without recording an error, so rejected has never been recorded since the metric was added in bug 1898018; all rejections land in __other__. (http.tls_early_data_accepted, recorded right above it via EnumGet, is correct.)

Fix: record "rejected"_ns instead of "not_accepted"_ns. No metrics.yaml change is needed.

Hi Lars, I’d like to take this one.
I’ll have a patch up on Phabricator shortly.
Please assign it to me if that’s fine.

Assignee: nobody → p.pandey250806
Severity: -- → S4
Priority: -- → P3
Whiteboard: [lang=c++] → [lang=c++][necko-triaged]

TlsHandshaker::EarlyDataTelemetry recorded "not_accepted", but
network.tls_early_data_accepted only declares "accepted" and "rejected".
Glean maps undeclared labels to other, so rejections were never
recorded under their own label.

Extend test_happy_eyeballs_0rtt_h1_reject.js to check that a rejected
0-RTT handshake is counted under "rejected".

There is an r+ patch which didn't land and no activity in this bug for 1 week.
:p.pandey250806, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(p.pandey250806)
Flags: needinfo?(kershaw)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: