@@ -685,7 +685,7 @@ printTree(sqlAST, 0);
685
685
686
686
bool CwssqlEx::getWUResult (IEspContext &context, const char * wuid, StringBuffer &result, unsigned start, unsigned count, int sequence, const char * dsname, const char * schemaname)
687
687
{
688
- OwnedSpanScope resultSpanScope (queryThreadedActiveSpan ()->createInternalSpan (" get_wu_result" ));
688
+ OwnedActiveSpanScope resultSpanScope (queryThreadedActiveSpan ()->createInternalSpan (" get_wu_result" ));
689
689
try
690
690
{
691
691
if (wuid && *wuid)
@@ -710,7 +710,7 @@ bool CwssqlEx::getWUResult(IEspContext &context, const char * wuid, StringBuffer
710
710
Owned<INewResultSet> nr = factory->createNewResultSet (wuid, sequence, NULL );
711
711
if (nr.get ())
712
712
{
713
- OwnedSpanScope xmlSpanScope (queryThreadedActiveSpan ()->createInternalSpan (" get_result_xml" ));
713
+ OwnedActiveSpanScope xmlSpanScope (queryThreadedActiveSpan ()->createInternalSpan (" get_result_xml" ));
714
714
try
715
715
{
716
716
getResultXml (resultXML, nr.get (), dsname, start, count, schemaname);
@@ -854,7 +854,7 @@ void CwssqlEx::processMultipleClusterOption(StringArray & clusters, const char
854
854
855
855
bool CwssqlEx::onExecuteSQL (IEspContext &context, IEspExecuteSQLRequest &req, IEspExecuteSQLResponse &resp)
856
856
{
857
- OwnedSpanScope exSpanScope (queryThreadedActiveSpan ()->createInternalSpan (" on_execute_sql" ));
857
+ OwnedActiveSpanScope exSpanScope (queryThreadedActiveSpan ()->createInternalSpan (" on_execute_sql" ));
858
858
try
859
859
{
860
860
context.ensureFeatureAccess (WSSQLACCESS, SecAccess_Write, -1 , " WsSQL::ExecuteSQL: Permission denied." );
@@ -964,7 +964,7 @@ bool CwssqlEx::onExecuteSQL(IEspContext &context, IEspExecuteSQLRequest &req, IE
964
964
clonable = false ;
965
965
966
966
{
967
- OwnedSpanScope eclGenSpanScope (queryThreadedActiveSpan ()->createInternalSpan (" generate_ecl" ));
967
+ OwnedActiveSpanScope eclGenSpanScope (queryThreadedActiveSpan ()->createInternalSpan (" generate_ecl" ));
968
968
try
969
969
{
970
970
ECLEngine::generateECL (parsedSQL, ecltext);
@@ -1008,7 +1008,7 @@ bool CwssqlEx::onExecuteSQL(IEspContext &context, IEspExecuteSQLRequest &req, IE
1008
1008
wu->commit ();
1009
1009
wu.clear ();
1010
1010
1011
- OwnedSpanScope wuCompileSpanScope (queryThreadedActiveSpan ()->createInternalSpan (" submit_ws_workunits" ));
1011
+ OwnedActiveSpanScope wuCompileSpanScope (queryThreadedActiveSpan ()->createInternalSpan (" submit_ws_workunits" ));
1012
1012
try
1013
1013
{
1014
1014
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
1052
1052
1053
1053
if (clonable)
1054
1054
{
1055
- OwnedSpanScope wuCloneSpanScope (queryThreadedActiveSpan ()->createInternalSpan (" clone_and_execute_wu" ));
1055
+ OwnedActiveSpanScope wuCloneSpanScope (queryThreadedActiveSpan ()->createInternalSpan (" clone_and_execute_wu" ));
1056
1056
try
1057
1057
{
1058
1058
wuCloneSpanScope->setSpanAttribute (" compiled_wuid" , compiledwuid.str ());
@@ -1071,7 +1071,7 @@ bool CwssqlEx::onExecuteSQL(IEspContext &context, IEspExecuteSQLRequest &req, IE
1071
1071
}
1072
1072
else
1073
1073
{
1074
- OwnedSpanScope wuSubmitSpanScope (queryThreadedActiveSpan ()->createInternalSpan (" submit_ws_workunit" ));
1074
+ OwnedActiveSpanScope wuSubmitSpanScope (queryThreadedActiveSpan ()->createInternalSpan (" submit_ws_workunit" ));
1075
1075
try
1076
1076
{
1077
1077
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
1090
1090
int timeToWait = req.getWait ();
1091
1091
if (timeToWait != 0 )
1092
1092
{
1093
- OwnedSpanScope wuProcessSpanScope (queryThreadedActiveSpan ()->createInternalSpan (" wait_for_workunit_to_complete" ));
1093
+ OwnedActiveSpanScope wuProcessSpanScope (queryThreadedActiveSpan ()->createInternalSpan (" wait_for_workunit_to_complete" ));
1094
1094
try
1095
1095
{
1096
1096
waitForWorkUnitToComplete (runningwuid.str (), timeToWait);
0 commit comments