Skip to content

Instantly share code, notes, and snippets.

@pacodelacruz
Created February 11, 2021 03:57
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/2e569a23ddd0e80b6a3c8ecf1531c807 to your computer and use it in GitHub Desktop.
Save pacodelacruz/2e569a23ddd0e80b6a3c8ecf1531c807 to your computer and use it in GitHub Desktop.
// Message Count per EntityType and time bin
traces
| sort by timestamp desc
| where customDimensions.EventName != ""
| where tostring(customDimensions.prop__SpanCheckpointId) contains "PublisherStart"
| project timestamp
, EntityType = tostring(customDimensions.prop__EntityType)
| summarize Count = count(EntityType)
by bin(timestamp, 1h),
EntityType
| sort by timestamp desc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment