sync code

This commit is contained in:
Ned Wright
2024-09-17 10:53:09 +00:00
parent 3fe0b42fcd
commit 586150fe4f
143 changed files with 1886 additions and 380 deletions

View File

@@ -42,6 +42,8 @@ Context::getAllStrings(const EnvKeyAttr::ParamAttr &param) const
return result;
}
static const AlertInfo alert(AlertTeam::CORE, "environment contexts");
const std::string
Context::convertToString(MetaDataType type)
{
@@ -58,9 +60,9 @@ Context::convertToString(MetaDataType type)
case MetaDataType::Direction: return "direction";
case MetaDataType::Email: return "email";
case MetaDataType::COUNT:
dbgAssert(false) << "COUNT is not a valid meta data type";
dbgAssert(false) << alert << "COUNT is not a valid meta data type";
}
dbgAssert(false) << "Reached impossible case with type=" << static_cast<int>(type);
dbgAssert(false) << alert << "Reached impossible case with type=" << static_cast<int>(type);
return "";
}

View File

@@ -213,8 +213,9 @@ Environment::Impl::registerContext(Context *ptr)
void
Environment::Impl::unregisterContext(Context *ptr)
{
dbgAssert(active_contexts.first.back() == ptr) <<
"Contexts are supposed to unregister in reverse order to their registration";
dbgAssert(active_contexts.first.back() == ptr)
<< AlertInfo(AlertTeam::CORE, "environment contexts")
<< "Contexts are supposed to unregister in reverse order to their registration";
active_contexts.first.pop_back();
}

View File

@@ -97,7 +97,7 @@ Span::convertSpanContextTypeToString(ContextType type)
return "Follows from";
}
}
dbgAssert(false) << "Span context not supported";
dbgAssert(false) << AlertInfo(AlertTeam::CORE, "tracing") << "Span context not supported";
return string();
}