clang-tidy fixes

Signed-off-by: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com>
This commit is contained in:
Pratik Mankawde
2026-06-01 14:45:29 +01:00
parent c76008d24c
commit 3cd3d5e80e
4 changed files with 7 additions and 9 deletions

View File

@@ -27,8 +27,7 @@
#include <cstdint>
namespace xrpl {
namespace telemetry {
namespace xrpl::telemetry {
/** Extract OTel context from a protobuf TraceContext message.
@@ -101,7 +100,6 @@ injectToProtobuf(opentelemetry::context::Context const& ctx, protocol::TraceCont
// Wire trace_state through inject/extract once the consumer lands.
}
} // namespace telemetry
} // namespace xrpl
} // namespace xrpl::telemetry
#endif // XRPL_ENABLE_TELEMETRY

View File

@@ -19,6 +19,8 @@
#include <opentelemetry/trace/span.h>
#include <opentelemetry/trace/span_metadata.h>
#include <opentelemetry/trace/tracer.h>
#include <string_view>
#endif
#include <memory>

View File

@@ -28,7 +28,6 @@
#include <xrpl/telemetry/Telemetry.h>
#include <xrpl/telemetry/TraceContextPropagator.h>
#include <opentelemetry/common/attribute_value.h>
#include <opentelemetry/context/context.h>
#include <opentelemetry/context/runtime_context.h>
#include <opentelemetry/nostd/shared_ptr.h>
@@ -47,12 +46,11 @@
#include <cstdint>
#include <cstring>
#include <exception>
#include <initializer_list>
#include <memory>
#include <string>
#include <string_view>
#include <typeinfo>
#include <utility>
#include <vector>
namespace xrpl::telemetry {

View File

@@ -208,7 +208,7 @@ public:
return false;
}
std::string const&
[[nodiscard]] std::string const&
getConsensusTraceStrategy() const override
{
return setup_.consensusTraceStrategy;
@@ -388,7 +388,7 @@ public:
return setup_.traceLedger;
}
std::string const&
[[nodiscard]] std::string const&
getConsensusTraceStrategy() const override
{
return setup_.consensusTraceStrategy;