Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add XE 'Actions' into Profiler Event #2397

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

emchavez
Copy link

@emchavez emchavez commented Sep 20, 2024

fixes #2396 issue

ProfilerEvent dictionary will not contain the information from the XEvent related to the 'Actions'.

If we attempt to open XEL files on an app consumer of SqlToolService (ie.Azure Data Studio) the information will miss these columns.

XEvent Actions are used commonly, for example to automate generic metadata such as 'app name' 'code package version', 'timestamp', etc. Potentially any piece/kind of telemetry, hence they should not be omitted.

Example of ADS displaying the info (with local STS)
image

Example of ADS displaying the info (default)
image

at last, we chose to add a '(action)' postfix in case there is a key dup. SSMS is following this convention when displaying the info:
image

@@ -143,6 +143,17 @@ private Task OnEventRead(IXEvent xEvent)
{
profileEvent.Values.Add(kvp.Key, kvp.Value.ToString());
}
// Add the XE 'actions'.
foreach (var kvp in xEvent.Actions)
Copy link
Member

Choose a reason for hiding this comment

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

I assume Actions can never be null here?

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.

'ProfilerEvent' class does not include XEvent 'Action'(s)
2 participants