See - https://github.com/open-telemetry/semantic-conventions/pull/1942, we can generalize code attributes as opt-in on all exception events.