From 09b2c9a88fd5f2fd2c9c67ed7a5d76b856270493 Mon Sep 17 00:00:00 2001 From: varnit goyal Date: Wed, 20 Nov 2024 16:05:09 +0530 Subject: [PATCH] NTP-10933 | agency capping --- service/ExceptionService.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/service/ExceptionService.go b/service/ExceptionService.go index f425249..e389a00 100644 --- a/service/ExceptionService.go +++ b/service/ExceptionService.go @@ -48,6 +48,7 @@ type ExceptionValue struct { Breadcrumbs interface{} `json:"breadcrumbs,omitempty"` Extra interface{} `json:"extra,omitempty"` Request interface{} `json:"request,omitempty"` + Contexts interface{} `json:"contexts,omitempty"` } type Exception struct { @@ -58,6 +59,7 @@ type Payload struct { Breadcrumbs interface{} `json:"breadcrumbs"` Request interface{} `json:"request"` Extra interface{} `json:"extra"` + Contexts interface{} `json:"contexts"` } func isIgnored(value string) bool { @@ -127,6 +129,7 @@ func (exceptionService *ExceptionService) CatchErrors(c *gin.Context) { errorItem.Breadcrumbs = jsonData.Breadcrumbs errorItem.Extra = jsonData.Extra errorItem.Request = jsonData.Request + errorItem.Contexts = jsonData.Contexts err := exceptionService.kafkaProducer.PublishEvent(errorItem, exceptionService.kafkaConfig.Topic, "", nil, encoder.JsonEncoderInstance) if err != nil {