azureloggingazure-data-lakeappinsights

Logs for Retry of DataLakeClienteOptions


I'm using Data Lake Storage with retry options. My service is connected to appinsights and it uses a Azure Function. Is there a way to query for retries of Data Lake Storage? Does it log automatically? Or do I have to make a custom event?

It doesn't provide much, but here's my example of DataLakeClientOptions:

private static DataLakeClientOptions CreateRetryPoliciesOptions()
    {
        var options = new DataLakeClientOptions
        {
            Retry =
            {
                MaxRetries = 3,
                Delay = TimeSpan.FromSeconds(5),
                Mode = RetryMode.Fixed,
                NetworkTimeout = TimeSpan.FromSeconds(120)
            }
        };

        return options;
    }

Solution

  • Is there a way to query for retries of Data Lake Storage? Does it log automatically? Or do I have to make a custom event?

    You are creating a local variable options and then assigns the configured DataLakeClientOptions to it. Return statement it returns the options variable.

    Follow the below code:

    private static DataLakeClientOptions CreateRetryPoliciesOptions()
    {
        return new DataLakeClientOptions
        {
            Retry =
            {
                MaxRetries = 3,
                Delay = TimeSpan.FromSeconds(5),
                Mode = RetryMode.Fixed,
                NetworkTimeout = TimeSpan.FromSeconds(120)
            }
        };
    }
    

    Function working well.

    enter image description here

    To test the function, I have sent POST request to the function URL.

    enter image description here

    Custom events traced.

    enter image description here