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 more examples #31

Merged
merged 8 commits into from
Feb 9, 2023
Merged

Add more examples #31

merged 8 commits into from
Feb 9, 2023

Conversation

emschwartz
Copy link
Contributor

@emschwartz emschwartz commented Feb 8, 2023

Resolves #28

  • Re-add a simpler Axum example
  • Update main README to point to examples directory


// Run the example with `--features=metrics` to use the `metrics` crate to define additional metrics.
#[cfg(feature = "metrics")]
pub fn function_with_custom_metrics_metric() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@axiomatic-aardvark added this example that shows how you can collect other metrics alongside the autometrics ones. Let me know what you think!

@emschwartz emschwartz marked this pull request as ready for review February 9, 2023 10:48
Base automatically changed from slos to main February 9, 2023 13:44
@emschwartz emschwartz merged commit 98fdc55 into main Feb 9, 2023
@emschwartz emschwartz deleted the more-examples branch February 9, 2023 14:25
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.

Add examples showing how to add additional custom metrics
2 participants