1

I have configured Azure app insight to my web application. I have added code as below.

  catch (Exception serverEx)
                    {
                        _logger.LogError("hello world");
                        return StatusCode(StatusCodes.Status202Accepted, serverEx.Message);
                    }

This is visible in traces.

enter image description here

This is an exception So I need to load it in exceptions. This is my query.

let start=datetime("2022-02-24T14:23:00.000Z");
let end=datetime("2022-02-25T14:23:00.000Z");
let timeGrain=5m;
let dataset=exceptions 
| where timestamp > start and timestamp < end
| where client_Type == "Browser"
;
dataset

This query not getting any result. Even I type Exceptions its not getting any result.

enter image description here

1 Answer 1

1

I have found a solution myself. If this is incorrect please correct me.

traces | where severityLevel == 3

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.