From 039d6ccf4f256fbf9e701100ce89238c5dd3ae7a Mon Sep 17 00:00:00 2001 From: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com> Date: Mon, 15 Jun 2026 20:47:57 +0100 Subject: [PATCH] fix(telemetry): use underscore form for span-link attribute key The follows-from link attribute used the dotted xrpl.link.type form, which is reserved for resource attributes. Span attributes use the _ underscore form, so the key becomes link_type. Co-Authored-By: Claude Opus 4.8 --- src/libxrpl/telemetry/SpanGuard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libxrpl/telemetry/SpanGuard.cpp b/src/libxrpl/telemetry/SpanGuard.cpp index 10778a0a7a..193c8de2f1 100644 --- a/src/libxrpl/telemetry/SpanGuard.cpp +++ b/src/libxrpl/telemetry/SpanGuard.cpp @@ -144,7 +144,7 @@ namespace { // emitted by both linkedSpan() overloads. Custom xrpl attribute — not part // of the OTel semantic conventions, so defined here rather than pulled from // . -constexpr char const* kLinkTypeKey = "xrpl.link.type"; +constexpr char const* kLinkTypeKey = "link_type"; constexpr char const* kLinkTypeFollowsFrom = "follows_from"; // Map a TraceCategory to an OTel SpanKind so Tempo's service-graph /