Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Alibaba, Datadog, and Quesma Join Forces on Go Compile-Time Instrumentation (opentelemetry.io)
37 points by darccio on Jan 24, 2025 | hide | past | favorite | 4 comments


also known as magic that go itself won't support.


Why not? Isn’t this just a consolidated effort to create a tool invokable by the toolexec flag?


The difference between compiled code vs the code you wrote makes behaviours non-obvious.

https://github.com/golang/go/issues/69887


The written code is the code that is executed. What’s wrong with that? I’d take macros instead of that any time of the day.

Java has the same mechanism, the -javaagent flag. It has exactly the same drawbacks you mention.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: