Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
marcalff committed Oct 27, 2023
1 parent f4e28a0 commit da23608
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 3 additions & 3 deletions sdk/src/trace/span.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ class Span final : public opentelemetry::trace::Span
opentelemetry::common::SystemTimestamp timestamp,
const opentelemetry::common::KeyValueIterable &attributes) noexcept override;

void SetStatus(opentelemetry::trace::StatusCode code,
nostd::string_view description) noexcept override;

#if OPENTELEMETRY_ABI_VERSION_NO >= 2
void AddLink(const opentelemetry::trace::SpanContext &target,
const opentelemetry::common::KeyValueIterable &attrs) noexcept override;

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

void SetStatus(opentelemetry::trace::StatusCode code,
nostd::string_view description) noexcept override;

void UpdateName(nostd::string_view name) noexcept override;

void End(const opentelemetry::trace::EndSpanOptions &options = {}) noexcept override;
Expand Down
4 changes: 0 additions & 4 deletions sdk/test/trace/tracer_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -624,9 +624,7 @@ TEST(Tracer, SpanAddLinkAbiv2)
}
}
}
#endif /* OPENTELEMETRY_ABI_VERSION_NO >= 2 */

#if OPENTELEMETRY_ABI_VERSION_NO >= 2
TEST(Tracer, SpanAddLinksAbiv2)
{
InMemorySpanExporter *exporter = new InMemorySpanExporter();
Expand Down Expand Up @@ -856,9 +854,7 @@ TEST(Tracer, SpanAddLinksAbiv2)
}
}
}
#endif /* OPENTELEMETRY_ABI_VERSION_NO >= 2 */

#if OPENTELEMETRY_ABI_VERSION_NO >= 2
TEST(Tracer, SpanMixLinksAbiv2)
{
InMemorySpanExporter *exporter = new InMemorySpanExporter();
Expand Down

0 comments on commit da23608

Please sign in to comment.