In World of Warcraft/_retail_/logs
if you enable combat logging, and advanced combat logging, in game (can be toggled with a simple command /combatlog
and a setting "Advanced combat logging"), there is a .txt file beginning with WoWCombatLog
and with the date and time(?) on the end of it, in which you will find a myriad of events you can trigger a recording on, some good ones being ENCOUNTER_START
/ENCOUNTER_END
which are triggered when a boss fight begins or ends, respectively, CHALLENGE_MODE_START
/CHALLENGE_MODE_END
which are triggered when a mythic+ keystone dungeon begins, or ends, and ARENA_MATCH_START
/ARENA_MATCH_END
which are triggered when an arena match begins or ends, PARTY_KILL
which triggers when a party member dies (this only triggers for you and the 4 other group members while in a raid, but i'm sure there is a way to find raid member deaths, as addons such as details do just that), and ZONE_CHANGED
which, along with a list of the dungeon/raid/battleground zone IDs, which are available online (https://www.wowhead.com if you hover on "database", then "zones" then one of the expansions, you'll find entries for dungeons, raids, etc, underneath the expansions list, you can also find battlegrounds and arenas, you'll find the zone id on the right of each zone's page), could be used to filter, and start and stop recording when an instance is joined, or left. they all come with additional information to provide further filtering, such as for challenge mode, the level of the keystone dungeon, so you could have a setting to capture only higher level keys, or party kill, to only trigger when you die and not when a party member dies (i can't currently think of a way other than typing your character name(s) into the settings in outplayed, but i'm sure there will be one, im sure your team could figure it out better than i can).
these, and other combat log events are all documented by the community here: https://wowpedia.fandom.com/wiki/COMBAT_LOG_EVENT
if a companion addon were to be developed for WoW, this could get a lot more granular, and possibly even add an ingame highlight button on an action bar
I see that there are other requests of this nature, but not one of them are as detailed as this, regarding how it would actually be done, so i thought i would put my hat in the ring.