Colletor development - Create fields and change event name


hi together,

I have a problem developing a collector. More precisely, I can't change the event name of an event.
I followed the guide ( Even if I create a new collector and only assign the code from the guide (under the point "Types of Input Records") as well as the map file to it, my collector does not work without errors or the EventName is still the same as the collector.
Does any of you have a sample code that you can give me so I can use it as a guide?

In addition, I would like to use my Collector to fill fields in Sentinel that I created in advance in the Control Center. However, my own fields are not displayed, even if I assign them a fixed value using a variable/string.
Has any of you solved a similar problem?

Thanks for your help