Skip to content

protocols/gossipsub: Consider feature-gating the metrics support #2923

@thomaseizinger

Description

@thomaseizinger

Description

Currently, prometheus-client is a non-optional dependency of libp2p-gossipsub. Change it to an optional dependency, enabled by a feature flag (metrics f.e.)

Motivation

Not all users user the provided metric support. Making it optional reduces the dependency footprint.

Current Implementation

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

Maybe.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions