Skip to content

Extensible client statistics #720

@timdrijvers

Description

@timdrijvers

Proposed change

Currently the Client holds a stats dictionary, keeping track of certain metrics (mainly around received and published messages). It basically holds counters that are incremented on these operations.

There is currently no easy way to hook into these statistics and process them differently, for instance sending metrics to your favourite metrics and observability system.

The new stats collection needs to be backwards compatible (the stats attribute is a public attribute), while offering extensibility at the same time.

Use case

Send custom metrics to datadog on messages received and published by the client application

Contribution

Contribute by providing a MR

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalEnhancement idea or proposal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions