Skip to content

Can we make sweeper struct customizable? #23

Description

@ArtemVasilevMIPT

Hi everyone,

Thanks for the awesome library! I've been playing with it for the purpose of tracking bandwidth in my libp2p-based project, it works like a charm and was very easy to modify the code. However, I found that it is difficult to customize how metrics are calculated without manually changing the source code. It would be really nice if we could gather extra statistics for libp2p by defining an interface or callbacks or similar.

I'd really appreciate if you let me modify go-flow-metrics to make it easier to modify Sweeper behavior, by making it into an interface. Or, if you know a better option to achieve this, i'd be happy to implement that as well. Naturally, this will not break compatibility with the rest of libp2p ecosystem.

Would it be okay if i open a pull-request — and hopefully merge it to make go-flow-metrics more flexible by default? Or is this project developed only by libp2p staff?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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