SERVER-137747ClosedFixed

Add isInternal to the query stats key for internal operations

_Why:_ Atlas consumers need to separate server\-owned work from customer workload in $queryStats, using {{{"key.isInternal": {$ne: true}}}}. _What:_ \* Keys get {{isInternal: true}} only when the opCtx carries the origin flag. \* The field is emitted only when true, so existing keys and {{keyHash}} values do not change. \* Definition: the work belongs to the server, regardless of who triggered it. Per\-shard requests made for a user command stay unmarked, including the two\-phase write without

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.