Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(s2n-quic-dc): Add subscriber event for dc::Path creation #2510

Merged
merged 3 commits into from
Mar 5, 2025

Conversation

Mark-Simulacrum
Copy link
Collaborator

Release Summary:

  • Expose dc::Path creation event in s2n-quic Subscriber.

Resolved issues:

n/a

Description of changes:

This allows a subscriber with knowledge of the concrete path type to downcast it and register interest for events (e.g., to pull the path secret ID or other relevant metadata as it gets produced).

Call-outs:

This is a new dyn Any exposure, but it feels pretty reasonable: we're unlikely to support multiple dc::Paths and regardless registering dc impls is unstable so this can change down the line without breaking any realistic use cases.

Testing:

No new tests, but I'm not sure it's really warranted for the amount of code contained here.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This allows a subscriber with knowledge of the concrete path type to
downcast it and register interest for events (e.g., to pull the path
secret ID or other relevant metadata as it gets produced).
@Mark-Simulacrum Mark-Simulacrum requested a review from camshaft March 4, 2025 22:46
camshaft
camshaft previously approved these changes Mar 4, 2025
@camshaft
Copy link
Contributor

camshaft commented Mar 4, 2025

Looks like we need to update the metrics snapshots

@camshaft camshaft merged commit 1a1dfa8 into aws:main Mar 5, 2025
119 checks passed
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.

2 participants