nanjiek opened a new pull request, #3285: URL: https://github.com/apache/dubbo-go/pull/3285
### Description Fixes #3240 This change fixes the traceparent corruption in Triple client calls. Although OtelClientTrace correctly creates a client span and injects a fresh traceparent, the old TripleInvoker logic could overwrite it with the upstream traceparent from context attachments, and then append that value into the outgoing header. This caused downstream spans to attach to the wrong parent and also leaked trace headers across repeated Triple calls on the same base context. The fix removes user attachment backfill from context during Triple invocation, rebuilds outgoing headers from a cloned copy and overwrites keys instead of appending, and deep-copies outgoing context metadata to avoid cross-call header mutation. With this change, each downstream Triple call carries the traceparent of the current client span, and sibling calls no longer interfere with each other. ### Checklist - [x] I confirm the target branch is `develop` - [x] Code has passed local testing - [x] I have added tests that prove my fix is effective or that my feature works -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
