Skip to content

Commit 5bec076

Browse files
Tim KlemmTim Klemm
Tim Klemm
authored and
Tim Klemm
committed
HPCC-33148: Replace OwnedSpanScope in ws_sqlService.cpp
Signed-off-by: Tim Klemm <[email protected]>
1 parent 0d86c5d commit 5bec076

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

esp/services/ws_sql/ws_sqlService.cpp

+8-8
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ printTree(sqlAST, 0);
685685

686686
bool CwssqlEx::getWUResult(IEspContext &context, const char * wuid, StringBuffer &result, unsigned start, unsigned count, int sequence, const char * dsname, const char * schemaname)
687687
{
688-
OwnedSpanScope resultSpanScope(queryThreadedActiveSpan()->createInternalSpan("get_wu_result"));
688+
OwnedActiveSpanScope resultSpanScope(queryThreadedActiveSpan()->createInternalSpan("get_wu_result"));
689689
try
690690
{
691691
if (wuid && *wuid)
@@ -710,7 +710,7 @@ bool CwssqlEx::getWUResult(IEspContext &context, const char * wuid, StringBuffer
710710
Owned<INewResultSet> nr = factory->createNewResultSet(wuid, sequence, NULL);
711711
if (nr.get())
712712
{
713-
OwnedSpanScope xmlSpanScope(queryThreadedActiveSpan()->createInternalSpan("get_result_xml"));
713+
OwnedActiveSpanScope xmlSpanScope(queryThreadedActiveSpan()->createInternalSpan("get_result_xml"));
714714
try
715715
{
716716
getResultXml(resultXML, nr.get(), dsname, start, count, schemaname);
@@ -854,7 +854,7 @@ void CwssqlEx::processMultipleClusterOption(StringArray & clusters, const char
854854

855855
bool CwssqlEx::onExecuteSQL(IEspContext &context, IEspExecuteSQLRequest &req, IEspExecuteSQLResponse &resp)
856856
{
857-
OwnedSpanScope exSpanScope(queryThreadedActiveSpan()->createInternalSpan("on_execute_sql"));
857+
OwnedActiveSpanScope exSpanScope(queryThreadedActiveSpan()->createInternalSpan("on_execute_sql"));
858858
try
859859
{
860860
context.ensureFeatureAccess(WSSQLACCESS, SecAccess_Write, -1, "WsSQL::ExecuteSQL: Permission denied.");
@@ -964,7 +964,7 @@ bool CwssqlEx::onExecuteSQL(IEspContext &context, IEspExecuteSQLRequest &req, IE
964964
clonable = false;
965965

966966
{
967-
OwnedSpanScope eclGenSpanScope(queryThreadedActiveSpan()->createInternalSpan("generate_ecl"));
967+
OwnedActiveSpanScope eclGenSpanScope(queryThreadedActiveSpan()->createInternalSpan("generate_ecl"));
968968
try
969969
{
970970
ECLEngine::generateECL(parsedSQL, ecltext);
@@ -1008,7 +1008,7 @@ bool CwssqlEx::onExecuteSQL(IEspContext &context, IEspExecuteSQLRequest &req, IE
10081008
wu->commit();
10091009
wu.clear();
10101010

1011-
OwnedSpanScope wuCompileSpanScope(queryThreadedActiveSpan()->createInternalSpan("submit_ws_workunits"));
1011+
OwnedActiveSpanScope wuCompileSpanScope(queryThreadedActiveSpan()->createInternalSpan("submit_ws_workunits"));
10121012
try
10131013
{
10141014
WsWuHelpers::submitWsWorkunit(context, compiledwuid.str(), cluster, nullptr, 0, 0, true, false, false, nullptr, nullptr, nullptr, nullptr);
@@ -1052,7 +1052,7 @@ bool CwssqlEx::onExecuteSQL(IEspContext &context, IEspExecuteSQLRequest &req, IE
10521052

10531053
if (clonable)
10541054
{
1055-
OwnedSpanScope wuCloneSpanScope(queryThreadedActiveSpan()->createInternalSpan("clone_and_execute_wu"));
1055+
OwnedActiveSpanScope wuCloneSpanScope(queryThreadedActiveSpan()->createInternalSpan("clone_and_execute_wu"));
10561056
try
10571057
{
10581058
wuCloneSpanScope->setSpanAttribute("compiled_wuid", compiledwuid.str());
@@ -1071,7 +1071,7 @@ bool CwssqlEx::onExecuteSQL(IEspContext &context, IEspExecuteSQLRequest &req, IE
10711071
}
10721072
else
10731073
{
1074-
OwnedSpanScope wuSubmitSpanScope(queryThreadedActiveSpan()->createInternalSpan("submit_ws_workunit"));
1074+
OwnedActiveSpanScope wuSubmitSpanScope(queryThreadedActiveSpan()->createInternalSpan("submit_ws_workunit"));
10751075
try
10761076
{
10771077
WsWuHelpers::submitWsWorkunit(context, compiledwuid.str(), cluster, nullptr, 0, 0, false, true, true, nullptr, nullptr, nullptr, nullptr);
@@ -1090,7 +1090,7 @@ bool CwssqlEx::onExecuteSQL(IEspContext &context, IEspExecuteSQLRequest &req, IE
10901090
int timeToWait = req.getWait();
10911091
if (timeToWait != 0)
10921092
{
1093-
OwnedSpanScope wuProcessSpanScope(queryThreadedActiveSpan()->createInternalSpan("wait_for_workunit_to_complete"));
1093+
OwnedActiveSpanScope wuProcessSpanScope(queryThreadedActiveSpan()->createInternalSpan("wait_for_workunit_to_complete"));
10941094
try
10951095
{
10961096
waitForWorkUnitToComplete(runningwuid.str(), timeToWait);

0 commit comments

Comments
 (0)