@@ -280,7 +280,6 @@ def get_summary(self):
280280 invocation_summary_query = (
281281 f"requests | extend functionNameFromCustomDimension = tostring(customDimensions['faas.name']) "
282282 f"| where timestamp >= ago({ timespan } ) "
283- f"| where cloud_RoleName =~ '{ container_app_name } ' "
284283 f"| where isempty(\" { revision_name } \" ) or cloud_RoleInstance contains '{ revision_name } ' "
285284 f"| where operation_Name =~ '{ function_name } ' or functionNameFromCustomDimension =~ '{ function_name } ' "
286285 f"| summarize SuccessCount = coalesce(countif(success == true), 0), ErrorCount = coalesce(countif(success == false), 0)"
@@ -314,9 +313,8 @@ def get_traces(self):
314313 invocation_traces_query = (
315314 f"requests | extend functionNameFromCustomDimension = tostring(customDimensions['faas.name']) "
316315 f"| project timestamp, id, operation_Name, success, resultCode, duration, operation_Id, functionNameFromCustomDimension, "
317- f"cloud_RoleName, cloud_RoleInstance, invocationId=coalesce(tostring(customDimensions['InvocationId']), tostring(customDimensions['faas.invocation_id'])) "
316+ f"cloud_RoleInstance, invocationId=coalesce(tostring(customDimensions['InvocationId']), tostring(customDimensions['faas.invocation_id'])) "
318317 f"| where timestamp > ago({ timespan } ) "
319- f"| where cloud_RoleName =~ '{ container_app_name } ' "
320318 f"| where isempty(\" { revision_name } \" ) or cloud_RoleInstance contains '{ revision_name } ' "
321319 f"| where operation_Name =~ '{ function_name } ' or functionNameFromCustomDimension =~ '{ function_name } ' "
322320 f"| order by timestamp desc | take { limit } "
0 commit comments