Returns the events immediately before and after an event within a window of 24 hours on each side. Counts default to 50 and are limited to 1 through 1000. The call requires streams.query, or sys.telemetry.read for system telemetry.
before holds the events with a timestamp at or before the pointer, newest first, so the event itself is the first row when it is stored. after holds the events that are later than the pointer, oldest first. A stream that does not exist returns an empty before and after instead of an error.
Body
Last modified on October 9, 2026