Skip to content

[EventListener] Include thread ID #13125

Open
@kouvel

Description

@kouvel

EventWrittenEventArgs doesn't appear to provide information about which thread fired the event. It would be useful to have that information to be able to associate paired events such as Start/Stop that may be fired from multiple threads concurrently.

As for which thread ID, it would be useful to have both the OS thread ID, and the managed thread ID if it's a managed thread. The OS thread ID would be useful for events fired by the runtime, some of which may be fired from unmanaged threads. The managed thread ID would be useful for consumers tracking their events that are fired from managed threads using .NET APIs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EventPipearea-Tracing-coreclrenhancementProduct code improvement that does NOT require public API changes/additionstrackingThis issue is tracking the completion of other related issues.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions