Custom JFR event는 의미·단위·비용·버전을 하나의 schema로 설계한다

문자열을 무제한 기록하거나 event가 꺼져 있어도 비싼 field를 계산하면 관찰 도구가 workload를 바꿀 수 있습니다.

custom JFR eventstable observable contract

identity

@Name·@Label·@Category

fields

bounded value·unit annotation

timing

begin/end 또는 instant

cost guard

isEnabled·shouldCommit

version

consumer·dashboard migration

핵심: dashboard consumer와 schema를 버전 관리하고 enable/threshold guard 뒤에 commit합니다.