Log Event not published #234
-
hey there, first of all great thanks for your contribution. I work as developer/architect in our company. Currently we are in final UAT introduing nebula as enterprise API logger. Its really a time+resource saver! we installed logger as managed package in our full sandbox. We exposed an REST-Webservice for receiving data from our consumer. REST Webservice should simply receive payload and forward it to nebula logger. We use default savemethod Event_BUS. However we discovered during UAT that a few logger platform events invoked by client are simply not published. The request payload and statusCode were both fine. We can even replay the request sent afterwards without any issue. Currently out of 100+ requests 1 log is missing. From what I understand so far on documenation is that Salesforce PE itself is not as reliable as database transaction, such as DML or REST API. You can find it at bottom of documentation https://developer.salesforce.com/docs/atlas.en-us.platform_events.meta/platform_events/platform_events_considerations.htm Is there a way to intercept and recover these missing event in logger? Would the Publish Behavior "Publish after Commit" on PE help us? By the way, I tried to switch to savemethod REST in custom setting, however no log entry is created on log. Did I miss something? thanks again in advance cheers |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @Soliton321 - glad to hear that you're considering using Nebula Logger! One piece of feedback - I would strongly suggest that you consider using the unlocked package instead of the managed package. The unlocked package provides a lot more functionality that is not possible with the managed package. Regarding the publish behavior "Publish after Commit", that would not be a useful change - with that behavior, any errors/exceptions will prevent the platform events from publishing, which means you would not be able to log anything when an exception occurs in your org (and in my opinion, logging exceptions is probably the most important time to be able to log). As far as your issue with log entries not saving - are you able to reproduce the issue consistently? Does it only happen in some scenarios? It's possible that there is a bug within Nebula Logger that's preventing the log entries from being saved - if you have any more details (or code) you can provide, that would be helpful in trying to determine the root cause of the issue. You can try temporarily using the save method |
Beta Was this translation helpful? Give feedback.
Hi @Soliton321 - glad to hear that you're considering using Nebula Logger! One piece of feedback - I would strongly suggest that you consider using the unlocked package instead of the managed package. The unlocked package provides a lot more functionality that is not possible with the managed package.
Regarding the publish behavior "Publish after Commit", that would not be a useful change - with that behavior, any errors/exceptions will prevent the platform events from publishing, which means you would not be able to log anything when an exception occurs in your org (and in my opinion, logging exceptions is probably the most important time to be able to log).
As far as your issue with log…