Skip to content

Add EnlistmentId and MountId to ETW data for correlation#218

Merged
kewillford merged 1 commit intomicrosoft:masterfrom
kewillford:add-mountid
Aug 29, 2018
Merged

Add EnlistmentId and MountId to ETW data for correlation#218
kewillford merged 1 commit intomicrosoft:masterfrom
kewillford:add-mountid

Conversation

@kewillford
Copy link
Member

@kewillford kewillford commented Aug 28, 2018

When matching up data with ETW event there is an EnlistmentId and mountId that it tied to data about the enlistment and the mounted process. Other events are not tied to this data so when an exception happens getting the mount data that corresponds to it is not directly correlated.

This adds the EnlistmentId and MountId to the ETW data so that the data can be correlated.

Copy link
Contributor

@sanoursa sanoursa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you give more info on what the actual issue is? If I'm looking at a log file, don't I already know what enlistment/mount process it's from?

I'm guessing the issue isn't the log files, but rather the ETW events? If that's the case - then it seems that we should add this extra metadata to those ETW events, but not pollute our log files with them. What are your thoughts on that?

@kewillford kewillford changed the title Add shared data to log entries so they can be correlated to mount data Add EnlistmentId and MountId to ETW data for correlation Aug 28, 2018
Copy link
Contributor

@sanoursa sanoursa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updated approach. This makes sense to me. Only one minor comment - does it make sense to create a type to encapsulate enlistment id and mount id, since we seem to always require both at once? Or should we update our mount id to be encapsulation id plus some additional value, to avoid requiring two strings?

That's all minor though, and not really required for this PR.

@@ -107,20 +111,37 @@ private EventSourceOptions CreateOptions(EventLevel level, Keywords keywords, Ev

// Needed to pass relatedId without metadata
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this comment be removed now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed.

Copy link
Member

@wilbaker wilbaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving with suggestions

@kewillford kewillford merged commit 2b41be1 into microsoft:master Aug 29, 2018
@kewillford kewillford deleted the add-mountid branch August 29, 2018 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants