Allow creation of AttributeValue from nostd::span<const char*> #1416
Labels
breaking change
API or ABI breaking change
do-not-stale
good first issue
Good for newcomers
help wanted
Good for taking. Extra help will be provided by maintainers
Is your feature request related to a problem?
For debugging purposes I would like to add current callstack as an attribute to a span. backtrace_symbols returns
char**
, so I would like to use it directly and pass tospan->SetAttribute(...)
, wrapped innostd::span<const char*>
. Now this is not possible,AttributeValue
cannot be created fromnostd::span<const char*>
.Describe the solution you'd like
Allow creation of
AttributeValue
fromnostd::span<const char*>
.Describe alternatives you've considered
Now I need to create extra
std::vector<opentelemetry::nostd::string_view>
as a workaround.The text was updated successfully, but these errors were encountered: