-
Notifications
You must be signed in to change notification settings - Fork 384
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
[Feature]: add derives for Key/Value conversions #1685
Labels
Comments
Sufflope
added
enhancement
New feature or request
triage:todo
Needs to be traiged.
labels
Apr 28, 2024
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related Problems?
In my projects I have multiple lightweight types that I want to trace with opentelemetry as key-values, where implementing the necessary conversions feels boilerplatey, and is actually longer than the types and their business logic themselves.
Think something like:
Describe the solution you'd like:
I would like to suggest derive macros to derive Key, Value, StringValue and KeyValue conversions. Above example would look like:
Considered Alternatives
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: