NTP-10933 | agency capping

This commit is contained in:
varnit goyal
2024-11-20 16:05:09 +05:30
parent 383204605a
commit 09b2c9a88f

View File

@@ -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 {