Open maslick opened 4 years ago
Answering my own question, I had to use c.Request.Context()
instead of c.Copy()
:
func (api *RestController) findAllUsers(c *gin.Context) {
employees, err := api.Service.findAllUsers(c.Request.Context())
if err != nil {
c.String(500, err.Error())
return
}
c.JSON(http.StatusOK, response)
}
After this everything works! 🥇
I have the following setup.
Is it possible to use XRay with aws-lambda-go-api-proxy? I get the following error in Cloudwatch:
Any ideas? Thanks in advance!