Skip to content

Conversation

@estcarisimo
Copy link
Contributor

No description provided.

@estcarisimo estcarisimo requested a review from a team as a code owner February 12, 2026 20:05
serde_json::json!(val),
);
ex_data.insert(
"cf_lost_packets_delta".to_string(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we consider only including the deltas for now?

I guess both provide value, no objection to including both.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, deltas provide much more value right now. At the risk of overpopulating the QLOG i am inclined towards adding both now

Copy link
Contributor

@LPardue LPardue Feb 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider representing these as a structure defined in quiche rather than two independent fields e.g.

struct CfLostPackets {
  total: u64,
  delta: Option<u64>,
}

(activitity for the reader, to apply the needed serde decorations)
More formally defining our custom event object model will help maintenance in the longer run.

Copy link
Contributor

@antoniovicente antoniovicente Feb 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the idea behind your suggestion is that we could do something like:

struct TotalAndDelta {
  total: u64,
  delta: u64,
}

ex_data.insert(
  "cf_lost_packets".to_string(),
  serde_json::json!(TotalAndDelta {total, delta}),
);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd take it a bit further and do something like I proposed in #2355. That way, you'd use CustomCfQlogField to wrap any/all of these fields, with the value being generic but needing to implement a Serialize trait

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants