Skip to content

TraceEvent.EventName missing when OpCode assigned to event #1165

Open
@aaronhudon

Description

@aaronhudon

Using Microsoft.Diagnostics.Tracing.TraceEvent 2.0.55 with .NET Core 3.1.201

When an eventsource event is assigned an OpCode (e.g. Start, Stop), then the event reaches the TraceEventSession, the TraceEvent object's EventName is missing, and simply contains "/Start" or "/Stop" based on the OpCode.

This seems to be resolved by simply removing the Start/Stop OpCodes and applying the magic "Start" and "Stop" suffix to the event source method names...I'd prefer to use the OpCodes as it's explicit and not relying on magic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions