[SERVER-67701] Add tracking for change stream options Created: 30/Jun/22  Updated: 02/Aug/22

Status: Investigating
Project: Core Server
Component/s: Change streams, Diagnostics
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Katya Kamenieva Assignee: Katya Kamenieva
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Add to db.serverStatus().metrics

changeStreams: {
	cluster: 0,
	database: 2, 
	collection: 3,
	showExpandedEventsTrue: 0,
	fullDocumentBeforeChange: {
		required: 1,
		whenAvailable: 0
	},
	fullDocument: {
		required: 0,
		whenAvailable: 0,
		updateLookup: 0
	},
	pipeline: 2
}

I discovered that internal stages for change streams like '$_internalChangeStreamAddPostImage' are only tracked in sharded clusters so we'll not have visibility into usage on replica sets, therefore I suggest tracking all the interesting options in a dedicated section.


Generated at Thu Feb 08 06:08:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.