Change Streams: Detect origin of changes

I use change streams in my application and need to know from where a the changes made.
Example give, when i called collection.insertOne(...) inside my application or modified a document via MongoDB Compass.

Who can i “detect” if the changes are made from inside of my app, or origin from “external”?

As workaround i store the object id for every pending update and compare from inside the change streams if the id exists, and if so, do nothing.

Is there a better way/option?