@@ -107,7 +107,7 @@ std::string GetName(T &t)
107107 * @return Span Start timestamp
108108 */
109109template <class T >
110- common::SystemTimestamp GetStartTime (T &t)
110+ opentelemetry:: common::SystemTimestamp GetStartTime (T &t)
111111{
112112 return t.GetStartTime ();
113113}
@@ -119,7 +119,7 @@ common::SystemTimestamp GetStartTime(T &t)
119119 * @return Span Stop timestamp
120120 */
121121template <class T >
122- common::SystemTimestamp GetEndTime (T &t)
122+ opentelemetry:: common::SystemTimestamp GetEndTime (T &t)
123123{
124124 return t.GetEndTime ();
125125}
@@ -161,7 +161,7 @@ void UpdateStatus(T &t, Properties &props)
161161 */
162162
163163class Tracer : public opentelemetry ::trace::Tracer,
164- public std::enable_shared_from_this<trace::Tracer>
164+ public std::enable_shared_from_this<opentelemetry:: trace::Tracer>
165165{
166166
167167 /* *
@@ -214,16 +214,16 @@ class Tracer : public opentelemetry::trace::Tracer,
214214 {
215215 size_t idx = 0 ;
216216 std::string linksValue;
217- links.ForEachKeyValue (
218- [&](opentelemetry::trace::SpanContext ctx, const common::KeyValueIterable &) {
219- if (!linksValue.empty ())
220- {
221- linksValue += ' ,' ;
222- linksValue += ToLowerBase16 (ctx.span_id ());
223- }
224- idx++;
225- return true ;
226- });
217+ links.ForEachKeyValue ([&](opentelemetry::trace::SpanContext ctx,
218+ const opentelemetry:: common::KeyValueIterable &) {
219+ if (!linksValue.empty ())
220+ {
221+ linksValue += ' ,' ;
222+ linksValue += ToLowerBase16 (ctx.span_id ());
223+ }
224+ idx++;
225+ return true ;
226+ });
227227 attributes[ETW_FIELD_SPAN_LINKS ] = linksValue;
228228 }
229229 }
@@ -414,7 +414,7 @@ class Tracer : public opentelemetry::trace::Tracer,
414414 */
415415 nostd::shared_ptr<opentelemetry::trace::Span> StartSpan (
416416 nostd::string_view name,
417- const common::KeyValueIterable &attributes,
417+ const opentelemetry:: common::KeyValueIterable &attributes,
418418 const opentelemetry::trace::SpanContextKeyValueIterable &links,
419419 const opentelemetry::trace::StartSpanOptions &options = {}) noexcept override
420420 {
@@ -425,8 +425,9 @@ class Tracer : public opentelemetry::trace::Tracer,
425425 Properties evtCopy = attributes;
426426 return StartSpan (name, evtCopy, links, options);
427427#else // OPENTELEMETRY_RTTI_ENABLED is defined
428- common::KeyValueIterable &attribs = const_cast <common::KeyValueIterable &>(attributes);
429- Properties *evt = dynamic_cast <Properties *>(&attribs);
428+ opentelemetry::common::KeyValueIterable &attribs =
429+ const_cast <opentelemetry::common::KeyValueIterable &>(attributes);
430+ Properties *evt = dynamic_cast <Properties *>(&attribs);
430431 if (evt != nullptr )
431432 {
432433 // Pass as a reference to original modifyable collection without creating a copy
@@ -491,8 +492,9 @@ class Tracer : public opentelemetry::trace::Tracer,
491492
492493 if (sampling_result.decision == sdk::trace::Decision::DROP )
493494 {
494- auto noopSpan = nostd::shared_ptr<trace::Span>{
495- new (std::nothrow) trace::NoopSpan (this ->shared_from_this (), std::move (spanContext))};
495+ auto noopSpan = nostd::shared_ptr<opentelemetry::trace::Span>{
496+ new (std::nothrow)
497+ opentelemetry::trace::NoopSpan (this ->shared_from_this (), std::move (spanContext))};
496498 return noopSpan;
497499 }
498500
@@ -602,9 +604,9 @@ class Tracer : public opentelemetry::trace::Tracer,
602604 * @return
603605 */
604606 void AddEvent (opentelemetry::trace::Span &span,
605- nostd::string_view name,
606- common::SystemTimestamp timestamp,
607- const common::KeyValueIterable &attributes) noexcept
607+ opentelemetry:: nostd::string_view name,
608+ opentelemetry:: common::SystemTimestamp timestamp,
609+ const opentelemetry:: common::KeyValueIterable &attributes) noexcept
608610 {
609611 // If RTTI is enabled by compiler, the below code modifies the attributes object passed as arg,
610612 // which is sometime not desirable, set OPENTELEMETRY_NOT_USE_RTTI in application
@@ -614,8 +616,9 @@ class Tracer : public opentelemetry::trace::Tracer,
614616 Properties evtCopy = attributes;
615617 return AddEvent (span, name, timestamp, evtCopy);
616618#else // OPENTELEMETRY_RTTI_ENABLED is defined
617- common::KeyValueIterable &attribs = const_cast <common::KeyValueIterable &>(attributes);
618- Properties *evt = dynamic_cast <Properties *>(&attribs);
619+ opentelemetry::common::KeyValueIterable &attribs =
620+ const_cast <opentelemetry::common::KeyValueIterable &>(attributes);
621+ Properties *evt = dynamic_cast <Properties *>(&attribs);
619622 if (evt != nullptr )
620623 {
621624 // Pass as a reference to original modifyable collection without creating a copy
@@ -635,8 +638,8 @@ class Tracer : public opentelemetry::trace::Tracer,
635638 * @return
636639 */
637640 void AddEvent (opentelemetry::trace::Span &span,
638- nostd::string_view name,
639- common::SystemTimestamp timestamp,
641+ opentelemetry:: nostd::string_view name,
642+ opentelemetry:: common::SystemTimestamp timestamp,
640643 Properties &evt) noexcept
641644 {
642645 // TODO: respect originating timestamp. Do we need to reserve
@@ -693,8 +696,8 @@ class Tracer : public opentelemetry::trace::Tracer,
693696 * @return
694697 */
695698 void AddEvent (opentelemetry::trace::Span &span,
696- nostd::string_view name,
697- common::SystemTimestamp timestamp) noexcept
699+ opentelemetry:: nostd::string_view name,
700+ opentelemetry:: common::SystemTimestamp timestamp) noexcept
698701 {
699702 AddEvent (span, name, timestamp, sdk::GetEmptyAttributes ());
700703 }
@@ -728,8 +731,8 @@ class Span : public opentelemetry::trace::Span
728731 */
729732 Properties attributes_;
730733
731- common::SystemTimestamp start_time_;
732- common::SystemTimestamp end_time_;
734+ opentelemetry:: common::SystemTimestamp start_time_;
735+ opentelemetry:: common::SystemTimestamp end_time_;
733736
734737 opentelemetry::trace::StatusCode status_code_{opentelemetry::trace::StatusCode::kUnset };
735738 std::string status_description_;
@@ -794,13 +797,13 @@ class Span : public opentelemetry::trace::Span
794797 * @brief Get start time of this Span.
795798 * @return
796799 */
797- common::SystemTimestamp GetStartTime () { return start_time_; }
800+ opentelemetry:: common::SystemTimestamp GetStartTime () { return start_time_; }
798801
799802 /* *
800803 * @brief Get end time of this Span.
801804 * @return
802805 */
803- common::SystemTimestamp GetEndTime () { return end_time_; }
806+ opentelemetry:: common::SystemTimestamp GetEndTime () { return end_time_; }
804807
805808 /* *
806809 * @brief Get Span Name.
@@ -849,7 +852,8 @@ class Span : public opentelemetry::trace::Span
849852 * @param timestamp
850853 * @return
851854 */
852- void AddEvent (nostd::string_view name, common::SystemTimestamp timestamp) noexcept override
855+ void AddEvent (nostd::string_view name,
856+ opentelemetry::common::SystemTimestamp timestamp) noexcept override
853857 {
854858 owner_.AddEvent (*this , name, timestamp);
855859 }
@@ -861,9 +865,9 @@ class Span : public opentelemetry::trace::Span
861865 * @param attributes Event attributes.
862866 * @return
863867 */
864- void AddEvent (nostd::string_view name,
865- common::SystemTimestamp timestamp,
866- const common::KeyValueIterable &attributes) noexcept override
868+ void AddEvent (opentelemetry:: nostd::string_view name,
869+ opentelemetry:: common::SystemTimestamp timestamp,
870+ const opentelemetry:: common::KeyValueIterable &attributes) noexcept override
867871 {
868872 owner_.AddEvent (*this , name, timestamp, attributes);
869873 }
@@ -901,7 +905,8 @@ class Span : public opentelemetry::trace::Span
901905 * @param value
902906 * @return
903907 */
904- void SetAttribute (nostd::string_view key, const common::AttributeValue &value) noexcept override
908+ void SetAttribute (nostd::string_view key,
909+ const opentelemetry::common::AttributeValue &value) noexcept override
905910 {
906911 // don't override fields propagated from span data.
907912 if (key == ETW_FIELD_NAME || key == ETW_FIELD_SPAN_ID || key == ETW_FIELD_TRACE_ID ||
0 commit comments