@venkata hanuman chowdary somepalli ,
Thanks for reaching out to the Microsoft Q&A forum.
You can call/send events to eventhub using the eventhub output bindings in Functions or by using the Eventhub sdk in the function code. For the error/success handling, you may use a try/catch block in the function code and in case of failure you can catch the exception and send events to the eventhub.
I hope this helps! Feel free to reach out to me if you have any further queries.
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.