Skip to content

Overhaul stats: Add announced Peer to UDP core announce event #1384

Description

@josecelano

Depends on: #1341
Relates to: #1376

IMPORTANT: This has to be implemented after #1341.

I'm refactoring events to include more metadata:

pub enum Event {
    UdpConnect { context: ConnectionContext },
    UdpAnnounce { context: ConnectionContext },
    UdpScrape { context: ConnectionContext },
}

#[derive(Debug, PartialEq, Eq)]
pub struct ConnectionContext {
    client_socket_addr: SocketAddr,
    server_socket_addr: SocketAddr,
}

It would also be convenient to include information about the announce request, in the event, like the peer.

Read this for more information about how to include the announced peer data.

Activity

  1. added
    - Developer -
    Code Cleanup / Refactoring
    on Mar 18, 2025
  2. self-assigned this
    on Mar 18, 2025
  3. added theissue type on Mar 18, 2025
  4. changed the issue type fromtoon Mar 18, 2025
  5. changed the title [-]Overhaul stats: add announced `Peer` to UDP core `announce` event[/-] [+]Overhaul stats: Add announced `Peer` to UDP core `announce` event[/+] on Mar 18, 2025
  6. added 4 commits that reference this issue on Apr 22, 2025
  7. josecelano commented on Apr 22, 2025

    @josecelano
    MemberAuthor

    Closed via #1473

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

Metadata

Metadata

Assignees

Labels

- Developer -Code Cleanup / Refactoring

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions