Skip to content

swarm/: Expose time to establish connection #2745

@mxinden

Description

@mxinden

Description

Expose the time it takes to establish an inbound or outbound connection.

Motivation

Needed for monitoring purposes, e.g. to be exposed to Prometheus via libp2p-metrics. Especially relevant now that we are adding two more transport protocols and thus might want to compare them. #2622 #2289

Open questions

  • Likely best tracked in Pool, thus not requiring Transport to be aware of it.

Are you planning to do it yourself in a pull request?

Likely not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty:moderategetting-startedIssues that can be tackled if you don't know the internals of libp2p very wellhelp wantedpriority:importantThe changes needed are critical for libp2p, or are blocking another project

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions