When using binlog_annotate_row_events in a galera cluster, row events in the binlog originating from the local node are annotated correctly. However, events originating on other nodes are annotated with an incorrect query.
This makes sense since I don't think galera provides information about the query that generated an event. Without adding significant overhead to galera replication, the only thing I can think of for this would be to disable annotations for events originating from other nodes. This way, not every event would be annotated, but the ones that are would at least be correct.
I attached some lightly redacted decoded binlog events. If needed, I can find some events I can leave intact with some more searching.
{"report":{"fcp":621.2999999523163,"ttfb":134.59999990463257,"pageVisibility":"visible","entityId":49110,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"275ff28c-5c19-4c86-9855-29d10b45c219","navigationType":0,"readyForUser":672.0999999046326,"redirectCount":0,"resourceLoadedEnd":662.9000000953674,"resourceLoadedStart":143.79999995231628,"resourceTiming":[{"duration":6.700000047683716,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":143.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":143.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":150.5,"responseStart":0,"secureConnectionStart":0},{"duration":6.3999998569488525,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":144.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":144.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":150.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":60,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":144.29999995231628,"connectEnd":144.29999995231628,"connectStart":144.29999995231628,"domainLookupEnd":144.29999995231628,"domainLookupStart":144.29999995231628,"fetchStart":144.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":144.29999995231628,"responseEnd":204.29999995231628,"responseStart":204.29999995231628,"secureConnectionStart":144.29999995231628},{"duration":136.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":144.79999995231628,"connectEnd":144.79999995231628,"connectStart":144.79999995231628,"domainLookupEnd":144.79999995231628,"domainLookupStart":144.79999995231628,"fetchStart":144.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":144.79999995231628,"responseEnd":281.7000000476837,"responseStart":281.7000000476837,"secureConnectionStart":144.79999995231628},{"duration":140.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":144.90000009536743,"connectEnd":144.90000009536743,"connectStart":144.90000009536743,"domainLookupEnd":144.90000009536743,"domainLookupStart":144.90000009536743,"fetchStart":144.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":144.90000009536743,"responseEnd":285.2999999523163,"responseStart":285.2999999523163,"secureConnectionStart":144.90000009536743},{"duration":140.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":144.90000009536743,"connectEnd":144.90000009536743,"connectStart":144.90000009536743,"domainLookupEnd":144.90000009536743,"domainLookupStart":144.90000009536743,"fetchStart":144.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":144.90000009536743,"responseEnd":285.7000000476837,"responseStart":285.7000000476837,"secureConnectionStart":144.90000009536743},{"duration":141.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":145.09999990463257,"connectEnd":145.09999990463257,"connectStart":145.09999990463257,"domainLookupEnd":145.09999990463257,"domainLookupStart":145.09999990463257,"fetchStart":145.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":145.09999990463257,"responseEnd":286.59999990463257,"responseStart":286.59999990463257,"secureConnectionStart":145.09999990463257},{"duration":141.89999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":145.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":145.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":287.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":141.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":145.29999995231628,"connectEnd":145.29999995231628,"connectStart":145.29999995231628,"domainLookupEnd":145.29999995231628,"domainLookupStart":145.29999995231628,"fetchStart":145.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":145.29999995231628,"responseEnd":287.09999990463257,"responseStart":287.09999990463257,"secureConnectionStart":145.29999995231628},{"duration":142.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":145.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":145.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":288.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":142.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":145.5,"connectEnd":145.5,"connectStart":145.5,"domainLookupEnd":145.5,"domainLookupStart":145.5,"fetchStart":145.5,"redirectEnd":0,"redirectStart":0,"requestStart":145.5,"responseEnd":288.2000000476837,"responseStart":288.2000000476837,"secureConnectionStart":145.5},{"duration":506.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":146.79999995231628,"connectEnd":146.79999995231628,"connectStart":146.79999995231628,"domainLookupEnd":146.79999995231628,"domainLookupStart":146.79999995231628,"fetchStart":146.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":146.79999995231628,"responseEnd":653.5,"responseStart":653.5,"secureConnectionStart":146.79999995231628},{"duration":510.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":152.5,"connectEnd":152.5,"connectStart":152.5,"domainLookupEnd":152.5,"domainLookupStart":152.5,"fetchStart":152.5,"redirectEnd":0,"redirectStart":0,"requestStart":152.5,"responseEnd":662.9000000953674,"responseStart":662.9000000953674,"secureConnectionStart":152.5},{"duration":234.70000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":420.7000000476837,"connectEnd":420.7000000476837,"connectStart":420.7000000476837,"domainLookupEnd":420.7000000476837,"domainLookupStart":420.7000000476837,"fetchStart":420.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":420.7000000476837,"responseEnd":655.4000000953674,"responseStart":655.4000000953674,"secureConnectionStart":420.7000000476837},{"duration":71.20000004768372,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":596.5999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":596.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":667.7999999523163,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":9,"responseStart":134,"responseEnd":152,"domLoading":137,"domInteractive":784,"domContentLoadedEventStart":784,"domContentLoadedEventEnd":826,"domComplete":1702,"loadEventStart":1702,"loadEventEnd":1704,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":764.2999999523163},{"name":"bigPipe.sidebar-id.end","time":765.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":765.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":767.7000000476837},{"name":"activityTabFullyLoaded","time":836.9000000953674}],"measures":[],"correlationId":"5d9153bbb107c9","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":71,"dbReadsTimeInMs":9,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}