Merge branch 'pratik/otel-phase5-docs-deployment' into pratik/otel-phase6-statsd

This commit is contained in:
Pratik Mankawde
2026-09-09 12:02:12 +01:00
3 changed files with 5 additions and 2 deletions

View File

@@ -31,7 +31,6 @@
#endif
#include <memory>
#include <string>
#include <utility>
namespace xrpl::telemetry {

View File

@@ -194,7 +194,7 @@ requireReadableFile(std::string const& path, char const* configKey)
{
reason = "not a regular file";
}
else if (std::ifstream stream{path, std::ios::in}; !stream)
else if (std::ifstream const stream{path, std::ios::in}; !stream)
{
reason = std::error_code{errno, std::generic_category()}.message();
}

View File

@@ -807,9 +807,13 @@ TxQ::apply(
{
span.setAttribute(txq_span::attr::terCode, transToken(directApplied->ter).c_str());
if (directApplied->applied)
{
span.setAttribute(txq_span::attr::txqStatus, txq_span::val::appliedDirect);
}
else
{
span.setAttribute(txq_span::attr::txqStatus, txq_span::val::failed);
}
}
return *directApplied;
}