mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-23 23:20:33 +00:00
refactor(telemetry): use activateIfLive helper at ledger.acquire site
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -459,8 +459,7 @@ InboundLedger::done()
|
||||
// activation pops at the end of this block (restoring the prior context)
|
||||
// while acquireSpan_ is still alive, then reset() ends the span.
|
||||
{
|
||||
auto acquireActivation = (acquireSpan_ && *acquireSpan_) ? acquireSpan_->activate()
|
||||
: telemetry::ScopedActivation{};
|
||||
auto acquireActivation = telemetry::activateIfLive(acquireSpan_);
|
||||
if (acquireSpan_ && *acquireSpan_)
|
||||
{
|
||||
using namespace telemetry;
|
||||
|
||||
Reference in New Issue
Block a user