You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We get panic when we use xray with sync.WaitGroup. As you can see in a error below, context becomes nil and func getTraceHeaderFromContext throws panic as there is no required value in it.
we use algnhsa server adapter and mux.router for routing (it shouldn't cause an issue, but I added it to code example below) and we pass http.Request context to GetObjectWithContext function.
It looks like we're getting into some sort of race condition as it works 50% of time and another 50% we're getting a panic.
We get panic when we use
xray
withsync.WaitGroup
. As you can see in a error below, context becomes nil and funcgetTraceHeaderFromContext
throws panic as there is no required value in it.we use
algnhsa
server adapter andmux.router
for routing (it shouldn't cause an issue, but I added it to code example below) and we pass http.Request context toGetObjectWithContext
function.It looks like we're getting into some sort of race condition as it works 50% of time and another 50% we're getting a panic.
Error:
The text was updated successfully, but these errors were encountered: