Added a "LatestEvents" field to the FetchedInstanceHistory log#1373
Merged
sophiatev merged 4 commits intoJun 23, 2026
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends the Azure Storage tracking telemetry for “FetchedInstanceHistory” by adding a new structured log/ETW field (LatestEvents) that records the last 10 history event types returned by a fetch instance history query.
Changes:
- Add
LatestEventsto theFetchedInstanceHistorystructured log event and propagate it throughLogHelperandAnalyticsEventSource. - Populate
LatestEventsfrom the last 10 event types when reading history entities inAzureTableTrackingStore.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| src/DurableTask.AzureStorage/Tracking/AzureTableTrackingStore.cs | Adds computation of the last 10 history event types and passes them into the logger. |
| src/DurableTask.AzureStorage/Logging/LogHelper.cs | Extends FetchedInstanceHistory helper to accept and forward the LatestEvents field. |
| src/DurableTask.AzureStorage/Logging/LogEvents.cs | Adds a new structured field/property (LatestEvents) to the FetchedInstanceHistory log event. |
| src/DurableTask.AzureStorage/AnalyticsEventSource.cs | Extends the ETW FetchedInstanceHistory event payload to include LatestEvents. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
cgillum
approved these changes
Jun 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As per the title, this PR introduces a new log field to log the last 10 events from a fetch instance history call to improve our telemetry.