@@ -224,7 +224,7 @@ class OrderedAttributeMap : public std::map<std::string, OwnedAttributeValue>
224224struct MixedAttributeMapStorage
225225{
226226 std::unordered_map<std::string, opentelemetry::common::AttributeValue> attributes;
227- AttributeMap owened_attributes ;
227+ AttributeMap owned_attributes ;
228228 std::unordered_map<std::string, OwnedAttributeView> owened_attributes_view;
229229};
230230
@@ -242,64 +242,64 @@ class MixedAttributeViewSetter
242242
243243 void operator ()(bool v)
244244 {
245- storage_->owened_attributes [std::string (*key_)] = (*converter_)(v);
246- storage_->attributes [std::string (*key_)] = v;
245+ storage_->owned_attributes [std::string (*key_)] = (*converter_)(v);
246+ storage_->attributes [std::string (*key_)] = v;
247247 }
248248
249249 void operator ()(int32_t v)
250250 {
251- storage_->owened_attributes [std::string (*key_)] = (*converter_)(v);
252- storage_->attributes [std::string (*key_)] = v;
251+ storage_->owned_attributes [std::string (*key_)] = (*converter_)(v);
252+ storage_->attributes [std::string (*key_)] = v;
253253 }
254254
255255 void operator ()(uint32_t v)
256256 {
257- storage_->owened_attributes [std::string (*key_)] = (*converter_)(v);
258- storage_->attributes [std::string (*key_)] = v;
257+ storage_->owned_attributes [std::string (*key_)] = (*converter_)(v);
258+ storage_->attributes [std::string (*key_)] = v;
259259 }
260260
261261 void operator ()(int64_t v)
262262 {
263- storage_->owened_attributes [std::string (*key_)] = (*converter_)(v);
264- storage_->attributes [std::string (*key_)] = v;
263+ storage_->owned_attributes [std::string (*key_)] = (*converter_)(v);
264+ storage_->attributes [std::string (*key_)] = v;
265265 }
266266
267267 void operator ()(uint64_t v)
268268 {
269- storage_->owened_attributes [std::string (*key_)] = (*converter_)(v);
270- storage_->attributes [std::string (*key_)] = v;
269+ storage_->owned_attributes [std::string (*key_)] = (*converter_)(v);
270+ storage_->attributes [std::string (*key_)] = v;
271271 }
272272
273273 void operator ()(double v)
274274 {
275- storage_->owened_attributes [std::string (*key_)] = (*converter_)(v);
276- storage_->attributes [std::string (*key_)] = v;
275+ storage_->owned_attributes [std::string (*key_)] = (*converter_)(v);
276+ storage_->attributes [std::string (*key_)] = v;
277277 }
278278
279279 void operator ()(nostd::string_view v)
280280 {
281- auto &owned_value = storage_->owened_attributes [std::string (*key_)];
281+ auto &owned_value = storage_->owned_attributes [std::string (*key_)];
282282 owned_value = (*converter_)(v);
283283 storage_->attributes [std::string (*key_)] = nostd::get<std::string>(owned_value);
284284 }
285285
286286 void operator ()(const char *v)
287287 {
288- auto &owned_value = storage_->owened_attributes [std::string (*key_)];
288+ auto &owned_value = storage_->owned_attributes [std::string (*key_)];
289289 owned_value = (*converter_)(v);
290290 storage_->attributes [std::string (*key_)] = nostd::get<std::string>(owned_value).c_str ();
291291 }
292292
293293 void operator ()(nostd::span<const uint8_t > v)
294294 {
295- auto &owned_value = storage_->owened_attributes [std::string (*key_)];
295+ auto &owned_value = storage_->owned_attributes [std::string (*key_)];
296296 owned_value = (*converter_)(v);
297297 storage_->attributes [std::string (*key_)] = nostd::get<std::vector<uint8_t >>(owned_value);
298298 }
299299
300300 void operator ()(nostd::span<const bool > v)
301301 {
302- storage_->owened_attributes [std::string (*key_)] = (*converter_)(v);
302+ storage_->owned_attributes [std::string (*key_)] = (*converter_)(v);
303303 if (v.empty ())
304304 {
305305 storage_->attributes [std::string (*key_)] = nostd::span<const bool >{};
@@ -320,42 +320,42 @@ class MixedAttributeViewSetter
320320
321321 void operator ()(nostd::span<const int32_t > v)
322322 {
323- auto &owned_value = storage_->owened_attributes [std::string (*key_)];
323+ auto &owned_value = storage_->owned_attributes [std::string (*key_)];
324324 owned_value = (*converter_)(v);
325325 storage_->attributes [std::string (*key_)] = nostd::get<std::vector<int32_t >>(owned_value);
326326 }
327327
328328 void operator ()(nostd::span<const uint32_t > v)
329329 {
330- auto &owned_value = storage_->owened_attributes [std::string (*key_)];
330+ auto &owned_value = storage_->owned_attributes [std::string (*key_)];
331331 owned_value = (*converter_)(v);
332332 storage_->attributes [std::string (*key_)] = nostd::get<std::vector<uint32_t >>(owned_value);
333333 }
334334
335335 void operator ()(nostd::span<const int64_t > v)
336336 {
337- auto &owned_value = storage_->owened_attributes [std::string (*key_)];
337+ auto &owned_value = storage_->owned_attributes [std::string (*key_)];
338338 owned_value = (*converter_)(v);
339339 storage_->attributes [std::string (*key_)] = nostd::get<std::vector<int64_t >>(owned_value);
340340 }
341341
342342 void operator ()(nostd::span<const uint64_t > v)
343343 {
344- auto &owned_value = storage_->owened_attributes [std::string (*key_)];
344+ auto &owned_value = storage_->owned_attributes [std::string (*key_)];
345345 owned_value = (*converter_)(v);
346346 storage_->attributes [std::string (*key_)] = nostd::get<std::vector<uint64_t >>(owned_value);
347347 }
348348
349349 void operator ()(nostd::span<const double > v)
350350 {
351- auto &owned_value = storage_->owened_attributes [std::string (*key_)];
351+ auto &owned_value = storage_->owned_attributes [std::string (*key_)];
352352 owned_value = (*converter_)(v);
353353 storage_->attributes [std::string (*key_)] = nostd::get<std::vector<double >>(owned_value);
354354 }
355355
356356 void operator ()(nostd::span<const nostd::string_view> v)
357357 {
358- auto &owned_value = storage_->owened_attributes [std::string (*key_)];
358+ auto &owned_value = storage_->owned_attributes [std::string (*key_)];
359359 owned_value = (*converter_)(v);
360360
361361 if (v.empty ())
@@ -436,7 +436,7 @@ class MixedAttributeMap
436436 return storage_.attributes ;
437437 }
438438
439- const AttributeMap &GetOwnedAttributes () const noexcept { return storage_.owened_attributes ; }
439+ const AttributeMap &GetOwnedAttributes () const noexcept { return storage_.owned_attributes ; }
440440
441441 // Convert non-owning key-value to owning std::string(key) and OwnedAttributeValue(value)
442442 void SetAttribute (nostd::string_view key,
@@ -448,7 +448,7 @@ class MixedAttributeMap
448448 void Reserve (AttributeMap::size_type size)
449449 {
450450 storage_.attributes .reserve (size);
451- storage_.owened_attributes .reserve (size);
451+ storage_.owned_attributes .reserve (size);
452452 }
453453
454454 AttributeMap::size_type Size () const noexcept { return storage_.attributes .size (); }
0 commit comments