diff --git a/google/cloud/opentelemetry/internal/recordable.h b/google/cloud/opentelemetry/internal/recordable.h index 1dd898dbba924..53df5bfb3a64c 100644 --- a/google/cloud/opentelemetry/internal/recordable.h +++ b/google/cloud/opentelemetry/internal/recordable.h @@ -20,6 +20,7 @@ #include #include #include +#include #include namespace google { @@ -126,6 +127,11 @@ class Recordable final : public opentelemetry::sdk::trace::Recordable { void SetName(opentelemetry::nostd::string_view name) noexcept override; +#if OPENTELEMETRY_VERSION_MAJOR > 1 || \ + (OPENTELEMETRY_VERSION_MAJOR == 1 && OPENTELEMETRY_VERSION_MINOR >= 14) + void SetTraceFlags(opentelemetry::trace::TraceFlags) noexcept override {} +#endif + void SetSpanKind(opentelemetry::trace::SpanKind span_kind) noexcept override; void SetResource(