Replies: 4 comments
-
For now, I think we only should single name of same type. If you can handle the multiple names, welcome to contribute the codes. |
Beta Was this translation helpful? Give feedback.
-
@mrproliu Should we move this to discussion? |
Beta Was this translation helpful? Give feedback.
-
Sure. It's just enhancement feature I think. |
Beta Was this translation helpful? Give feedback.
-
Suddenly I discovered that I had already fixed this problem apache/skywalking-go#162 when I was developing the plugin, but I'm very sorry, at that time I didn't see that the poster posted this discussion and was willing to submit a PR. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Search before asking
Apache SkyWalking Component
OAP server (apache/skywalking)
What happened
When using go agent to enhance a function with multiple parameters of the same type, If the function is in the following format:
func myFunc(x, y, z string) {}
, it can only be obtainedin invocation.Args()
ofInterceptor.BeforeInvoke
a parameterx
What you expected to happen
I think we should be able to get the three parameters x, y and z
How to reproduce
Enhance a function like the following
func myFunc(x, y, z string) {}
Anything else
I checked the source code and found that when traversing dst.Field.Names, break was used. Should it be continue?
Are you willing to submit a pull request to fix on your own?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions