Ruff-nono commented on issue #11852: URL: https://github.com/apache/skywalking/issues/11852#issuecomment-1918727190
because every middleware handlerFuncs could call `#Next`, then it will call `#CreateEntrySpan` in `#BeforeInvoke` and call `span.End()` in `#AfterInvoke` many times, but after `span.End()` first be Called by the last middleware handlerFunc, the TracingContext in current goroutine will be cleared, so the other handlerfuncs cannot get the TraceContext for use. ![image](https://github.com/apache/skywalking/assets/38658935/cdf79f05-ffa3-47c2-95da-7f297d186763) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@skywalking.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org