| 61 | : incoming_headers_(incoming_headers) {} |
| 62 | |
| 63 | otel::nostd::string_view Get(otel::nostd::string_view key) const noexcept override { |
| 64 | std::string_view arrow_key(key.data(), key.size()); |
| 65 | auto it = incoming_headers_.find(arrow_key); |
| 66 | if (it == incoming_headers_.end()) return ""; |
| 67 | std::string_view result = it->second; |
| 68 | return {result.data(), result.size()}; |
| 69 | } |
| 70 | |
| 71 | void Set(otel::nostd::string_view, otel::nostd::string_view) noexcept override {} |
| 72 |