Forum Stats

  • 3,854,257 Users
  • 2,264,344 Discussions
  • 7,905,623 Comments

Discussions

Modify "annotations" of JFR events at runtime

user4836572
user4836572 Member Posts: 4 Red Ribbon

Hello,

usually JFR events are defined statically via annotations.

It is also possible to create events fully dynamically at runtime if their structure is not known beforehand.

But is there a way to modify statically defined events by just setting a different Category, Label or Description? I mean, I have events that have all the same structure. I do know that structure beforehand. But the name of the event and the category they should reside in is only determined at runtime.

Having to fully dynamically create those events at runtime seems like overkill to me.