ttoad
ttoad
I mean how do I find out when my code never terminates? Maybe add a timeout to automatically call the span.end() method when the `Work2` function times out.
> Add a timeout to the loop itself, so it can't never terminate ? Loop is just one possibility.Maybe it's a deadlock... I'm not sure this is an issue that...
I can't pinpoint the problem fast enough for the loop that won't terminate. ( Maybe the function is not being called, or not requested) The problem was found to be...
@crobert-1 I think the issue is here. https://github.com/open-telemetry/opamp-go/blob/c7fc5850ffdf65e97a39b080d73f1f23346bf52a/server/serverimpl.go#L156-L164 `httpServer.Shutdown` is called when `server` stops, but it doesn't close all connections, which will cause `wsConn.ReadMessage()` to fail to read an `poll.ErrNetClosing`.
@MrAlias Guaranteed span release is achieved by the user. The user can guarantee that span is not used after span.end(), they can inject the span generator to achieve pool of...
> > @MrAlias Guaranteed span release is achieved by the user. The user can guarantee that span is not used after span.end(), they can inject the span generator to achieve...
> > > > @MrAlias保证 span 释放由用户实现。用户可以保证在 span.end() 之后不使用 span,他们可以注入 span 生成器来实现 span 池。本期只是想支持注入 span 生成器并提供默认 span 生成。 > > > > > > > > > 用户如何确保诸如`BatchSpanProcessor`不再持有对跨度的引用? > >...
> > @MrAlias Guaranteed span release is achieved by the user. The user can guarantee that span is not used after span.end(), they can inject the span generator to achieve...
> > > > @MrAlias Guaranteed span release is achieved by the user. The user can guarantee that span is not used after span.end(), they can inject the span generator...
We should also modify the parameter references within the `func.body`. ``` func search(ctx context.Context, aa int, bb int) int { return aa + bb } ``` ====> ``` type searchOpts...