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

Describe metrics with owned strings #310

Closed
fredr opened this issue Jun 28, 2022 · 0 comments · Fixed by #312
Closed

Describe metrics with owned strings #310

fredr opened this issue Jun 28, 2022 · 0 comments · Fixed by #312
Labels
C-macros Component: macros. E-intermediate Effort: intermediate. T-ergonomics Type: ergonomics.

Comments

@fredr
Copy link
Contributor

fredr commented Jun 28, 2022

I'm working on a project that reads metric descriptions from a config file. But since the description needs to be a &'static str, I can't use the describe_* macros.

Is there a way of getting around that, or would it be possible to allow the description to be an owned string (like it is with the name)?

@tobz tobz added C-macros Component: macros. E-intermediate Effort: intermediate. T-ergonomics Type: ergonomics. labels Jun 29, 2022
@tobz tobz closed this as completed in #312 Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-macros Component: macros. E-intermediate Effort: intermediate. T-ergonomics Type: ergonomics.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants