mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-13 05:36:52 +00:00
test(telemetry): use convention-correct attribute keys in SpanGuard test
SpanGuardFactory.cpp set dotted "xrpl.rpc.command"/"xrpl.rpc.status" attribute keys. Test files are exempt from the naming check's Rule F (they pass arbitrary literals to exercise the API), so this slipped through, but the keys should still illustrate the underscore convention. Use "command"/"rpc_status". Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -28,8 +28,8 @@ TEST(SpanGuardFactory, category_span_returns_null_when_disabled)
|
||||
auto span = SpanGuard::span(TraceCategory::Rpc, "rpc", "test");
|
||||
EXPECT_FALSE(span);
|
||||
|
||||
span.setAttribute("xrpl.rpc.command", "test");
|
||||
span.setAttribute("xrpl.rpc.status", "success");
|
||||
span.setAttribute("command", "test");
|
||||
span.setAttribute("rpc_status", "success");
|
||||
}
|
||||
|
||||
TEST(SpanGuardFactory, child_span_null_when_no_parent)
|
||||
|
||||
Reference in New Issue
Block a user