This is an automated email from the ASF dual-hosted git repository. wusheng pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/skywalking-go.git
The following commit(s) were added to refs/heads/main by this push: new 41a6614 [bugfix] Trace API continue context throw err when param is nil. (#217) 41a6614 is described below commit 41a661492feea65015e8300205c139dcf06e99c6 Author: renyansongno1 <45755446+renyansong...@users.noreply.github.com> AuthorDate: Wed Apr 23 18:22:38 2025 +0800 [bugfix] Trace API continue context throw err when param is nil. (#217) --- plugins/toolkit-activation/trace/continue_intercepter.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/toolkit-activation/trace/continue_intercepter.go b/plugins/toolkit-activation/trace/continue_intercepter.go index e25737a..136366b 100644 --- a/plugins/toolkit-activation/trace/continue_intercepter.go +++ b/plugins/toolkit-activation/trace/continue_intercepter.go @@ -26,7 +26,9 @@ type ContinueContextInterceptor struct { } func (h *ContinueContextInterceptor) BeforeInvoke(invocation operator.Invocation) error { - tracing.ContinueContext(invocation.Args()[0].(tracing.ContextSnapshot)) + if invocation.Args()[0] != nil { + tracing.ContinueContext(invocation.Args()[0].(tracing.ContextSnapshot)) + } return nil }