jonny-rimek / wowmate

combatlog analysis for world of warcraft players
http://wowmate.io
MIT License
4 stars 0 forks source link

Create ticket for xray error #211

Closed jonny-rimek closed 3 years ago

jonny-rimek commented 3 years ago

I'm guessing it's a bug in the go sdk for xray

2021-03-20T23:20:20 2021-03-20T23:20:20Z [ERROR] Suppressing AWS X-Ray context missing panic: failed to begin subsegment named 'Timestream Write': segment cannot be found.
2021-03-20T23:20:20 2021-03-20T23:20:20Z [ERROR] Suppressing AWS X-Ray context missing panic: failed to begin subsegment named 'attempt': segment cannot be found.
2021-03-20T23:20:20 2021-03-20T23:20:20Z [ERROR] Suppressing AWS X-Ray context missing panic: failed to begin subsegment named 'unmarshal': segment cannot be found.
jonny-rimek commented 3 years ago

"When code is run in the Lambda environment, the lambda runtime automatically creates a segment for the function invocation and subsegments created in the function are added to the created segment. However, if the lambda function is run locally, segments are not automatically created and as such subsegment creation throws the "segment cannot be found" error. If you're running the lambda function locally, you should manually create a segment for the function execution."