Open
Description
Component
None
Is your feature request related to a problem?
I want to eliminate the need to define a collection of strings representing my attribute keys.
What is the expected behavior?
I define a struct/class in my project like below
[attributes("disk")]
internal static partial struct DiskAttributeNames
{
}
Once generator runs you end with
internal static partial struct DiskAttributeNames
{
internal static partial struct disk
{
internal static partial struct io
{
internal const string direction = "disk.io.direction";
}
}
}
And you can use them via DiskAttributeNames.disk.io.direction
Which alternative solutions or features have you considered?
Use nuget package of all semconv attributes but adds a transitive dependency to customer apps which can cause breaking changes
Additional context
No response