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 {