diff --git a/include/xrpl/telemetry/DeterministicIdGenerator.h b/include/xrpl/telemetry/DeterministicIdGenerator.h index d284a2d4b4..b0ec492e55 100644 --- a/include/xrpl/telemetry/DeterministicIdGenerator.h +++ b/include/xrpl/telemetry/DeterministicIdGenerator.h @@ -73,7 +73,7 @@ namespace xrpl::telemetry { * @code * // With an active parent span, startSpan() inherits the parent's trace_id * // and the SDK does NOT call GenerateTraceId(), so no PendingTraceId is used. - * // auto child = parentGuard.childSpan("subtask"); // random/parent trace_id + * // auto child = parentGuard.childSpan(rpc_span::op::process); // random/parent trace_id * @endcode */ class DeterministicIdGenerator final : public opentelemetry::sdk::trace::IdGenerator diff --git a/include/xrpl/telemetry/SpanGuard.h b/include/xrpl/telemetry/SpanGuard.h index 8d2aa15dab..f5f3319b14 100644 --- a/include/xrpl/telemetry/SpanGuard.h +++ b/include/xrpl/telemetry/SpanGuard.h @@ -612,7 +612,7 @@ public: * TraceCategory::Rpc, rpc_span::prefix::command, commandName); * span.setAttribute(rpc_span::attr::command, commandName); * // childSpan parents to `span` because it is active on this thread - * auto child = span.childSpan(rpc_span::op::dispatch); + * auto child = span.childSpan(rpc_span::op::process); * @endcode * * 2. Capture on this thread, hand off to another (edge case):