From 43eddb79f6c8b506dd6f567cf32e0b2945c41cab Mon Sep 17 00:00:00 2001 From: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com> Date: Fri, 26 Jun 2026 16:55:29 +0100 Subject: [PATCH] fix(telemetry): use local link-type constants in followsFrom linkedSpan MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The followsFrom linkedSpan overload referenced attr::linkType / attr_val::followsFrom, which don't exist in SpanNames.h — the other two link sites already use the local kLinkTypeKey / kLinkTypeFollowsFrom constants. Unify the third site. Fixes arm64 build (-Werror). Co-Authored-By: Claude Opus 4.8 --- src/libxrpl/telemetry/SpanGuard.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libxrpl/telemetry/SpanGuard.cpp b/src/libxrpl/telemetry/SpanGuard.cpp index 7185792b2d..2e7dc742c7 100644 --- a/src/libxrpl/telemetry/SpanGuard.cpp +++ b/src/libxrpl/telemetry/SpanGuard.cpp @@ -317,8 +317,7 @@ SpanGuard::hashSpan( std::make_unique(tracer->StartSpan( std::string(name), {}, - {{linkSpan->GetContext(), - {{std::string(attr::linkType), std::string(attr_val::followsFrom)}}}}, + {{linkSpan->GetContext(), {{kLinkTypeKey, kLinkTypeFollowsFrom}}}}, opts))); } }