Skip to content

Instantly share code, notes, and snippets.

@pacodelacruz
Created February 11, 2021 03:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pacodelacruz/1fa1c640769dd3fa3c5a1098a7590660 to your computer and use it in GitHub Desktop.
Save pacodelacruz/1fa1c640769dd3fa3c5a1098a7590660 to your computer and use it in GitHub Desktop.
// Traces with failed status
// Traces can be filtered uncommenting the filters at the bottom and adding the corresponding filter values
traces
| sort by timestamp desc
| where customDimensions.prop__Status == "Failed"
| project
timestamp
, InterfaceId = customDimensions.prop__InterfaceId
, EntityType = customDimensions.prop__EntityType
, EntityId = customDimensions.prop__EntityId
, EventName = customDimensions.EventName
, Message = customDimensions.prop__Message
, SpanCheckpointId = customDimensions.prop__SpanCheckpointId
, DeliveryCount = customDimensions.prop__DeliveryCount
, Component = operation_Name
, BatchId = customDimensions.prop__BatchId
, CorrelationId = customDimensions.prop__CorrelationId
// Optional filters, uncomment if/when required
//| where CorrelationId contains "" // Filters based on the correlationId, which includes the customer provided batchId and the Azure Function involcationId
//| where InterfaceId contains "" // Filters based on the InterfaceId
//| where EntityType == "" // Filters based on the EntityType
//| where EntityId == "" // Filters based on the EntityId
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment