mirror of
https://github.com/XRPLF/rippled.git
synced 2026-09-27 23:38:08 +00:00
Merge branch 'pratik/otel-phase5-docs-deployment' into pratik/otel-phase6-statsd
This commit is contained in:
@@ -31,7 +31,6 @@
|
||||
#endif
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
namespace xrpl::telemetry {
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user