Skip to content

[1.8-stable] Add IsPackagedProcess and IsSelfContained to common insights PartB fields #6334

Open
agniuks wants to merge 3 commits intorelease/1.8-stablefrom
user/agnel/partb_telemetry_1.8
Open

[1.8-stable] Add IsPackagedProcess and IsSelfContained to common insights PartB fields #6334
agniuks wants to merge 3 commits intorelease/1.8-stablefrom
user/agnel/partb_telemetry_1.8

Conversation

@agniuks
Copy link
Contributor

@agniuks agniuks commented Mar 24, 2026

CP'ing: c95ecb4

Will give us a better idea of packaged vs unpackaged and self-deployed vs FWP dependent app split in the wild.

@agniuks agniuks changed the title User/agnel/partb telemetry 1.8 [1.8-stable] Add IsPackagedProcess and IsSelfContained to common insights PartB fields Mar 24, 2026
@agniuks agniuks requested a review from DrusTheAxe March 24, 2026 18:02
Copy link
Member

Choose a reason for hiding this comment

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

no need for this change or the factoring out of appmodel.identity.h or all the project path updates - none of it is used in runtime insights code

}

/// Non-throwing variant using dynamic loading (safe before DLL is loaded).
inline HRESULT IsSelfContained_nothrow(bool& isSelfContained) noexcept
Copy link
Member

Choose a reason for hiding this comment

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

not needed - not used in runtime insights

Copy link
Member

Choose a reason for hiding this comment

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

this file appears to be the only part of this PR that's needed

enum class TraceLoggingInformationFlags : std::uint32_t
{
None = 0,
IsDebuggerPresent = 0x00000001,
Copy link
Member

Choose a reason for hiding this comment

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

this flag factoring is compact - just want to confirm it's actually useful in reports. i.e., can you filter on specific bit values, or is it just an opaque number? if the latter, I'd stick with unique values.

TraceLoggingString(::Microsoft::WindowsAppRuntime::Insights::RuntimeInformation::WindowsAppRuntimeVersion().c_str(), "Version"), \
TraceLoggingString(::Microsoft::WindowsAppRuntime::Insights::RuntimeInformation::WindowsAppRuntimeChannel().c_str(), "WindowsAppSDKChannel"), \
TraceLoggingBool(wil::details::IsDebuggerPresent(), "IsDebugging"), \
TraceLoggingUInt32(::Microsoft::WindowsAppRuntime::Insights::RuntimeInformation::TraceLoggingInformationFlags(), "Flags"), \
Copy link
Member

Choose a reason for hiding this comment

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

This is definitely not contained. For that reason alone, I'd go with conditional logging of separate bools. Probably makes reporting easier too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants