Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simple stats API #242

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

junr03
Copy link

@junr03 junr03 commented Jul 11, 2024

This PR exposes the concept of Metrics with a high level API. It takes liberal inspiration from the Simple<Counter,Gauge,Histogram> in the CPP SDK.

Users of the Rust SDK will now be able to create and manipulate simple Counters, Gauges, and Histograms that exist in the Envoy Runtime.

Note that this change is more generic than #229 given that it exposes the concept of Counters, Gauges, and Histograms as a first class implementation, rather than interacting directly with the metrics host calls via the Root Context.

cc @casimiro

Signed-off-by: José Ulises Niño Rivera <[email protected]>
@junr03 junr03 requested a review from PiotrSikora as a code owner July 11, 2024 18:32
Copy link

@adilhafeez adilhafeez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great if you can update one of the examples and show use of stats there.

src/stats.rs Outdated Show resolved Hide resolved
Signed-off-by: José Ulises Niño Rivera <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants