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

Log number of interactive sessions #17682

Merged
merged 4 commits into from
Aug 8, 2024
Merged

Conversation

carlos-zamora
Copy link
Member

This sends a telemetry event if a session is interacted with. Specifically, key events are essential to have an interactive session in Windows Terminal, so we're tracking sessions that have had a key down event.

This comment has been minimized.

@DHowett DHowett enabled auto-merge (squash) August 7, 2024 22:34
@@ -42,6 +42,7 @@ class WindowThread : public std::enable_shared_from_this<WindowThread>
winrt::event_token _UpdateSettingsRequestedToken;

std::unique_ptr<::IslandWindow> _warmWindow{ nullptr };
static bool _loggedInteraction;
Copy link
Member

Choose a reason for hiding this comment

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

You don't need to attach statics to classes. It's just fine to have mutable statics inside functions. If they're of trivial types (bool, int, float, etc.) there's no difference. (For complex types there's a difference: Class statics get initialized like globals on startup and function statics get initialized the first time execution passes over them.)

@DHowett DHowett merged commit ac865e6 into main Aug 8, 2024
20 checks passed
@DHowett DHowett deleted the dev/cazamor/disc/interactive-sessions branch August 8, 2024 13:52
DHowett pushed a commit that referenced this pull request Aug 13, 2024
This sends a telemetry event if a session is interacted with.
Specifically, key events are essential to have an interactive session in
Windows Terminal, so we're tracking sessions that have had a key down
event.

(cherry picked from commit ac865e6)
Service-Card-Id: 93498660
Service-Version: 1.21
DHowett pushed a commit that referenced this pull request Aug 13, 2024
This sends a telemetry event if a session is interacted with.
Specifically, key events are essential to have an interactive session in
Windows Terminal, so we're tracking sessions that have had a key down
event.

(cherry picked from commit ac865e6)
Service-Card-Id: 93498659
Service-Version: 1.20
carlos-zamora added a commit that referenced this pull request Jan 15, 2025
Adds a description and keyword for the `SessionBecameInteractive` event

Follow-up from #17682
DHowett pushed a commit that referenced this pull request Jan 15, 2025
Adds a description and keyword for the `SessionBecameInteractive` event

Follow-up from #17682

(cherry picked from commit 3772fc3)
Service-Card-Id: PVTI_lADOAF3p4s4AmhmszgWWlDk
Service-Version: 1.21
DHowett pushed a commit that referenced this pull request Jan 15, 2025
Adds a description and keyword for the `SessionBecameInteractive` event

Follow-up from #17682

(cherry picked from commit 3772fc3)
Service-Card-Id: PVTI_lADOAF3p4s4AmhmszgWWlDk
Service-Version: 1.21
Service-Card-Id: PVTI_lADOAF3p4s4AmhmQzgWWlDg
Service-Version: 1.22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Cherry Picked
Development

Successfully merging this pull request may close these issues.

None yet

3 participants