Skip to content

Commit da23608

Browse files
committed
Code cleanup
1 parent f4e28a0 commit da23608

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

sdk/src/trace/span.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@ class Span final : public opentelemetry::trace::Span
4242
opentelemetry::common::SystemTimestamp timestamp,
4343
const opentelemetry::common::KeyValueIterable &attributes) noexcept override;
4444

45-
void SetStatus(opentelemetry::trace::StatusCode code,
46-
nostd::string_view description) noexcept override;
47-
4845
#if OPENTELEMETRY_ABI_VERSION_NO >= 2
4946
void AddLink(const opentelemetry::trace::SpanContext &target,
5047
const opentelemetry::common::KeyValueIterable &attrs) noexcept override;
5148

5249
void AddLinks(const opentelemetry::trace::SpanContextKeyValueIterable &links) noexcept override;
5350
#endif
5451

52+
void SetStatus(opentelemetry::trace::StatusCode code,
53+
nostd::string_view description) noexcept override;
54+
5555
void UpdateName(nostd::string_view name) noexcept override;
5656

5757
void End(const opentelemetry::trace::EndSpanOptions &options = {}) noexcept override;

sdk/test/trace/tracer_test.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -624,9 +624,7 @@ TEST(Tracer, SpanAddLinkAbiv2)
624624
}
625625
}
626626
}
627-
#endif /* OPENTELEMETRY_ABI_VERSION_NO >= 2 */
628627

629-
#if OPENTELEMETRY_ABI_VERSION_NO >= 2
630628
TEST(Tracer, SpanAddLinksAbiv2)
631629
{
632630
InMemorySpanExporter *exporter = new InMemorySpanExporter();
@@ -856,9 +854,7 @@ TEST(Tracer, SpanAddLinksAbiv2)
856854
}
857855
}
858856
}
859-
#endif /* OPENTELEMETRY_ABI_VERSION_NO >= 2 */
860857

861-
#if OPENTELEMETRY_ABI_VERSION_NO >= 2
862858
TEST(Tracer, SpanMixLinksAbiv2)
863859
{
864860
InMemorySpanExporter *exporter = new InMemorySpanExporter();

0 commit comments

Comments
 (0)