Exemple #1
0
        protected virtual RaygunPayload CreatePayload(SourceExceptionEvent daisyEvent)
        {
            var payload = new RaygunPayload(daisyEvent.Exception);

            payload.UserCustomData.Add("Chain", daisyEvent.ChainName);
            payload.UserCustomData.Add("Source", daisyEvent.SourceName);

            return(payload);
        }
Exemple #2
0
        public async ValueTask HandleAsync(SourceExceptionEvent daisyEvent)
        {
            var payload = CreatePayload(daisyEvent);

            await Send(payload);
        }
Exemple #3
0
 public ValueTask HandleAsync(SourceExceptionEvent daisyEvent)
 {
     _logger.LogInformation($"Event: {nameof(SourceExceptionEvent)}");
     return(new ValueTask());
 }