Skip to content

Enable event tracing in SNI.dll - #650

Merged
cheenamalhotra merged 19 commits into
dotnet:masterfrom
johnnypham:event-tracing
Aug 21, 2020
Merged

Enable event tracing in SNI.dll#650
cheenamalhotra merged 19 commits into
dotnet:masterfrom
johnnypham:event-tracing

Conversation

@johnnypham

@johnnypham johnnypham commented Jul 14, 2020

Copy link
Copy Markdown
Contributor

This PR uses the existing EventSource implementation to enable event tracing in SNI.dll. Events must be captured using a tool like Xperf.

Tracing can be enabled by sending a command to SqlClientEventSource:
// Enables trace events:
EventSource.SendCommand(eventSource, (EventCommand)8192, null);

// Enables flow events:
EventSource.SendCommand(eventSource, (EventCommand)16384, null);

// Enables both trace and flow events:
EventSource.SendCommand(eventSource, (EventCommand)(8192 | 16384), null);

Comment thread BUILDGUIDE.md Outdated
@cheenamalhotra cheenamalhotra added this to the 2.1.0-preview1 milestone Jul 14, 2020

@cheenamalhotra cheenamalhotra left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Rest everything looks good to me.

@cheenamalhotra
cheenamalhotra merged commit cff40d0 into dotnet:master Aug 21, 2020
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.

5 participants