open-telemetry / open-telemetry/opentelemetry-cpp

Allow creation of AttributeValue from nostd::span<const char*>

Open
#1,416 4 comments 0 reactions 1 assignee View on GitHub

@lalitb is already working on this.

Since Jun 1, 2022.

breaking change do-not-stale good first issue help wanted
Dominant language
C++
Stars
1.4k
Forks
632
Avg merge
1d 13h
Merged PRs (30d)
75

Description

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 to span->SetAttribute(...), wrapped in nostd::span<const char*>. Now this is not possible, AttributeValue cannot be created from nostd::span<const char*>.

Describe the solution you'd like
Allow creation of AttributeValue from nostd::span<const char*>.

Describe alternatives you've considered
Now I need to create extra std::vector<opentelemetry::nostd::string_view> as a workaround.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.