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

[Release/7.0] Port EventCounters multi session support to 7.0 #84679

Merged
merged 3 commits into from
May 11, 2023

Conversation

davmason
Copy link
Member

Ports #82970 to 7.0

Customer Impact

Currently multiple different EventCounters sessions can be started but when any session stops we stop emitting counters for all events. This is true for dotnet-counters and manually enabling counters via in an process EventListener or via ETW/EventPipe/LTTNG.

We have quite a few internal and external teams using EventCounters, so as time goes on we find that they are disabling each other's sessions more and more. We have received requests from internal and external partners that this be fixed in servicing.

Testing

Partner team validation that it fixes their scenario.

Risk

This fix includes a minor breaking change as described in #84586. We previously would issue callbacks for EventSource Disable events before we fully marked the EventSource as disabled, but after we disallowed any further events from being sent. With this change we will issue callbacks after we mark the EventSource as fully disabled.

I cannot think of a scenario this would break, but it is different behavior and could theoretically cause issues for customers.

@davmason davmason added this to the 7.0.x milestone Apr 12, 2023
@davmason davmason requested a review from a team April 12, 2023 07:18
@davmason davmason self-assigned this Apr 12, 2023
@davmason davmason changed the title [Release/6.0] Port EventCounters multi session support to 7.0 [Release/7.0] Port EventCounters multi session support to 7.0 Apr 12, 2023
Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

Choose a reason for hiding this comment

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

approved. we will take for consideration in 7.0.x. please get a code review

@jeffschwMSFT jeffschwMSFT added the Servicing-consider Issue for next servicing release review label Apr 12, 2023
@leecow leecow added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Apr 13, 2023
@leecow leecow modified the milestones: 7.0.x, 7.0.7 Apr 13, 2023
@davmason davmason added the needs-breaking-change-doc-created Breaking changes need an issue opened with https://github.com/dotnet/docs/issues/new?template=dotnet label Apr 13, 2023
Copy link
Member

@noahfalk noahfalk left a comment

Choose a reason for hiding this comment

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

Same as the 6.0 PR. Behavior looks correct but ideally we'd not include the refactoring parts of the change that don't modify the final behavior.

@carlossanlop
Copy link
Member

@davmason - Reminder that you're free to merge your PR to the staging branch anytime, as long as:

  • It has been approved by Tactics (Servicing-approved label applied).
  • Signed-off by an area owner.
  • CI is either green, or the failures are investigated and considered unrelated.
  • OOB package authoring changes are added if needed.

If you want this fix to go into the June Release, please make sure to merge this before the code complete day (May 15th).

@davmason
Copy link
Member Author

davmason commented May 9, 2023

Rebasing against release/7.0-staging latest to trigger a new CI run

@davmason davmason merged commit bf47f0d into dotnet:release/7.0-staging May 11, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jun 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Tracing-coreclr needs-breaking-change-doc-created Breaking changes need an issue opened with https://github.com/dotnet/docs/issues/new?template=dotnet Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants