fix(telemetry): qualify tx_span with telemetry:: namespace in apply()

The apply() function doesn't have a `using namespace telemetry` directive
(unlike processTransaction), so tx_span attrs need explicit qualification.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Pratik Mankawde
2026-06-03 16:06:51 +01:00
parent 1a2f9a71f5
commit dd9cde88f3

View File

@@ -1565,8 +1565,9 @@ NetworkOPsImp::apply(std::unique_lock<std::mutex>& batchLock)
{
if (e.span && *e.span)
{
e.span->setAttribute(tx_span::attr::terResult, transToken(e.result).c_str());
e.span->setAttribute(tx_span::attr::applied, e.applied);
e.span->setAttribute(
telemetry::tx_span::attr::terResult, transToken(e.result).c_str());
e.span->setAttribute(telemetry::tx_span::attr::applied, e.applied);
}
e.transaction->clearSubmitResult();