You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated logging to push exceptions to Application Insights exceptions itemType. This means with sampling turned on requests and exceptions always get logged.
@@ -63,7 +63,7 @@ public async Task<IActionResult> DataLakeGetItems(
63
63
}
64
64
catch(Exceptionex)
65
65
{
66
-
_logger.LogError(ex.ToString());
66
+
_logger.LogError(ex,ex.Message);// The simple message goes in the trace, but the full exception details are in the exception logging in Application Insights
67
67
returnnewBadRequestObjectResult("An error occurred, see the Azure Function logs for more details");
68
68
}
69
69
}
@@ -111,7 +111,7 @@ public async Task<IActionResult> DataLakeCheckPathCase(
111
111
}
112
112
catch(Exceptionex)
113
113
{
114
-
_logger.LogError(ex.ToString());
114
+
_logger.LogError(ex,ex.Message);// The simple message goes in the trace, but the full exception details are in the exception logging in Application Insights
115
115
returnnewBadRequestObjectResult("An error occurred, see the Azure Function logs for more details");
at Azure.Storage.Blobs.Specialized.BlobBaseClient.GetPropertiesInternal(BlobRequestConditions conditions, Boolean async, CancellationToken cancellationToken, String operationName)
117
-
at Azure.Storage.Blobs.Specialized.BlobBaseClient.ExistsInternal(Boolean async, CancellationToken cancellationToken)
118
-
at Azure.Storage.Blobs.Specialized.BlobBaseClient.Exists(CancellationToken cancellationToken)
119
-
at Azure.Storage.Files.DataLake.DataLakePathClient.Exists(CancellationToken cancellationToken)
120
-
at SqlCollaborative.Azure.DataPipelineTools.DataLake.DataLakeService.GetItemsAsync(DataLakeConfig dataLakeConfig, DataLakeGetItemsConfig getItemsConfig)
121
-
in /home/runner/work/AzureDataPipelineTools/AzureDataPipelineTools/DataPipelineTools/DataLake/DataLakeService.cs:line 109
122
-
at SqlCollaborative.Azure.DataPipelineTools.Functions.DataLake.DataLakeFunctions.DataLakeGetItems(HttpRequest req)
123
-
in /home/runner/work/AzureDataPipelineTools/AzureDataPipelineTools/DataPipelineTools.Functions/DataLake/DataLakeFunctions.cs:line 54
0 commit comments