Notification on success or failure.

4 posts, 0 answers
  1. Guest
    Guest avatar
    506 posts
    Member since:
    Feb 2012

    Posted 05 Dec 2012 Link to this post

    Hi, When I try to Track Exception or Send Log and something fails your logger will notify me about that with message which is ok. What I do not understand is how to know whether a single Track Exception method passes or fails. In case of failure I would want to send it to my custom service. Is there any way to perform an action on completion (successful or not)? I think I need to subscribe to OnCompleted event. I would be glad if you provide me with some crazy way (even hacky) to achieve this result. Thank you in advance for the assistance. Regards, Rumen
  2. Guest
    Guest avatar
    506 posts
    Member since:
    Feb 2012

    Posted 05 Dec 2012 Link to this post

    Hi, I am sorry if I am annoying you but would you answer me? Regards, Rumen
  3. Guest
    Guest avatar
    506 posts
    Member since:
    Feb 2012

    Posted 05 Dec 2012 Link to this post

    Hi Rumen Really sorry for not getting back to you, seems like your request slipped through the cracks of our issue tracking system and we just found it. Now, back to your question. There is really no deterministic way for the user of our monitor library to be notified of successful or failed delivery of a specific piece of data. The monitor library batches data and delivery the batches asynchronously to the servers and does not currently care what data is being delivered. Basically, when you call our api we put the data you track in a queue and return control to the calling code as quickly as possible. The data is stores all the tracked data and deliver the data as batched at a later point. We purposefully designed this so the hosting application should not have to worry about data being delivered so we are really not designed for callback on when specific data is actually being delivered. Here is the best you can do, though it might not be as accurate as you'd like: By hooking yourself in as a receiver of the internal monitor log messages (see IAnalyticsMonitorSettings) you can evaluate the logging messages and you will be notified when data has been delivered to the server (I think the message will be something like: 'Statistics was sent successfully' or 'Statistics failed to be sent:'). This tells you that a data batch has been delivered to the servers but it does not tell you what specific data was contained in this batch. You could assume that the data you just tracked, e.g. SendLog or TrackException, was included in this data batch you that is not guaranteed (since the monitor library may perform some internal batch optimizations due to bandwidth constraints). I don't know if this is good enough for you in your specific scenario. I'd be happy to learn more on your requirements and talk more on your options going forward. Again, sorry for this delayed reply. Best regards Soren EQATEC Team
  4. Guest
    Guest avatar
    506 posts
    Member since:
    Feb 2012

    Posted 05 Dec 2012 Link to this post

    Hi, As far as I understand the exceptions are sent when they are tracked. So it will be nice if you introduce OnCompleted event in the future. I would like to thank you for the descriptive answer. Thanks a lot. Your support rocks! Regards, Rumen
Back to Top